diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-08-18 13:22:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 13:22:32 (GMT) |
commit | 2281c041b24308811f781935a6c6848d55f24311 (patch) | |
tree | 1c30ddeb2f6fd1e8d2faf0a796f33e70fc540cfd | |
parent | d45cb040b9fcd74e8824d417bf789fcef4c9592c (diff) | |
download | cpython-2281c041b24308811f781935a6c6848d55f24311.zip cpython-2281c041b24308811f781935a6c6848d55f24311.tar.gz cpython-2281c041b24308811f781935a6c6848d55f24311.tar.bz2 |
Fix broken `Show Source` links on documentation pages (GH-3113) (GH-3128)
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/layout.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index cc16ae4..8d6d3e5 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -46,7 +46,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/{{ version }}/Doc/{{ sourcename|replace('txt', 'rst') }}" + <li><a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}" rel="nofollow">{% trans %}Show Source{% endtrans %}</a> </li> </ul> |