From 4c51b7f24100133244691036fd0243291ac56e51 Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 27 Aug 2024 13:11:07 +0200 Subject: [PATCH 1/2] Fix html_theme config --- doc/conf.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index e894bea2..ebe362d2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -99,11 +99,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' -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 = 'sphinx_rtd_theme' #html_theme = 'default' @@ -264,4 +260,4 @@ # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'http://docs.python.org/': None} +#intersphinx_mapping = {'http://docs.python.org/': None} From 847dd4c2be291c1572c6df5d30458e6b9ab6d128 Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 27 Aug 2024 13:17:02 +0200 Subject: [PATCH 2/2] Doc requirements --- .readthedocs.yaml | 1 + doc-requirements.txt | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2c7ecde1..8425952e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -22,3 +22,4 @@ python: install: - method: pip path: . + - requirements: doc-requirements.txt diff --git a/doc-requirements.txt b/doc-requirements.txt index 4c24a18f..59709ec7 100644 --- a/doc-requirements.txt +++ b/doc-requirements.txt @@ -1,5 +1 @@ --e git+https://github.com/ckan/ckan#egg=ckan --r https://raw.githubusercontent.com/ckan/ckan/master/requirements.txt --r requirements.txt -sphinx==5.1.1 -sphinx-rtd-theme==1.0.0 +sphinx-rtd-theme==2.0.0