1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Updating mkdocs to automatically adjust theme

Automatically adjusts documentation theme between default/slate based on users preference for dark mode.
This commit is contained in:
Jason Yates
2022-03-02 08:45:22 +00:00
parent 4913d7ee39
commit e3258bcf5a

View File

@ -8,11 +8,13 @@ theme:
icon:
repo: fontawesome/brands/github
palette:
- scheme: default
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/lightbulb-outline
name: Switch to Dark Mode
- scheme: slate
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/lightbulb
name: Switch to Light Mode