From: Meder Kamalov <38204337+mederka@users.noreply.github.com> Date: Tue, 11 Oct 2022 10:54:24 +0000 (+0200) Subject: Add dark mode toggle for documentation (#2403) X-Git-Tag: 0.23.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f16234bc47006c7efd1b8d4b363000ab8b2b3d;p=thirdparty%2Fhttpx.git Add dark mode toggle for documentation (#2403) --- diff --git a/mkdocs.yml b/mkdocs.yml index 2a1d8e77..42e6e95d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,6 +4,18 @@ site_url: https://www.python-httpx.org/ theme: name: 'material' + palette: + - scheme: 'default' + media: '(prefers-color-scheme: light)' + toggle: + icon: 'material/lightbulb' + name: "Switch to dark mode" + - scheme: 'slate' + media: '(prefers-color-scheme: dark)' + primary: 'blue' + toggle: + icon: 'material/lightbulb-outline' + name: 'Switch to light mode' features: - navigation.sections