diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 6304153c..4affe906 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -1,7 +1,6 @@ + + diff --git a/website/docs/guide/customization.md b/website/docs/guide/customization.md index 82db7a4f..75d92459 100644 --- a/website/docs/guide/customization.md +++ b/website/docs/guide/customization.md @@ -50,6 +50,7 @@ new Docute({ // A sidebar item, with child links { title: 'Guide', // Optional + collapsable: true, // Optional children: [ { title: 'Getting Started', diff --git a/website/docs/options.md b/website/docs/options.md index 50afac0f..7cb5a4b6 100644 --- a/website/docs/options.md +++ b/website/docs/options.md @@ -49,6 +49,7 @@ An array of navigation items to display at sidebar. ```ts interface SidebarItem { title?: string + collapsable?: boolean children: Array } diff --git a/website/docs/zh/guide/customization.md b/website/docs/zh/guide/customization.md index dc283758..dc671c3b 100644 --- a/website/docs/zh/guide/customization.md +++ b/website/docs/zh/guide/customization.md @@ -47,6 +47,7 @@ new Docute({ sidebar: [ { title: 'Guide', // 可选的 + collapsable: true, // 可选的 children: [ { title: 'Getting Started', diff --git a/website/index.js b/website/index.js index 6ee0ce14..93f84c0d 100644 --- a/website/index.js +++ b/website/index.js @@ -135,6 +135,7 @@ new Docute({ }, { title: 'Advanced', + collapsable: true, children: [ { title: 'Use With Bundlers', @@ -148,6 +149,7 @@ new Docute({ }, { title: 'References', + collapsable: true, children: [ { title: 'Options', @@ -165,6 +167,7 @@ new Docute({ }, { title: 'Misc', + collapsable: true, children: [ { title: 'Credits',