@@ -11,7 +11,7 @@ const libremesh = {
1111 oldstable_branch_openwrt : [ '19.07' ] ,
1212}
1313
14- const packages = await getFiles ( 'docs/packages/*.md' ) ; // Path to folder
14+ const packages = await getFiles ( 'docs/packages/*/index .md' ) ; // Path to folder
1515
1616// https://vitepress.dev/reference/site-config
1717export default defineConfig ( {
@@ -29,6 +29,13 @@ export default defineConfig({
2929 } ,
3030 } ,
3131
32+ rewrites : {
33+ // ':page*': 'docs/:page*',
34+ // 'packages/pkg-a/src/foo.md': 'pkg-a/foo.md',
35+ // 'packages/pkg-b/src/index.md': 'pkg-b/index.md',
36+ // 'packages/pkg-b/src/bar.md': 'pkg-b/bar.md'
37+ } ,
38+
3239 themeConfig : {
3340 // https://vitepress.dev/reference/default-theme-config
3441 logo : { light : '/libremesh_logo.svg' , dark : '/libremesh_logo.svg' , alt : 'Logo' } ,
@@ -92,13 +99,13 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
9299 text : 'User Guide' ,
93100 collapsed : false ,
94101 items : [
95- { text : 'Connecting to the router' , link : '/install /connecting' } ,
102+ { text : 'Connecting to the router' , link : '/guide /connecting' } ,
96103 { text : 'Packages selection' ,
97- link : '/install /packages-selection' ,
104+ link : '/guide /packages-selection' ,
98105 collapsed : true ,
99106 items : [
100- { text : 'Build customization' , link : '/install /packages-selection' } ,
101- { text : 'Network Profiles' , link : '/install /network-profiles' }
107+ { text : 'Build customization' , link : '/guide /packages-selection' } ,
108+ { text : 'Network Profiles' , link : '/guide /network-profiles' }
102109 ] } ,
103110 { text : 'Build LibreMesh' ,
104111 link : '/build' ,
@@ -114,7 +121,7 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
114121 text : 'Developer Guide' ,
115122 collapsed : false ,
116123 items : [
117- { text : 'Run it on QEMU' , link : '/install /qemu' }
124+ { text : 'Run it on QEMU' , link : '/guide /qemu' }
118125 ]
119126 } ,
120127 {
@@ -145,8 +152,8 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
145152 } ,
146153 {
147154 text : 'Packages' ,
148- collapsed : false ,
149- link : '/resources ' ,
155+ collapsed : true ,
156+ link : '/packages ' ,
150157 items : generateSidebarItems ( packages ) ,
151158 } ,
152159 ]
0 commit comments