[Python-checkins] bpo-32924: Fix the Show Source url in the docs. (GH-5835)
Mariatta
webhook-mailer at python.org
Fri Feb 23 13:02:33 EST 2018
https://github.com/python/cpython/commit/079d75d099f228a4261f63a94217571e05e8fa8e
commit: 079d75d099f228a4261f63a94217571e05e8fa8e
branch: 3.7
author: Mariatta <Mariatta at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-02-23T10:02:30-08:00
summary:
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.
files:
M Doc/tools/templates/customsourcelink.html
diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html
index fca44e9163ca..21af621efce9 100644
--- a/Doc/tools/templates/customsourcelink.html
+++ b/Doc/tools/templates/customsourcelink.html
@@ -4,7 +4,7 @@ <h3>{{ _('This Page') }}</h3>
<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>
More information about the Python-checkins
mailing list