fix readthedocs

This commit is contained in:
sigma67 2023-08-27 23:08:50 +02:00
commit 56d54a2b50
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0
4 changed files with 6 additions and 20 deletions

View file

@ -50,21 +50,4 @@ templates_path = ['_templates']
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
if not on_rtd:
# Try to use the ReadTheDocs theme if installed.
# Default to the default alabaster theme if not.
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
html_theme = 'alabaster'
else:
# Set theme to 'default' for ReadTheDocs.
html_theme = 'default'
html_theme = "sphinx_rtd_theme"

View file

@ -0,0 +1,2 @@
sphinx<=7
sphinx-rtd-theme