-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
✨ Enhancement: Special sidebar behaviour for pages for pages without sidebar item #1011
Comments
@benjagm I would like to work on this. |
Thanks a lot for your support!! Please go ahead! |
@pavanydg any progress on this ? Or any help needed ? |
@DhairyaMajmudar sorry for the delay. I was working on another issue in tour site. Will update about the progress within 2 days. |
No worries, pls. take your time |
@DhairyaMajmudar so when we open this page https://json-schema.org/md-style-guide we should highlight overview/what-is-json-shema in sidebar right? I should implement only this much right? |
yep, also pls. check for such more pages whose direct link is not given in the sidebar :) |
Is your feature request related to a problem? Please describe
We have some pages without sidebar item that needs to be shown, however when we show those pages it results in a sidebar with all sections collapsed. For example, the page https://json-schema.org/md-style-guide produces:
This is not ideal and we would like to find a better way to interact with the sidebar for those pages.
Describe the solution you'd like
Ideally, we'd like to define a new property in the header metadata in the page markdown to specify the parent page to be highlighted in the sidebar.
For example, if we define this new property as parentNav adding the relative path for a page without sidebar item like https://json-schema.org/md-style-guide:
The expected result is to highlight /overview/what-is-jsonschema in the sidebar when accessing that page. See image below:
Describe alternatives you've considered
I think this will require:
Additional context
No response
Are you working on this?
No
The text was updated successfully, but these errors were encountered: