Add a custom nav bar with more dropdown menus #396
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@droumis I had a quick look and I think in the end it's not too hard to customize the nav bar to have multiple dropdowns.
This PR is not meant to be merged, I think you could use these changes as a basis for your changes to the nav bar (half the relative links in this PR are fake 馃檭 ).
I just found the nav bar template for the version we use in this repo (found in the lock file) on the theme's github https://github.com/pydata/pydata-sphinx-theme/blob/v0.13.3/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html. Saved that in a new file. I inspected the HTML of the nav bar on the currently deployed website, copied and adapted it to add more dropdowns and external links. We'll probably have to update the template when bumping the version of the theme, it shouldn't be too hard though.
I added a
Websites
dropdown with links to the HoloViz websites. That's because I've been wondering how to better expose HoloViz and its projects on all the websites. Perhaps that dropdown should be added to all the websites? Just a thought!Since we were wondering, in the newer versions of the theme it's possible to customize the text of the
More
dropdown with theheader_dropdown_text
option (pydata/pydata-sphinx-theme#1423). Useful, but not enough for us I think.