-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
v2) Ability to associate content with a category #3686
Comments
Duplicate of #2643 Note: Kubernete category is not collapsable. What's your suggestion for having a collapsible category that is also a link? What's the action on click? |
@slorber thanks for pointing me at that existing ticket. Re: action on click) I don't know the value of collapsing docs you're currently reading so additional clicks on the same category i'd expect to do nothing. Clicks on other items (whether children, siblings, or parents) i'd expect observe the same above mentioned behavior; show index of that category and show any child items in the nav. |
I thunk this could be confusing, can you find an example online reproducing this behavior? Also it's better to move the discussions to the opened issue |
@slorber re: example online) yes it's exactly how the k8s docs linked above work |
@chrisdostert the K8s doc is not an SPA and does not really have collapsible sidebars. But this is a mode we could support in Docusaurus: remove the arrow, navigate on click, and only expand the sidebar when we navigate inside the sidebar category (including category-associated doc) |
🚀 Feature
Allow categories to have content i.e. be doc pages themselves.
Have you read the Contributing Guidelines on issues?
yes
Motivation
It's often the case you want the behavior that clicking on a category actually shows a page (index page) for that category.
You then of course can have sub categories or docs too.
Pitch
Please see kubernetes "concepts" docs which observe this behavior. For example concepts/containers opens a page even though it's a category https://kubernetes.io/docs/concepts/containers/
The text was updated successfully, but these errors were encountered: