diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-02-12 20:59:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 20:59:20 (GMT) |
commit | 52b8c5591b7523111b90a8a960d018d284f5a81a (patch) | |
tree | 5acef3baf85842cd622644559d6456d45c3dcc91 | |
parent | 5c329882fa20f615375f068176e569de7389fa3f (diff) | |
download | cpython-52b8c5591b7523111b90a8a960d018d284f5a81a.zip cpython-52b8c5591b7523111b90a8a960d018d284f5a81a.tar.gz cpython-52b8c5591b7523111b90a8a960d018d284f5a81a.tar.bz2 |
[backport to 2.7] Change documentation's `Show Source` link to GitHub (#44)
* Support "bpo-" in Misc/NEWS (#1)
Change the url to 2.7
(cherry picked from commit 79ab8be05fb4ffb5c258d2ca49be5fc2d4880431)
* pyspecific.py: remove space after` bpo-`
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 1b6b0e2..954137e 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -10,7 +10,7 @@ """ ISSUE_URI = 'https://bugs.python.org/issue%s' -SOURCE_URI = 'https://hg.python.org/cpython/file/2.7/%s' +SOURCE_URI = 'https://github.com/python/cpython/tree/2.7/%s' from docutils import nodes, utils @@ -58,7 +58,7 @@ LaTeXTranslator.depart_literal_block = new_depart_literal_block def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): issue = utils.unescape(text) - text = 'issue ' + issue + text = 'bpo-'+ issue refnode = nodes.reference(text, text, refuri=ISSUE_URI % issue) return [refnode], [] |