mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
The latest docutils converts :pep: role to the "https" URL (again)
docutils-0.19 (unreleased) generates "https" URL from :pep: role.
This commit is contained in:
parent
083b0b5207
commit
9d29adb76c
@ -166,16 +166,17 @@ def get_verifier(verify, verify_re):
|
|||||||
),
|
),
|
||||||
(
|
(
|
||||||
# pep role with anchor
|
# pep role with anchor
|
||||||
'verify',
|
'verify_re',
|
||||||
':pep:`8#id1`',
|
':pep:`8#id1`',
|
||||||
|
# since docutils-0.19, :pep: role points to python.org via https schema
|
||||||
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
|
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
|
||||||
'href="http://www.python.org/dev/peps/pep-0008#id1">'
|
'href="https?://www.python.org/dev/peps/pep-0008#id1">'
|
||||||
'<strong>PEP 8#id1</strong></a></p>'),
|
'<strong>PEP 8#id1</strong></a></p>'),
|
||||||
('\\sphinxAtStartPar\n'
|
(r'\\sphinxAtStartPar\n'
|
||||||
'\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}'
|
r'\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}'
|
||||||
'!PEP 8\\#id1@\\spxentry{PEP 8\\#id1}}\\sphinxhref'
|
r'!PEP 8\\#id1@\\spxentry{PEP 8\\#id1}}\\sphinxhref'
|
||||||
'{http://www.python.org/dev/peps/pep-0008\\#id1}'
|
r'{https?://www.python.org/dev/peps/pep-0008\\#id1}'
|
||||||
'{\\sphinxstylestrong{PEP 8\\#id1}}')
|
r'{\\sphinxstylestrong{PEP 8\\#id1}}')
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
# rfc role
|
# rfc role
|
||||||
|
Loading…
Reference in New Issue
Block a user