Always set html_theme in doc configuration.

Lat version of read the doc do not set a html_theme for us.
So we have to always set it.

See readthedocs/readthedocs.org#10638
This commit is contained in:
Matthieu Gautier 2023-08-24 10:45:23 +02:00
parent fe5e6c451d
commit 0e8a2952d5
2 changed files with 2 additions and 5 deletions

View File

@ -24,8 +24,6 @@ author = 'libkiwix-team'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones. # ones.
@ -42,8 +40,6 @@ templates_path = ['_templates']
# This pattern also affects html_static_path and html_extra_path. # This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
if not on_rtd:
html_theme = 'sphinx_rtd_theme' html_theme = 'sphinx_rtd_theme'
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,

View File

@ -1,2 +1,3 @@
breathe breathe
exhale exhale
sphinx_rtd_theme