-
Notifications
You must be signed in to change notification settings - Fork 989
docs: add note and example on how to reuse a sidebar for a page #1329
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
Conversation
|
/deploy-preview |
|
🚀 Deployed on https://deploy-preview-1329.quarto.org |
|
Before merging, just to clarify: My understanding from https://deploy-preview-1329.quarto.org/docs/websites/website-navigation.html#hybrid-navigation is that the correct sidebar should be set on all page listed in sidebar:
- id: <id>
contents:
# navigation itemsIsn't this working ? I mean setting explicitly |
|
Where do you see that any contents listed in a sidebar get the sidebar? Edit: i see but it's not in the part you linked.
This PR is here to illustrate how to add a specific sidebar to any page/directory, regardless of if the page itself is listed in that sidebar, i.e., how to use the defined ID. (edit: thus the second part of the quoted sentence from the documentation). Edit: i need to move the addition to below the quoted part above. 33bdc4e |
|
I find it illustrated in the note, but you found a better place yet.
I know. I wanted to be sure we are not missing an issue but thinking it was a documentation problem only. Both way work, and using Using |
|
/deploy-preview |
|
🚀 Deployed on https://deploy-preview-1329.quarto.org |
cderv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I understand no specific issue with sidebar dectection, and just documentation addition! Awesome. I struggled in the past to fix a sidebar id issue, and feared there was a new one 😅
|
Successfully created backport PR for |
None that I am aware of. |
This pull request adds a note and example to the documentation on how to reuse a sidebar for a page. It explains how to specify the
sidebarID in the front matter of a page or in the_metadata.ymlfile to include a specific sidebar. An example is provided to demonstrate how to include the tutorials sidebar on a page.