@@ -53,8 +53,8 @@ export default defineConfig({
53
53
nav : nav ( ) ,
54
54
55
55
sidebar : {
56
- '/guide/' : sidebarGuide ( ) ,
57
- '/reference/' : sidebarReference ( )
56
+ '/guide/' : { base : '/guide/' , items : sidebarGuide ( ) } ,
57
+ '/reference/' : { base : '/reference/' , items : sidebarReference ( ) }
58
58
} ,
59
59
60
60
editLink : {
@@ -122,72 +122,72 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
122
122
text : 'Introduction' ,
123
123
collapsed : false ,
124
124
items : [
125
- { text : 'What is VitePress?' , link : '/guide/ what-is-vitepress' } ,
126
- { text : 'Getting Started' , link : '/guide/ getting-started' } ,
127
- { text : 'Routing' , link : '/guide/ routing' } ,
128
- { text : 'Deploy' , link : '/guide/ deploy' }
125
+ { text : 'What is VitePress?' , link : 'what-is-vitepress' } ,
126
+ { text : 'Getting Started' , link : 'getting-started' } ,
127
+ { text : 'Routing' , link : 'routing' } ,
128
+ { text : 'Deploy' , link : 'deploy' }
129
129
]
130
130
} ,
131
131
{
132
132
text : 'Writing' ,
133
133
collapsed : false ,
134
134
items : [
135
- { text : 'Markdown Extensions' , link : '/guide/ markdown' } ,
136
- { text : 'Asset Handling' , link : '/guide/ asset-handling' } ,
137
- { text : 'Frontmatter' , link : '/guide/ frontmatter' } ,
138
- { text : 'Using Vue in Markdown' , link : '/guide/ using-vue' } ,
139
- { text : 'Internationalization' , link : '/guide/ i18n' }
135
+ { text : 'Markdown Extensions' , link : 'markdown' } ,
136
+ { text : 'Asset Handling' , link : 'asset-handling' } ,
137
+ { text : 'Frontmatter' , link : 'frontmatter' } ,
138
+ { text : 'Using Vue in Markdown' , link : 'using-vue' } ,
139
+ { text : 'Internationalization' , link : 'i18n' }
140
140
]
141
141
} ,
142
142
{
143
143
text : 'Customization' ,
144
144
collapsed : false ,
145
145
items : [
146
- { text : 'Using a Custom Theme' , link : '/guide/ custom-theme' } ,
147
- { text : 'Extending the Default Theme' , link : '/guide/ extending-default-theme' } ,
148
- { text : 'Build-Time Data Loading' , link : '/guide/ data-loading' } ,
149
- { text : 'SSR Compatibility' , link : '/guide/ ssr-compat' } ,
150
- { text : 'Connecting to a CMS' , link : '/guide/ cms' }
146
+ { text : 'Using a Custom Theme' , link : 'custom-theme' } ,
147
+ { text : 'Extending the Default Theme' , link : 'extending-default-theme' } ,
148
+ { text : 'Build-Time Data Loading' , link : 'data-loading' } ,
149
+ { text : 'SSR Compatibility' , link : 'ssr-compat' } ,
150
+ { text : 'Connecting to a CMS' , link : 'cms' }
151
151
]
152
152
} ,
153
153
{
154
154
text : 'Experimental' ,
155
155
collapsed : false ,
156
156
items : [
157
- { text : 'MPA Mode' , link : '/guide/ mpa-mode' } ,
158
- { text : 'Sitemap Generation' , link : '/guide/ sitemap-generation' }
157
+ { text : 'MPA Mode' , link : 'mpa-mode' } ,
158
+ { text : 'Sitemap Generation' , link : 'sitemap-generation' }
159
159
]
160
160
} ,
161
- { text : 'Config & API Reference' , link : '/reference/site-config' }
161
+ { text : 'Config & API Reference' , base : '/reference/' , link : ' site-config' }
162
162
]
163
163
}
164
164
165
- /* prettier-ignore */
166
165
function sidebarReference ( ) : DefaultTheme . SidebarItem [ ] {
167
166
return [
168
167
{
169
168
text : 'Reference' ,
170
169
items : [
171
- { text : 'Site Config' , link : '/reference/ site-config' } ,
172
- { text : 'Frontmatter Config' , link : '/reference/ frontmatter-config' } ,
173
- { text : 'Runtime API' , link : '/reference/ runtime-api' } ,
174
- { text : 'CLI' , link : '/reference/ cli' } ,
170
+ { text : 'Site Config' , link : 'site-config' } ,
171
+ { text : 'Frontmatter Config' , link : 'frontmatter-config' } ,
172
+ { text : 'Runtime API' , link : 'runtime-api' } ,
173
+ { text : 'CLI' , link : 'cli' } ,
175
174
{
176
175
text : 'Default Theme' ,
176
+ base : '/reference/default-theme-' ,
177
177
items : [
178
- { text : 'Overview' , link : '/reference/default-theme- config' } ,
179
- { text : 'Nav' , link : '/reference/default-theme- nav' } ,
180
- { text : 'Sidebar' , link : '/reference/default-theme- sidebar' } ,
181
- { text : 'Home Page' , link : '/reference/default-theme- home-page' } ,
182
- { text : 'Footer' , link : '/reference/default-theme- footer' } ,
183
- { text : 'Layout' , link : '/reference/default-theme- layout' } ,
184
- { text : 'Badge' , link : '/reference/default-theme- badge' } ,
185
- { text : 'Team Page' , link : '/reference/default-theme- team-page' } ,
186
- { text : 'Prev / Next Links' , link : '/reference/default-theme- prev-next-links' } ,
187
- { text : 'Edit Link' , link : '/reference/default-theme- edit-link' } ,
188
- { text : 'Last Updated Timestamp' , link : '/reference/default-theme- last-updated' } ,
189
- { text : 'Search' , link : '/reference/default-theme- search' } ,
190
- { text : 'Carbon Ads' , link : '/reference/default-theme- carbon-ads' }
178
+ { text : 'Overview' , link : 'config' } ,
179
+ { text : 'Nav' , link : 'nav' } ,
180
+ { text : 'Sidebar' , link : 'sidebar' } ,
181
+ { text : 'Home Page' , link : 'home-page' } ,
182
+ { text : 'Footer' , link : 'footer' } ,
183
+ { text : 'Layout' , link : 'layout' } ,
184
+ { text : 'Badge' , link : 'badge' } ,
185
+ { text : 'Team Page' , link : 'team-page' } ,
186
+ { text : 'Prev / Next Links' , link : 'prev-next-links' } ,
187
+ { text : 'Edit Link' , link : 'edit-link' } ,
188
+ { text : 'Last Updated Timestamp' , link : 'last-updated' } ,
189
+ { text : 'Search' , link : 'search' } ,
190
+ { text : 'Carbon Ads' , link : 'carbon-ads' }
191
191
]
192
192
}
193
193
]
0 commit comments