From 2a3c2063ef57a2f63c41b672444722fabc386e49 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Mon, 1 Dec 2025 19:10:10 -0500 Subject: [PATCH] feat(docs): update MkDocs palette toggle configuration - Added support for automatic mode palette toggle with improved icons. - Removed deprecated `navigation.tabs.sticky` option. - Updated light and dark mode toggle settings with contextual media queries. --- mkdocs.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 42f49ef3..ccc88842 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -19,7 +19,6 @@ theme: - navigation.footer - navigation.top - navigation.tabs - - navigation.tabs.sticky - navigation.expand - navigation.path - navigation.indexes @@ -32,12 +31,19 @@ theme: - content.code.annotate palette: + # Palette toggle for automatic mode + - media: "(prefers-color-scheme)" + toggle: + icon: material/lightbulb-auto + name: Switch to light mode + # Palette toggle for light mode - scheme: default primary: orange accent: orange + media: "(prefers-color-scheme: light)" toggle: - icon: material/brightness-7 + icon: material/lightbulb name: Switch to dark mode @@ -45,8 +51,9 @@ theme: - scheme: slate primary: black accent: orange + media: "(prefers-color-scheme: dark)" toggle: - icon: material/brightness-4 + icon: material/lightbulb-outline name: Switch to light mode font: code: JetBrains Mono