From ee146d19bdaaf63517ab29e9ac30c273be2e91cb Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Thu, 25 Jan 2024 11:41:28 +0100 Subject: [PATCH] Readthedocs: add explicit requirement sphinx_rtd_theme Closes #269. --- .readthedocs.yaml | 9 ++++----- doc/conf.py | 8 ++++---- doc/requirements.txt | 2 ++ 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 doc/requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 5471c420..866ca02a 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -24,9 +24,8 @@ sphinx: # - pdf # - epub -# Optional but recommended, declare the Python requirements required -# to build your documentation +# Declare the Python requirements required to build your documentation # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html -# python: -# install: -# - requirements: doc/requirements.txt +python: + install: + - requirements: doc/requirements.txt diff --git a/doc/conf.py b/doc/conf.py index c80f1574..8952b8cf 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -46,10 +46,10 @@ # html_theme = 'sphinx_rtd_theme' -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +# # Add any paths that contain custom static files (such as style sheets) here, +# # relative to this directory. They are copied after the builtin static files, +# # so a file named "default.css" will overwrite the builtin "default.css". +# html_static_path = ['_static'] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 00000000..384b1466 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,2 @@ +Sphinx >= 7.2.5 +sphinx_rtd_theme >= 1.3.0