diff options
| author | Elmar Ritsch <35851+elritsch@users.noreply.github.com> | 2017-08-18 05:23:51 +0200 |
|---|---|---|
| committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-08-17 20:23:51 -0700 |
| commit | b9ff498793611d1c6a9b99df464812931a1e2d69 (patch) | |
| tree | c21b7e951f51f90ab15a5c689fbd878aaee38b9d | |
| parent | fe2b56ab9212c1cf19c48b848fa60f7f201c366f (diff) | |
| download | cpython-git-b9ff498793611d1c6a9b99df464812931a1e2d69.tar.gz | |
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"
| -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 42172909ca..fca44e9163 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> |
