File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def _depart_maths():
57
57
def _update_config_for_builder (app : Sphinx ) -> None :
58
58
app .env .document_ids = {} # For PEPReferenceRoleTitleText
59
59
if app .builder .name == "dirhtml" :
60
- app .env .settings ["pep_url" ] = ".. /pep-{:0>4}"
60
+ app .env .settings ["pep_url" ] = "/pep-{:0>4}"
61
61
62
62
# internal_builder exists if Sphinx is run by build.py
63
63
if "internal_builder" not in app .tags :
@@ -77,7 +77,7 @@ def _post_build(app: Sphinx, exception: Exception | None) -> None:
77
77
def setup (app : Sphinx ) -> dict [str , bool ]:
78
78
"""Initialize Sphinx extension."""
79
79
80
- environment .default_settings ["pep_url" ] = "pep-{:0>4}.html"
80
+ environment .default_settings ["pep_url" ] = "/ pep-{:0>4}.html"
81
81
environment .default_settings ["halt_level" ] = 2 # Fail on Docutils warning
82
82
83
83
# Register plugin logic
You can’t perform that action at this time.
0 commit comments