Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ffb99 commit 23bafa2Copy full SHA for 23bafa2
Doc/tools/templates/customsourcelink.html
@@ -3,8 +3,14 @@
3
<h3>{{ _('This Page') }}</h3>
4
<ul class="this-page-menu">
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>
+ <li>
+ {% if version == "3.7" %}
8
+ {% set version = 'master' %}
9
+ {% endif %}
10
+ <a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('txt', 'rst') }}"
11
+ rel="nofollow">{{ _('Show Source') }}
12
+ </a>
13
+ </li>
14
</ul>
15
</div>
16
{%- endif %}
0 commit comments