summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-09-08 18:32:26 (GMT)
committerNed Deily <nad@python.org>2017-09-08 18:32:26 (GMT)
commit0d68d6d9c6386e3f78893f0506f2ce16d88b5db8 (patch)
treecf6bfc16faf010152512eb6de8448f4163e0d4ae
parent9cc332094c5f8cbaa47400633ab3ba372da61c9d (diff)
downloadcpython-0d68d6d9c6386e3f78893f0506f2ce16d88b5db8.zip
cpython-0d68d6d9c6386e3f78893f0506f2ce16d88b5db8.tar.gz
cpython-0d68d6d9c6386e3f78893f0506f2ce16d88b5db8.tar.bz2
[3.5] Fix broken `Show Source` links on documentation pages (GH-3113) (#3126)
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)
-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>