mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 03:37:48 +02:00
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
1 changed files with 15 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue