Skip to content

Commit 13e3b6a

Browse files
committed
reformat mkdocs-material feature flags to reduce duplication and add explanations
1 parent 2b4f629 commit 13e3b6a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

mkdocs.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,19 @@ theme:
5050
edit: fontawesome/solid/wand-magic-sparkles
5151
custom_dir: overrides # https://squidfunk.github.io/mkdocs-material/customization/#extending-the-theme
5252

53+
# Feature flags from mkdocs-material, see:
54+
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation
55+
# https://squidfunk.github.io/mkdocs-material/upgrade
56+
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks
5357
features:
54-
- navigation.instant # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#instant-loading
55-
- navigation.footer # https://squidfunk.github.io/mkdocs-material/upgrade/#navigationfooter
56-
- navigation.tabs # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-tabs
57-
- navigation.indexes # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages
58-
- navigation.top # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#back-to-top-button
59-
- content.action.edit # https://squidfunk.github.io/mkdocs-material/upgrade/#contentaction
60-
- toc.follow # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#anchor-following
61-
- content.code.annotate # https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-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.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+
- content.action.edit # upgrade/#contentaction -- Enables link to edit on github
64+
- toc.follow # setting-up-navigation/#anchor-following -- Sidebar automatically scrolls with content
65+
- content.code.annotate # reference/code-blocks/#code-annotations -- Allows + button annotations
6266

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

0 commit comments

Comments
 (0)