Skip to content

Commit

Permalink
FIX: explicitly set the number of items that should appear in the hea…
Browse files Browse the repository at this point in the history
…der.

This suppresses a dropdown from kicking in after 5 items, effectively creating a dropdown with only 1 item.
Instead, this just shows all 6 items in the header bar.

Closes mne-tools#1295 , which raised an issue with the rendering of the dropdown. If a dropdown is ever introduced again, this issue may rear its head again.
  • Loading branch information
scott-huberty committed Aug 21, 2024
1 parent e724dec commit da3c745
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
html_static_path = ["_static"]
html_css_files = ["style.css"]

# The number of items that will appear in the header before the dropdown menu kicks in
html_theme_options = {
"header_links_before_dropdown": 6,
}

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down

0 comments on commit da3c745

Please sign in to comment.