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:
Alexey Pyltsyn 2020-01-31 23:52:20 +03:00 committed by GitHub
parent ab25ee3e0f
commit e27c8d0d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
...
},
}
```