Skip to content

Commit f0a63fb

Browse files
committed
add sticky navigation tabs so that the header sections row doesnt hide when scrolling down
this seems like it would be called header.autohide but per squidfunk/mkdocs-material#3586 (reply in thread) it is actually header.tabs.sticky
1 parent e5956c5 commit f0a63fb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

mkdocs.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,16 @@ theme:
5555
# https://squidfunk.github.io/mkdocs-material/upgrade
5656
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks
5757
features:
58-
- navigation.instant # setting-up-navigation/#instant-loading -- Use XHR instead of page reloads on browsing links
59-
- navigation.footer # upgrade/#navigationfooter -- Enable Next and Previous buttons in footer
60-
- navigation.tabs # setting-up-navigation/#navigation-tabs -- Enables the header tab navigation on large screens
61-
- navigation.indexes # setting-up-navigation/#section-index-pages -- Allows section headers to be standalone pages
62-
- navigation.top # setting-up-navigation/#back-to-top-button -- Button appears when user scrolls down then up
63-
- navigation.tracking # setting-up-navigation/#anchor-tracking -- Update url bar #anchor as you scroll
64-
- content.action.edit # upgrade/#contentaction -- Enables link to edit on github
65-
- toc.follow # setting-up-navigation/#anchor-following -- Sidebar automatically scrolls with content
66-
- content.code.annotate # reference/code-blocks/#code-annotations -- Allows + button annotations
58+
- navigation.instant # setting-up-navigation/#instant-loading # Use XHR instead of page reloads on browsing links
59+
- navigation.footer # upgrade/#navigationfooter # Enable Next and Previous buttons in footer
60+
- navigation.tabs # setting-up-navigation/#navigation-tabs # Enables the header tab navigation on large screens
61+
- navigation.tabs.sticky # setting-up-navigation/#sticky-navigation-tabs # Keep section headers visible instead of collapsing on scroll
62+
- navigation.indexes # setting-up-navigation/#section-index-pages # Allows section headers to be standalone pages
63+
- navigation.top # setting-up-navigation/#back-to-top-button # Button appears when user scrolls down then up
64+
- navigation.tracking # setting-up-navigation/#anchor-tracking # Update url bar #anchor as you scroll
65+
- content.action.edit # upgrade/#contentaction # Enables link to edit on github
66+
- toc.follow # setting-up-navigation/#anchor-following # Sidebar automatically scrolls with content
67+
- content.code.annotate # reference/code-blocks/#code-annotations # Allows + button annotations
6768

6869
palette: # https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-palette-toggle
6970
# Palette toggle for light mode

0 commit comments

Comments
 (0)