mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91536)
(cherry picked from commit 17dbb6bc10)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
This commit is contained in:
parent
f3f5d4be7a
commit
35ce2b771b
1 changed files with 2 additions and 1 deletions
|
|
@ -395,7 +395,8 @@ def run(self):
|
||||||
text = 'The NEWS file is not available.'
|
text = 'The NEWS file is not available.'
|
||||||
node = nodes.strong(text, text)
|
node = nodes.strong(text, text)
|
||||||
return [node]
|
return [node]
|
||||||
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
|
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
|
||||||
|
r'issue?@action=redirect&bpo=\1>`__',
|
||||||
content)
|
content)
|
||||||
content = whatsnew_re.sub(r'\1', content)
|
content = whatsnew_re.sub(r'\1', content)
|
||||||
# remove first 3 lines as they are the main heading
|
# remove first 3 lines as they are the main heading
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue