mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
[3.13] GH-125722: Remove Sphinx patches (GH-129277) (#129278)
GH-125722: Remove Sphinx patches (GH-129277)
(cherry picked from commit d40692db06
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
e07a6fe7c3
commit
104bcff983
1 changed files with 0 additions and 10 deletions
|
@ -40,16 +40,6 @@ Body.enum.converters['loweralpha'] = \
|
||||||
Body.enum.converters['lowerroman'] = \
|
Body.enum.converters['lowerroman'] = \
|
||||||
Body.enum.converters['upperroman'] = lambda x: None
|
Body.enum.converters['upperroman'] = lambda x: None
|
||||||
|
|
||||||
# monkey-patch the productionlist directive to allow hyphens in group names
|
|
||||||
# https://github.com/sphinx-doc/sphinx/issues/11854
|
|
||||||
from sphinx.domains import std
|
|
||||||
|
|
||||||
std.token_re = re.compile(r'`((~?[\w-]*:)?\w+)`')
|
|
||||||
|
|
||||||
# backport :no-index:
|
|
||||||
PyModule.option_spec['no-index'] = directives.flag
|
|
||||||
|
|
||||||
|
|
||||||
# Support for marking up and linking to bugs.python.org issues
|
# Support for marking up and linking to bugs.python.org issues
|
||||||
|
|
||||||
def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
|
def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue