docs(v2): collapsible categories in sidebar (#2251)
* docs(v2): collapsible categories in sidebar * Update sidebar.md Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
parent
ab25ee3e0f
commit
e27c8d0d0b
|
|
@ -227,3 +227,18 @@ module.exports = {
|
|||
},
|
||||
};
|
||||
```
|
||||
|
||||
### Collapsible categories
|
||||
|
||||
For sites with a sizable amount of content, we support the option to expand/collapse a category to toggle the display of its contents. Categories are collapsible by default. If you want them to be always expanded, set `themeConfig.sidebarCollapsible` to `false`:
|
||||
|
||||
```js {5}
|
||||
// docusaurus.config.js
|
||||
module.exports = {
|
||||
...
|
||||
themeConfig: {
|
||||
sidebarCollapsible: false,
|
||||
...
|
||||
},
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue