diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 9a3d9224..cfc0d3ed 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -57,6 +57,7 @@ function sidebarGuide() { return [ { text: 'Introduction', + collapsible: true, items: [ { text: 'What is VitePress?', link: '/guide/what-is-vitepress' }, { text: 'Getting Started', link: '/guide/getting-started' }, @@ -71,6 +72,7 @@ function sidebarGuide() { }, { text: 'Theme', + collapsible: true, items: [ { text: 'Introduction', link: '/guide/theme-introduction' }, { text: 'Layout', link: '/guide/theme-layout' }, @@ -81,6 +83,7 @@ function sidebarGuide() { }, { text: 'Migrations', + collapsible: true, items: [ { text: 'Migration from VuePress', diff --git a/src/client/theme-default/components/VPSidebar.vue b/src/client/theme-default/components/VPSidebar.vue index a59b99be..c7511357 100644 --- a/src/client/theme-default/components/VPSidebar.vue +++ b/src/client/theme-default/components/VPSidebar.vue @@ -34,7 +34,12 @@ watchPostEffect(async () => {