From 27bb8a861573f37ef3d135ff5c8c2d7c1c3d5c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20H=C3=B6chenberger?= Date: Wed, 31 Jul 2024 12:40:45 +0200 Subject: [PATCH] Choose documentation color scheme automatically based on operating system setting --- docs/mkdocs.yml | 10 ++++------ docs/source/v1.10.md.inc | 4 ++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 2cba8080e..cbabdae85 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -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)" diff --git a/docs/source/v1.10.md.inc b/docs/source/v1.10.md.inc index 8068510a0..883e98799 100644 --- a/docs/source/v1.10.md.inc +++ b/docs/source/v1.10.md.inc @@ -16,6 +16,10 @@ [//]: # (- Whatever (#000 by @whoever)) +### :books: 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)