From 976bd529726f1ec86dd2fee2a6a3b8953fcee458 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sat, 16 Aug 2025 11:32:24 +0200 Subject: [PATCH] docs dark mode --- docs/requirements.txt | 1 + docs/source/conf.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 77e4dcc42..1bb6ae32a 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,4 @@ sphinx>7.0.0 sphinx_rtd_theme>=1.2 +sphinx_rtd_dark_mode sphinxcontrib-jquery diff --git a/docs/source/conf.py b/docs/source/conf.py index 35f69670e..df180951e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -52,7 +52,10 @@ needs_sphinx = '5.3' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [ 'sphinxcontrib.jquery'] +extensions = [ 'sphinxcontrib.jquery', 'sphinx_rtd_dark_mode'] + +# user starts in light mode +default_dark_mode = False # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']