Infra: Fix 404s (#3760)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Adam Turner 2024-04-23 11:38:09 +01:00 committed by GitHub
parent 5feac329b9
commit 7c00075fd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View File

@ -20,10 +20,6 @@ if TYPE_CHECKING:
from sphinx.application import Sphinx
def _depart_maths():
pass # No-op callable for the type checker
def _update_config_for_builder(app: Sphinx) -> None:
app.env.document_ids = {} # For PEPReferenceRoleTitleText
app.env.settings["builder"] = app.builder.name
@ -84,8 +80,8 @@ def setup(app: Sphinx) -> dict[str, bool]:
app.connect("env-before-read-docs", create_pep_zero) # PEP 0 hook
# Mathematics rendering
inline_maths = HTMLTranslator.visit_math, _depart_maths
block_maths = HTMLTranslator.visit_math_block, _depart_maths
inline_maths = HTMLTranslator.visit_math, None
block_maths = HTMLTranslator.visit_math_block, None
app.add_html_math_renderer("maths_to_html", inline_maths, block_maths) # Render maths to HTML
# Parallel safety: https://www.sphinx-doc.org/en/master/extdev/index.html#extension-metadata

View File

@ -2,7 +2,7 @@
Pygments >= 2.9.0
# Sphinx 6.1.0 broke copying images in parallel builds; fixed in 6.1.2
# See https://github.com/sphinx-doc/sphinx/pull/11100
Sphinx >= 5.1.1, != 6.1.0, != 6.1.1, < 7.3
Sphinx >= 5.1.1, != 6.1.0, != 6.1.1
docutils >= 0.19.0
sphinx-autobuild