https://github.com/python/cpython/commit/b9ff498793611d1c6a9b99df464812931a1e2d69 commit: b9ff498793611d1c6a9b99df464812931a1e2d69 branch: master author: Elmar Ritsch <35851+elritsch at users.noreply.github.com> committer: Mariatta <Mariatta at users.noreply.github.com> date: 2017年08月17日T20:23:51-07:00 summary: 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" files: M Doc/tools/templates/customsourcelink.html diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html index 42172909cae..fca44e9163c 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>