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

Correctly detect a global sidebar and not a specific page sidebar #9741

Merged
merged 7 commits into from
Jun 11, 2024

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented May 22, 2024

global sidebard is detected by undefined id, so we need to compute id from title not too early, and in a a way that does not modify initial config

Closes #9242 and closes #9728


This is currently a proposal built on top of unmerged #8871 by @dragonstyle to deal with #8869 and follow up on #5689

I believe we can do what was supposed to be done in #8871, but we need to make sure that we don't modify initial navigation.sidebars content's id.

I still think we could consider adding a more explicit global config for true or false to make this more clear.

This requires some testing to be sure it works ok this time. Opening this draft PR to discuss and have thoughts on this change.

@ikolith

This comment was marked as resolved.

@cderv cderv marked this pull request as ready for review June 6, 2024 15:08
@cscheid
Copy link
Collaborator

cscheid commented Jun 6, 2024

@cderv Before we merge this, can you add a regression test?

@cderv
Copy link
Collaborator Author

cderv commented Jun 7, 2024

Oh sure. My bad. I believe we can run project tests now.

…id from title not too early, and in a a way that does not modify initial config

From unmerged #8871 to deal with #8869 and follow up on #5689

Closes #9242 and closes #9728
A sidebar item with only single id should apply only to this one

Related to #5689
@cderv cderv merged commit 7d24d71 into main Jun 11, 2024
@cderv cderv deleted the website/sidebar-global branch June 11, 2024 20:56
cderv added a commit that referenced this pull request Jun 12, 2024
@cderv cderv restored the website/sidebar-global branch June 12, 2024 08:01
@cderv
Copy link
Collaborator Author

cderv commented Jun 12, 2024

I reverted this PR in 4ee3e32 because it broke quarto-web.
I'll reopen the linked issue, and deal with this in 1.6 so sort out this change in sidebar processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants