From 27848874e49b52aa681271d4cd1a6c1e58acd9fd Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 8 Oct 2024 12:04:45 +0200 Subject: [PATCH] Pin sphinx<8 / update sphinx config for sphinx8 (#2532) Some dependency lifted there sphinx<8 requirement, but this leads to a number of issues with other dependencies. Therefore, require sphinx<8 for now. Anyways fix some upcoming issue with sphinx 8 when doc2path will return something path-like (see https://github.com/ICB-DCM/pyPESTO/issues/1482). --- documentation/conf.py | 2 +- documentation/rtd_requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/conf.py b/documentation/conf.py index 3f867e0a3a..c86a145f9d 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -215,7 +215,7 @@ def install_doxygen(): nbsphinx_prolog = ( f"{{% set {ref=} %}}" r""" - {% set docname = "documentation/" + env.doc2path(env.docname, base=False) %} + {% set docname = "documentation/" + env.doc2path(env.docname, base=False)|string %} .. raw:: html
diff --git a/documentation/rtd_requirements.txt b/documentation/rtd_requirements.txt index 06cf506666..05e04bc957 100644 --- a/documentation/rtd_requirements.txt +++ b/documentation/rtd_requirements.txt @@ -1,5 +1,5 @@ # NOTE: relative paths are expected to be relative to the repository root -sphinx +sphinx<8 mock>=5.0.2 setuptools>=67.7.2 pysb>=1.11.0