[backport to 3.6] bpo-28929: Link the documentation to its source fil… · python/cpython@f66c81f (original) (raw)

Original file line number Diff line number Diff line change
@@ -3,8 +3,11 @@
3 3 <h3>{{ _('This Page') }}</h3>
4 4 <ul class="this-page-menu">
5 5 <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
6 -<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
7 -rel="nofollow">{{ _('Show Source') }}</a></li>
6 +<li>
7 +<a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('txt', 'rst') }}"
8 +rel="nofollow">{{ _('Show Source') }}
9 +</a>
10 +</li>
8 11 </ul>
9 12 </div>
10 13 {%- endif %}