From f27395c86232cbd3ca8ff281e9b71c30b1727ce1 Mon Sep 17 00:00:00 2001 From: clay <209192278@qq.com> Date: Mon, 7 Nov 2022 22:22:17 +0800 Subject: [PATCH] =?UTF-8?q?dengjie=20commit=20:=20=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E4=B8=8D=E6=8A=98=E5=8F=A0=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 30 +++++++++++++++--------------- docs/document/README.md | 4 ++++ docs/second/child/README.md | 28 ---------------------------- 3 files changed, 19 insertions(+), 43 deletions(-) create mode 100644 docs/document/README.md diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index c034fd1..e920397 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -30,28 +30,28 @@ module.exports = { // sidebarDepth: 0, //0读取1级标题 1读取1级和2级标题 2读取1级、2级、3级标题 // 设置侧边栏内容 sidebar: [ + { + title: '教程', + collapsable: false, + children: [ + '/document/', + // { + // title: '侧边栏组合', + // // collapsable: true, + // children: [ + // '/second/child/' + // ] + // } + ] + }, { title: '文档', - collapsable: true, + collapsable: false, children: [ '/wiki/introduce/', '/wiki/back-build/' ] // 根据自己的需求来订,对应自己在docs下的文件夹名,默认首页是README.md }, - { - title: '第二个侧边栏', - collapsable: true, - children: [ - '/second/', - { - title: '侧边栏组合', - collapsable: true, - children: [ - '/second/child/' - ] - } - ] - } ] } }; diff --git a/docs/document/README.md b/docs/document/README.md new file mode 100644 index 0000000..7845ed4 --- /dev/null +++ b/docs/document/README.md @@ -0,0 +1,4 @@ +# 首先 + +## 其次 +固定侧边栏,不折叠显示: collapsable: false, diff --git a/docs/second/child/README.md b/docs/second/child/README.md index a6b4629..e69de29 100644 --- a/docs/second/child/README.md +++ b/docs/second/child/README.md @@ -1,28 +0,0 @@ -# 第一个侧边栏 - -firstside -firstside - -firstside - -firstside - -## 二级第一个侧边栏 - -二级第一个侧边栏 -二级第一个侧边栏 - -## 二级第二个侧边栏 - -二级第二个侧边栏 -二级第二个侧边栏 - -### 三级第一个侧边栏 -三级第一个侧边栏 -三级第一个侧边栏 -三级第一个侧边栏 - -## 二级第三个侧边栏 -二级第三个侧边栏 -二级第三个侧边栏 -二级第三个侧边栏