summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2018-02-23 18:02:30 (GMT)
committerGitHub <noreply@github.com>2018-02-23 18:02:30 (GMT)
commit079d75d099f228a4261f63a94217571e05e8fa8e (patch)
treeb3c0431bd311f2e347b6a1f1290799bd84a69fdb /Doc/tools
parent74b73642596caa287ee59bf7901ca009606c24cc (diff)
downloadcpython-079d75d099f228a4261f63a94217571e05e8fa8e.zip
cpython-079d75d099f228a4261f63a94217571e05e8fa8e.tar.gz
cpython-079d75d099f228a4261f63a94217571e05e8fa8e.tar.bz2
bpo-32924: Fix the Show Source url in the docs. (GH-5835)
The Show Source link in Python 3.7 docs is pointing to GitHub's master branch. It should point to the 3.7 branch.
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/templates/customsourcelink.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html
index fca44e9..21af621 100644
--- a/Doc/tools/templates/customsourcelink.html
+++ b/Doc/tools/templates/customsourcelink.html
@@ -4,7 +4,7 @@
<ul class="this-page-menu">
<li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
<li>
- <a href="https://github.com/python/cpython/blob/master/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
+ <a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
rel="nofollow">{{ _('Show Source') }}
</a>
</li>