From 70a93f4a803d5a79e3fcd401f44108b8c71fa753 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Thu, 25 Apr 2024 12:55:19 +0200 Subject: [PATCH 1/2] Add sphinx_rtd_dark_mode extension. --- conf.py | 7 +++++-- requirements.txt | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index ae8ae1b3..fb33d0c6 100644 --- a/conf.py +++ b/conf.py @@ -30,6 +30,7 @@ "sphinx_rtd_theme", "sphinx_tabs.tabs", "myst_parser", + "sphinx_rtd_dark_mode", ] # Add any paths that contain templates here, relative to this directory. @@ -55,7 +56,7 @@ # Toc options 'includehidden': True, - 'titles_only': False + 'titles_only': False, } html_favicon = '_static/favicon.ico' html_logo = 'cyberduck-icon-64.png' @@ -83,4 +84,6 @@ myst_enable_extensions = [ "html_image", "colon_fence" -] \ No newline at end of file +] + +default_dark_mode = False diff --git a/requirements.txt b/requirements.txt index adac25a3..dab6402f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ myst-parser sphinx-tabs sphinx_rtd_theme +sphinx_rtd_dark_mode # Pin docutils docutils~=0.18.0 \ No newline at end of file From 19311fbe124866cc49545561823a6b54d93a0861 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Wed, 25 Dec 2024 17:09:49 +0100 Subject: [PATCH 2/2] Override background. --- _static/css/custom.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index 4a1e6459..1afda2ea 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -34,6 +34,11 @@ body { .sphinx-tabs-panel { padding: 1em 1em 0 1em; + background: inherit !important; +} + +.sphinx-tabs-tab { + background: inherit !important; } .rst-content section ol.arabic, .rst-content section ol.arabic > li {