@@ -114,7 +114,7 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
114114 {
115115 text : 'Guide' ,
116116 items : [
117- { text : 'Introduction' , link : "/guide" } ,
117+ { text : 'Introduction' , link : "/guide/introduction " } ,
118118 { text : 'Getting Started' , link : '/guide/getting-started' } ,
119119 { text : '🫶 Migrate to v2 version' , link : '/guide/migrate' }
120120 ] ,
@@ -137,6 +137,7 @@ export const en = defineConfig({
137137 ...sidebarHooks ( ) ,
138138 ]
139139 } ,
140+ '/components/' : sidebarComponents ( ) ,
140141 } ,
141142
142143 editLink : {
@@ -155,9 +156,9 @@ function nav(): DefaultTheme.NavItem[] {
155156 return [
156157 {
157158 text : 'Guide' ,
158- activeMatch : '/guide/' ,
159+ activeMatch : '^ /guide/' ,
159160 items : [
160- { text : 'Introduction' , link : '/guide' } ,
161+ { text : 'Introduction' , link : '/guide/introduction ' } ,
161162 { text : 'Getting Started' , link : '/guide/getting-started' } ,
162163 { text : '🫶 Migrate to v2 version' , link : '/guide/migrate' }
163164 ]
@@ -167,6 +168,11 @@ function nav(): DefaultTheme.NavItem[] {
167168 link : '/hooks/useRequest/quick-start' ,
168169 activeMatch : '/hooks'
169170 } ,
171+ {
172+ text : "Components" ,
173+ link : '/components/guide' ,
174+ activeMatch : '/components/'
175+ } ,
170176 {
171177 text : '🤺 Playground' ,
172178 link : 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play' ,
@@ -191,7 +197,7 @@ export function sidebarHooks(): DefaultTheme.SidebarItem[] {
191197 text : 'State' ,
192198 items : [
193199 { text : 'useBoolean' , link : 'useBoolean' } ,
194- // { text: "useControlledState", link: "useControlledState" },
200+ { text : "useControlledState" , link : "useControlledState" } ,
195201 { text : 'useImmer' , link : 'useImmer' } ,
196202 { text : 'useUrlState' , link : 'useUrlState' } ,
197203 { text : 'useFormatResult' , link : 'useFormatResult' } ,
@@ -265,7 +271,7 @@ export function sidebarHooks(): DefaultTheme.SidebarItem[] {
265271 {
266272 text : 'Advanced' ,
267273 items : [
268- { text : 'useEventEmitter' , link : '/ useEventEmitter/ ' } ,
274+ { text : 'useEventEmitter' , link : 'useEventEmitter' } ,
269275 {
270276 text : 'useAsyncOrder' ,
271277 link : 'useAsyncOrder' ,
@@ -286,3 +292,19 @@ export function sidebarHooks(): DefaultTheme.SidebarItem[] {
286292 } )
287293}
288294
295+
296+
297+ export function sidebarComponents ( ) : DefaultTheme . SidebarItem [ ] {
298+ return [
299+ {
300+ text : 'Components' ,
301+ items : [
302+ {
303+ text : 'Guide' ,
304+ link : '/components/guide' ,
305+ } ,
306+ { text : 'useRequest' , link : '/components/useRequest' } ,
307+ ] ,
308+ }
309+ ]
310+ }
0 commit comments