-
Notifications
You must be signed in to change notification settings - Fork 343
Closed
Labels
needs: discussionNeeds discussion before an implementation can be madeNeeds discussion before an implementation can be madetag: componentIssues or improvements associated with a given component in the themeIssues or improvements associated with a given component in the theme
Description
Currently the header dropdown generated after n_links_before_dropdown
is by default named More
. It would be a nice feature if one could group remaining header links into a dropdown with a custom name.
One option I see is that generate_header_nav_html
could accept an argument to use when wrapping the final few header items in a "More" dropdown:
pydata-sphinx-theme/src/pydata_sphinx_theme/toctree.py
Lines 131 to 143 in 92445e9
# Wrap the final few header items in a "more" dropdown | |
links_dropdown = links_html[n_links_before_dropdown:] | |
if links_dropdown: | |
links_dropdown_html = "\n".join(links_dropdown) | |
out += f""" | |
<div class="nav-item dropdown"> | |
<button class="btn dropdown-toggle nav-item" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | |
More | |
</button> | |
<div class="dropdown-menu"> | |
{links_dropdown_html} | |
</div> | |
</div> |
Maybe related to #1016
michaelweinold
Metadata
Metadata
Assignees
Labels
needs: discussionNeeds discussion before an implementation can be madeNeeds discussion before an implementation can be madetag: componentIssues or improvements associated with a given component in the themeIssues or improvements associated with a given component in the theme