Docs: fix previous/next page button (#2760)
Signed-off-by: Birkhoff Lee <git@birkhoff.me>
This commit is contained in:
parent
acec0f5c89
commit
e8b2d0ecc8
@ -37,7 +37,7 @@ function generateSidebarChapter(chapterDirName: string): any {
|
|||||||
items.push({
|
items.push({
|
||||||
sidebarOrder,
|
sidebarOrder,
|
||||||
text: sidebarTitle,
|
text: sidebarTitle,
|
||||||
link: doc.path.replace(/^docs/, '')
|
link: "/" + doc.path
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +48,7 @@ function generateSidebarChapter(chapterDirName: string): any {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
text,
|
text,
|
||||||
|
collapsed: false,
|
||||||
items,
|
items,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -87,7 +88,7 @@ export default defineConfig({
|
|||||||
// https://vitepress.dev/reference/default-theme-config
|
// https://vitepress.dev/reference/default-theme-config
|
||||||
nav: [
|
nav: [
|
||||||
{ text: 'Home', link: '/' },
|
{ text: 'Home', link: '/' },
|
||||||
{ text: 'Configuration', link: '/configuration/configuration-reference.md' },
|
{ text: 'Configuration', link: '/configuration/configuration-reference' },
|
||||||
{
|
{
|
||||||
text: 'Download',
|
text: 'Download',
|
||||||
items: [
|
items: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user