[Python-checkins] [3.8] bpo-32924: Fix the Show Source url in 3.8 documentation. (GH-14282)

Miss Islington (bot) webhook-mailer at python.org
Fri Jun 21 14:06:52 EDT 2019

commit: 52c4a4fb816d51a36c02b043d6fd5eeb875411d6
branch: 3.8
author: Mariatta <Mariatta at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-06-21T11:06:26-07:00

[3.8] bpo-32924: Fix the Show Source url in 3.8 documentation. (GH-14282)

The "Show Source" link in Python 3.8 docs is pointing
to the master branch. It should point to the 3.8 branch.


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>
-        <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') }}

More information about the Python-checkins mailing list