-
Notifications
You must be signed in to change notification settings - Fork 327
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
ENH: Add section title to sidebar navigation #895
Conversation
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.
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html
Show resolved
Hide resolved
Agree re: extra whitespace for the version switcher. Want to propose something you think makes it look better? |
I was not able to open a PR on your branch (I don't know why it wasn't working) but as it's a minimal change I took the liberty of pushing it. Feel free to modify everything if needed |
No problem @12rambau you are always welcome to push directly to my branches in a PR! |
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.
LGTM
src/pydata_sphinx_theme/assets/styles/components/_switcher-version.scss
Outdated
Show resolved
Hide resolved
I think this is ready to go. The failing test is because of the pandas pre-release job failing but not related to this PR. I opened an issue to suggest a path forward here: |
This cleans up some of our sidebar navigation code, so that it is structured more compactly in our theme, and so that there are similar navigation headers for both the site and section navigation. Here's a quick summary:
Site Navigation
title to be inside of oursite header navigation
component. This is invisible in widescreen, but is visible on narrow screens when it shows up in the sidebar.Section Navigation
title to the "within section" navigation, so it's easy to distinguish the site/section navigation.For example, note the "site navigation" and (new) "section navigation" headers: