[Python-checkins] bpo-32924: Fix the Show Source url in the documentation (GH-25994)
miss-islington
webhook-mailer at python.org
Sat May 8 14:44:08 EDT 2021
https://github.com/python/cpython/commit/20fcd8363452506d51bf820c835bd11b6d00e0e7
commit: 20fcd8363452506d51bf820c835bd11b6d00e0e7
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-05-08T11:43:59-07:00
summary:
bpo-32924: Fix the Show Source url in the documentation (GH-25994)
(cherry picked from commit 03acfc50ac0be8b49847b94dee93e21b1efa0e76)
Co-authored-by: Pablo Galindo <Pablogsal at gmail.com>
files:
M Doc/tools/templates/customsourcelink.html
diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html
index fca44e9163cac7..21af621efce95b 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