mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
feat: collapsible categories (#1128)
* feat : #1084 Collapsus - The Collapsible Menu * updated docs * fixed prettier * fix for category not auto-expanding upon navigating to a subcategory under it * as requested by endiliey. Do not merge this commit. * Update api-site-config.md * Update guides-navigation.md * Update SideNav.js * Update main.css * Update SideNav.js * Delete subcategory1.md * Delete subcategory2.md * Update sidebars.json
This commit is contained in:
parent
c27a430529
commit
d5fd15ecbe
5 changed files with 87 additions and 19 deletions
|
@ -272,3 +272,14 @@ We support secondary on-page navigation so you can more easily see the topics as
|
|||
```
|
||||
|
||||
Currently, `'separate'` is the only option available for this field. This provides a separate navigation on the right side of the page.
|
||||
|
||||
## Collapsible Categories
|
||||
|
||||
For sites with a sizable amount of content, we support the option to expand/collapse the links and subcategories under categories. To enable this feature, set the `docsSideNavCollapsible` site configuration [option](api-site-config.md#optional-fields) in `siteConfig.js` to true.
|
||||
|
||||
```js
|
||||
{
|
||||
docsSideNavCollapsible: true,
|
||||
...
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue