From 2810fb53a274698da12317bb9a2d0416d6cd885b Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Fri, 23 Apr 2021 19:13:34 +0200 Subject: [PATCH] using correct readthedocs theme? --- sphinx-docs/source/conf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sphinx-docs/source/conf.py b/sphinx-docs/source/conf.py index 96a296a..d0a92e5 100644 --- a/sphinx-docs/source/conf.py +++ b/sphinx-docs/source/conf.py @@ -70,3 +70,14 @@ html_theme = 'alabaster' html_static_path = ['_static'] sys.path.insert(0, os.path.abspath('../../')) + + +if os.getenv('READTHEDOCS', False): + import sphinx_rtd_theme + + extensions = [ + ... + "sphinx_rtd_theme", + ] + + html_theme = "sphinx_rtd_theme"