diff --git a/docs/conf.py b/docs/conf.py index 29f87f01..75c603a9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -58,11 +58,4 @@ # overwrite the builtin "default.css". # html_static_path = ["_static"] - -if is_on_readthedocs: - html_theme = "default" -else: - import sphinx_rtd_theme - - html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme = "sphinx_rtd_theme" diff --git a/docs/requirements.txt b/docs/requirements.txt index a839f13c..ef81d70d 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,3 @@ . sphinx-autodoc-typehints +sphinx-rtd-theme