Fix sidebar links
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m41s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m41s
This commit is contained in:
parent
b96c4157e5
commit
5068e4ffd3
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ function sort(a, b) {
|
||||||
}
|
}
|
||||||
currentSidebar = nextSidebar.items;
|
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);
|
currentSidebar.sort(sort);
|
||||||
const filePath = path.resolve(dir, file);
|
const filePath = path.resolve(dir, file);
|
||||||
const stream = fs.createReadStream(filePath);
|
const stream = fs.createReadStream(filePath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue