From 1e1fef7a7b3bf168d8847716672aeb3f9cec13d1 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 25 Feb 2024 18:41:12 +0100 Subject: [PATCH] Add documentation dark theme Signed-off-by: Emmy D'Anello --- docs/conf.py | 3 +++ docs/requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index f408dd1..95dfdd9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -29,6 +29,7 @@ author = "Animath" # ones. extensions = [ "sphinx_rtd_theme", + "sphinx_rtd_dark_mode", ] # Add any paths that contain templates here, relative to this directory. @@ -58,3 +59,5 @@ html_theme = 'sphinx_rtd_theme' # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +default_dark_mode = True diff --git a/docs/requirements.txt b/docs/requirements.txt index 540deda..f952b2c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,3 @@ sphinx>=3.3 -sphinx-rtd-theme>=0.5 +sphinx-rtd-theme>=2.0 +sphinx_rtd_dark_mode>=1.3.0