diff --git a/docs/conf.py b/docs/conf.py index 14fff2e..e0f5965 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,8 +30,9 @@ autodoc_inherit_docstrings = False # https://bitbucket.org/birkenfeld/sphinx/issue/1337/autoclass_content-both-uses-object__init__ autodoc_docstring_signature = False -intersphinx_mapping = {"python": ("https://docs.python.org/3.8/", None)} +intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} +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 @@ -39,8 +40,6 @@ on_rtd = os.environ.get("READTHEDOCS", None) == "True" # as on RTD. 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 = {