Fix sidebar links
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m41s

This commit is contained in:
thepaperpilot 2025-01-16 19:36:49 +00:00
parent b96c4157e5
commit 5068e4ffd3

View file

@ -54,7 +54,7 @@ function sort(a, b) {
}
currentSidebar = nextSidebar.items;
});
currentSidebar.push({ text: path.basename(file).replace(".md", ""), link: `/..\\docs\\api/${relPath.replace("\\", "/")}/${path.basename(file)}` });
currentSidebar.push({ text: path.basename(file).replace(".md", ""), link: `/..\\api/${relPath.replace("\\", "/")}/${path.basename(file)}` });
currentSidebar.sort(sort);
const filePath = path.resolve(dir, file);
const stream = fs.createReadStream(filePath);