dengjie commit : 侧边栏不折叠显示
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
clay 2022-11-07 22:22:17 +08:00
parent 53b91f216a
commit f27395c862
3 changed files with 19 additions and 43 deletions

View File

@ -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/'
]
}
]
}
]
}
};

4
docs/document/README.md Normal file
View File

@ -0,0 +1,4 @@
# 首先
## 其次
固定侧边栏,不折叠显示: collapsable: false,

View File

@ -1,28 +0,0 @@
# 第一个侧边栏
firstside
firstside
firstside
firstside
## 二级第一个侧边栏
二级第一个侧边栏
二级第一个侧边栏
## 二级第二个侧边栏
二级第二个侧边栏
二级第二个侧边栏
### 三级第一个侧边栏
三级第一个侧边栏
三级第一个侧边栏
三级第一个侧边栏
## 二级第三个侧边栏
二级第三个侧边栏
二级第三个侧边栏
二级第三个侧边栏