summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-08-18 13:21:33 (GMT)
committerGitHub <noreply@github.com>2017-08-18 13:21:33 (GMT)
commitff64a24c67fcd20bef9305db306b5026990d412b (patch)
treebb673eb8300fd919b894422580ce1337c5117e8b /Doc
parent6db2edbe050cc9ac9026f350a24f2d525bcadecd (diff)
downloadcpython-ff64a24c67fcd20bef9305db306b5026990d412b.zip
cpython-ff64a24c67fcd20bef9305db306b5026990d412b.tar.gz
cpython-ff64a24c67fcd20bef9305db306b5026990d412b.tar.bz2
Fix broken `Show Source` links on documentation pages (GH-3113) (GH-3125)
The `Show Source` was broken because of a change made in sphinx 1.5.1 In Sphinx 1.4.9, the sourcename was "index.txt". In Sphinx 1.5.1+, it is now "index.rst.txt". (cherry picked from commit b9ff498793611d1c6a9b99df464812931a1e2d69)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tools/templates/customsourcelink.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html
index 71d0bba..21af621 100644
--- a/Doc/tools/templates/customsourcelink.html
+++ b/Doc/tools/templates/customsourcelink.html
@@ -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/{{ version }}/Doc/{{ sourcename|replace('txt', 'rst') }}"
+ <a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
rel="nofollow">{{ _('Show Source') }}
</a>
</li>