]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: Fix the Show Source link (GH-100733)
authorZachary Ware <zach@python.org>
Tue, 3 Jan 2023 22:51:36 +0000 (16:51 -0600)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2023 22:51:36 +0000 (16:51 -0600)
See also python/release-tools#10

Doc/tools/templates/customsourcelink.html

index eb9db9e341bd75226a9e5433b6642f89a848b86c..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/main/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>