From 027f7d6620065bcebd9b0b80acd7d15a315cf70a Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 7 Mar 2024 18:53:37 +0400 Subject: [PATCH] Reinstated the RTD Sphinx Theme for documentation Sometime in 2023 the default theme on Read-the-Docs was changed to Alabaster. This change enforces the old theme (sphinx_rtd_theme). --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 6ddfe76..e00dc68 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,6 +30,7 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True' # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ + "sphinx_rtd_theme" ] # Add any paths that contain templates here, relative to this directory. @@ -41,8 +42,7 @@ templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] -if not on_rtd: - html_theme = 'sphinx_rtd_theme' +html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,