still fix readthedocs

[skip ci]
This commit is contained in:
lilydjwg 2023-08-26 11:54:02 +08:00
parent f3da72403e
commit b8c0e8a6b3

View File

@ -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 = {