Link to plaintext for "show source" links (#137131)

This commit is contained in:
ryan-duve 2025-07-26 21:48:56 -04:00 committed by GitHub
parent a852c7bdd4
commit 9cbf46d992
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ <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') }}"
<a href="https://github.com/python/cpython/blob/main/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}?plain=1"
rel="nofollow">{{ _('Show source') }}
</a>
</li>