From 582e24dd9a4957f6acc9e17dfd440ed227b576b8 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 18 Mar 2026 14:44:06 +0200 Subject: [PATCH] doc: sphinx-trio now supports Sphinx>=9 so allow (and require) it --- changelog/14303.doc.rst | 1 + doc/en/conf.py | 2 ++ doc/en/requirements.txt | 5 ++--- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelog/14303.doc.rst diff --git a/changelog/14303.doc.rst b/changelog/14303.doc.rst new file mode 100644 index 00000000000..377c6d6057b --- /dev/null +++ b/changelog/14303.doc.rst @@ -0,0 +1 @@ +The documentation is now built with Sphinx >= 9. diff --git a/doc/en/conf.py b/doc/en/conf.py index 81156493131..39cd169cdb3 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -89,6 +89,8 @@ ("py:class", "_pytest.python_api.RaisesContext"), ("py:class", "_pytest.recwarn.WarningsChecker"), ("py:class", "_pytest.reports.BaseReport"), + # Sphinx bugs(?) + ("py:class", "RewriteHook"), # Undocumented third parties ("py:class", "_tracing.TagTracerSub"), ("py:class", "warnings.WarningMessage"), diff --git a/doc/en/requirements.txt b/doc/en/requirements.txt index d672a9d7e15..ecaf889cd9e 100644 --- a/doc/en/requirements.txt +++ b/doc/en/requirements.txt @@ -2,9 +2,8 @@ pluggy>=1.5.0 pygments-pytest>=2.5.0 sphinx-removed-in>=0.2.0 -# Pinning to <9.0 due to https://github.com/python-trio/sphinxcontrib-trio/issues/399. -sphinx>=7,<9.0 -sphinxcontrib-trio +sphinx>=9 +sphinxcontrib-trio>=1.2.0 sphinxcontrib-svg2pdfconverter furo sphinxcontrib-towncrier