Commit 52b8c559 authored by Mariatta's avatar Mariatta Committed by GitHub

[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 79ab8be0)

* pyspecific.py: remove space after` bpo-`
parent 5c329882
......@@ -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], []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment