mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
Fix broken Show Source
links on documentation pages (GH-3113) (GH-3125)
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 b9ff498793
)
This commit is contained in:
parent
6db2edbe05
commit
ff64a24c67
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue