diff options
author | Elmar Ritsch <35851+elritsch@users.noreply.github.com> | 2017-08-18 03:23:51 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-08-18 03:23:51 (GMT) |
commit | b9ff498793611d1c6a9b99df464812931a1e2d69 (patch) | |
tree | c21b7e951f51f90ab15a5c689fbd878aaee38b9d /Doc/tools | |
parent | fe2b56ab9212c1cf19c48b848fa60f7f201c366f (diff) | |
download | cpython-b9ff498793611d1c6a9b99df464812931a1e2d69.zip cpython-b9ff498793611d1c6a9b99df464812931a1e2d69.tar.gz cpython-b9ff498793611d1c6a9b99df464812931a1e2d69.tar.bz2 |
Fix broken `Show Source` links on documentation pages (GH-3113)
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"
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/templates/customsourcelink.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html index 4217290..fca44e9 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/master/Doc/{{ sourcename|replace('txt', 'rst') }}" + <a href="https://github.com/python/cpython/blob/master/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}" rel="nofollow">{{ _('Show Source') }} </a> </li> |