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

Sidebar Category Title / Non-collapsable primary categories. #4966

Closed
Yorkemartin opened this issue Jun 14, 2021 · 5 comments · Fixed by #5203
Closed

Sidebar Category Title / Non-collapsable primary categories. #4966

Yorkemartin opened this issue Jun 14, 2021 · 5 comments · Fixed by #5203
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@Yorkemartin
Copy link

🚀 Feature

I'd love to see a title or non collapsable category for sidebar items, in the style that gitbook does https://docs.gitbook.com/

This helps break up ideas without removing all context. And it just looks cleaner than having dropdown arrows pointing all over the place in a non collapsed landing page

@Yorkemartin Yorkemartin added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels Jun 14, 2021
@slorber
Copy link
Collaborator

slorber commented Jun 15, 2021

You can already make sidebar categories non-collapsible:
https://docusaurus.io/docs/sidebar#collapsible-categories

@slorber slorber closed this as completed Jun 15, 2021
@Yorkemartin
Copy link
Author

This feature makes every category non-collapsable. The feature I'm talking about makes only the top-level directory non-collapsible, so the user can see a few collapsed categories inside of several top-level directories

In the below picture, the "Guides" "Reference" and "Concepts" sections would be non-collapsable, while the internal directories would be collapsed.

Screen Shot 2021-06-15 at 9 56 27 AM

@slorber slorber reopened this Jun 15, 2021
@slorber
Copy link
Collaborator

slorber commented Jun 15, 2021

I see, so using a sidebar category.collapsible = false attribute make sense to override the default global setting with more granularity?

@Yorkemartin
Copy link
Author

Exactly, I think it helps communicate the context of the top-level categories without adding too much visual complexity

@Josh-Cena
Copy link
Collaborator

@Yorkemartin I implemented this with #5203. Do you think it would be necessary for us to also have a "category title" item, just like in gitbook, or is a non-collapsable category good enough?

@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants