cpython/Doc/tools/templates/customsourcelink.html
Miss Islington (bot) 47a2109c1a
[3.14] Link to plaintext for "show source" links (GH-137131) (#137132)
Link to plaintext for "show source" links (GH-137131)
(cherry picked from commit 9cbf46d992)

Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
2025-07-27 09:54:41 +03:00

13 lines
488 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/main/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}?plain=1"
rel="nofollow">{{ _('Show source') }}
</a>
</li>
</ul>
</div>
{%- endif %}