From b8c0e8a6b3139e1975ea33cfde4dc07ea3ffc251 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 26 Aug 2023 11:54:02 +0800 Subject: [PATCH] still fix readthedocs [skip ci] --- docs/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 = {