Skip to content

Commit

Permalink
chore(deps): upgrade to mkdocs-material 9 & enable dark/light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotk committed Jul 4, 2024
1 parent d674bed commit 72b93c9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,29 @@ theme:
features:
- tabs
- instant
- content.action.edit
- content.code.copy
palette:
primary: "indigo"
accent: "indigo"
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default

toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference
font:
text: "Roboto"
code: "Roboto Mono"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mkdocs-material==8.2.11
mkdocs-material==9.5.28

0 comments on commit 72b93c9

Please sign in to comment.