Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten nested sidebar items #2

Open
dundalek opened this issue Jan 15, 2024 · 0 comments
Open

Flatten nested sidebar items #2

dundalek opened this issue Jan 15, 2024 · 0 comments

Comments

@dundalek
Copy link
Owner

When there is a single namespace the nested hierarchy is not useful and takes extra clicks to expand.

DeepinScreenshot_select-area_20240112171554

For example instead of

com >
  org >
    project >
      foo
      bar

we could flatten as

com.org.project >
  foo
  bar

Is there also a way to perhaps have some items in sidebar expanded by default? With some heuristic to expand e.g. if there are less than 10 children items.

Collapsible categories are collapsed by default. If you want them to be expanded on the first render, you can set collapsed to false:
https://docusaurus.io/docs/sidebar/items#expanded-categories-by-default

@dundalek dundalek changed the title Nested sidebar items Flatten nested sidebar items Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant