Skip to content

Commit

Permalink
Choose documentation color scheme automatically based on operating sy…
Browse files Browse the repository at this point in the history
…stem setting
  • Loading branch information
hoechenberger committed Jul 31, 2024
1 parent 2e9a619 commit bf90307
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ theme:
- content.code.copy # copy button
palette:
# Palette toggle for automated theme selection
# Currently only available to sponsors
#
# - media: "(prefers-color-scheme)"
# toggle:
# icon: material/brightness-auto
# name: Switch to light 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)"
Expand Down
4 changes: 4 additions & 0 deletions docs/source/v1.10.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

[//]: # (- Whatever (#000 by @whoever))

### :: Documentation

- Choose the theme (dark of light) automatically based on the user's operating system setting (#979 by @hoechenberger)

### :medical_symbol: Code health

- Switch from using relative to using absolute imports (#969 by @hoechenberger)

0 comments on commit bf90307

Please sign in to comment.