mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00

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"
13 lines
482 B
HTML
13 lines
482 B
HTML
{%- if show_source and has_source and sourcename %}
|
|
<div role="note" aria-label="source link">
|
|
<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/master/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
|
|
rel="nofollow">{{ _('Show Source') }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{%- endif %}
|