diff --git a/docs/conf.py b/docs/conf.py index 199c214..5901d8d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,6 +54,7 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +html_theme = "sphinx_rtd_theme" on_rtd = os.environ.get("READTHEDOCS", None) == "True" # On RTD we can't import sphinx_rtd_theme, but it will be applied by @@ -62,7 +63,6 @@ if not on_rtd: import sphinx_rtd_theme - html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] html_theme_options = {