-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Doc] The nav bar on the right side is not activated correctly when I clicked it #33318
Comments
Per Triage Sync: @maxpumperla assigning to you |
This is due to a bug in an upstream dependency: executablebooks/sphinx-book-theme#678. Investigating workarounds now. |
I looked into updating to The downside is that the docs look completely different, a change that is way outside the scope of this issue and would best be discussed in the issue mentioned above. The other issue is that upgrading {{- generate_nav_html(
startdepth=0,
kind="sidebar",
maxdepth=4,
collapse=True,
includehidden=True,
titles_only=True,
show_nav_level=theme_show_navbar_depth) }} throws an exception. I'm not sure where this function is defined, but anyway we can't make use of it as-is. So we'd have to solve that issue as well. For now I'm going to see if we can make a workaround with some other method (JS?) |
After looking into this further, the issue is in how bootstrap's ScrollSpy behaves. Some people have reported that modifying a CSS rule seems to fix it, but when I load our docs I don't see any conflicting CSS rule here :/. I tried setting the appropriate rule anyway, but didn't see any change. This is supposed to get fixed in a later version of |
@maxpumperla @rkooo567 Now that #41115 is merged, can we close this? To be totally clear, this still won't always work as you might expect - for example, if there are two headings close to the bottom of the page, and you click on the last one, the second-to-last heading might be highlighted in the secondary sidebar because that's the heading the top of the window is closest to. But I think in most cases the behavior is sensible, so can we close this one out? |
Closing this as complete - haven't heard of complaints about this yet with the new docs site. Please reopen if this is an issue. |
Description
When I clicked the nav bar on the right side of the documentation, it redirects me correctly, but incorrectly activated.
cc @maximsmol @angelinalg
Link
No response
The text was updated successfully, but these errors were encountered: