]> granicus.if.org Git - python/commitdiff
bpo-32924: Fix the Show Source url in the docs. (GH-5835)
authorMariatta <Mariatta@users.noreply.github.com>
Fri, 23 Feb 2018 18:02:30 +0000 (10:02 -0800)
committerGitHub <noreply@github.com>
Fri, 23 Feb 2018 18:02:30 +0000 (10:02 -0800)
The Show Source link in Python 3.7 docs is pointing to GitHub's master branch.
It should point to the 3.7 branch.

Doc/tools/templates/customsourcelink.html

index fca44e9163cac744c03c4b9a80ffa5c6903f299c..21af621efce95b15a6e7b092201ad1b7ce79a3c4 100644 (file)
@@ -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>