mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +00:00
docs: allow for toggling light/dark mode (#2869)
This commit is contained in:
parent
820d401911
commit
b3e0ea14bf
1 changed files with 21 additions and 0 deletions
21
mkdocs.yml
21
mkdocs.yml
|
@ -15,6 +15,27 @@ theme:
|
||||||
- navigation.top
|
- navigation.top
|
||||||
- navigation.indexes
|
- navigation.indexes
|
||||||
locale: en
|
locale: en
|
||||||
|
palette:
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
highlightjs: true
|
highlightjs: true
|
||||||
hljs_languages:
|
hljs_languages:
|
||||||
|
|
Loading…
Reference in a new issue