Skip to content

Commit

Permalink
docs: enable light/dark mode toggle in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 15, 2023
1 parent 92fc997 commit b9e812a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions mkdocs.yml
Expand Up @@ -28,9 +28,20 @@ theme:
logo: static/icons/ibis/logo.svg
favicon: static/icons/ibis/logo.svg
palette:
scheme: slate
primary: teal
accent: lime
# light mode toggle
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# dark mode toggle
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: teal
accent: lime
toggle:
icon: material/brightness-4
name: Switch to light mode
custom_dir: docs/overrides
plugins:
- search
Expand Down Expand Up @@ -86,7 +97,6 @@ plugins:
- "*.py"
execute_ignore: "**/rendered/*.ipynb"
include_source: true
theme: dark
allow_errors: false
- literate-nav
markdown_extensions:
Expand Down

0 comments on commit b9e812a

Please sign in to comment.