Docusaurus: Collapsible links under subcategories in sidebar

Created on 10 Apr 2019  路  2Comments  路  Source: facebook/docusaurus

馃殌 Feature

Would it be possible to make links under subcategories also collapsible like in case of categories in sidebar?

I would like the code:

{
  "docs": {
    "Category 1": [
      {
        "type": "subcategory",
        "label": "Subcategory 1",
        "ids": [
          "link1",
          "link2"
        ]
      },
      {
        "type": "subcategory",
        "label": "Subcategory 2",
        "ids": [
          "link3",
          "link4"
        ]
      },
    ],
  }
}

to generate something like this:

Category 1         v
   Subcategory 1   v
      - link1
      - link2
   Subcategory 2   v
      - link3
      - link4

Now option docsSideNavCollapsible: true in siteConfig.js makes only links under categories collapsible.

Most helpful comment

@bvq77 This will be available in v2. Example here - https://infima-dev.netlify.com/

Edit by endi:
attaching screenshot
image

All 2 comments

@bvq77 This will be available in v2. Example here - https://infima-dev.netlify.com/

Edit by endi:
attaching screenshot
image

Wontfix in v1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebqq picture sebqq  路  3Comments

microbouji picture microbouji  路  3Comments

ericnakagawa picture ericnakagawa  路  3Comments

NikitaIT picture NikitaIT  路  3Comments

omry picture omry  路  3Comments