mirror of https://github.com/Dreamacro/clash.git
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({
|
||||
sidebarOrder,
|
||||
text: sidebarTitle,
|
||||
link: doc.path.replace(/^docs/, '')
|
||||
link: "/" + doc.path
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,7 @@ function generateSidebarChapter(chapterDirName: string): any {
|
|||
|
||||
return {
|
||||
text,
|
||||
collapsed: false,
|
||||
items,
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +88,7 @@ export default defineConfig({
|
|||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Configuration', link: '/configuration/configuration-reference.md' },
|
||||
{ text: 'Configuration', link: '/configuration/configuration-reference' },
|
||||
{
|
||||
text: 'Download',
|
||||
items: [
|
||||
|
|
Loading…
Reference in New Issue