Skip to content

Commit 7c00075

Browse files
AA-Turnerhugovk
andauthored
Infra: Fix 404s (#3760)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 5feac32 commit 7c00075

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pep_sphinx_extensions/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
from sphinx.application import Sphinx
2121

2222

23-
def _depart_maths():
24-
pass # No-op callable for the type checker
25-
26-
2723
def _update_config_for_builder(app: Sphinx) -> None:
2824
app.env.document_ids = {} # For PEPReferenceRoleTitleText
2925
app.env.settings["builder"] = app.builder.name
@@ -84,8 +80,8 @@ def setup(app: Sphinx) -> dict[str, bool]:
8480
app.connect("env-before-read-docs", create_pep_zero) # PEP 0 hook
8581

8682
# Mathematics rendering
87-
inline_maths = HTMLTranslator.visit_math, _depart_maths
88-
block_maths = HTMLTranslator.visit_math_block, _depart_maths
83+
inline_maths = HTMLTranslator.visit_math, None
84+
block_maths = HTMLTranslator.visit_math_block, None
8985
app.add_html_math_renderer("maths_to_html", inline_maths, block_maths) # Render maths to HTML
9086

9187
# Parallel safety: https://www.sphinx-doc.org/en/master/extdev/index.html#extension-metadata

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pygments >= 2.9.0
33
# Sphinx 6.1.0 broke copying images in parallel builds; fixed in 6.1.2
44
# See https://github.com/sphinx-doc/sphinx/pull/11100
5-
Sphinx >= 5.1.1, != 6.1.0, != 6.1.1, < 7.3
5+
Sphinx >= 5.1.1, != 6.1.0, != 6.1.1
66
docutils >= 0.19.0
77

88
sphinx-autobuild

0 commit comments

Comments
 (0)