Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4a97d8

Browse files
authored
bpo-28929: Link the documentation to its source file on GitHub (python#35)
* bpo-28929: Link the documentation to its source file on GitHubChange the documentation's `Show Source` link on the left menuto GitHub source file.* change version to master
1 parentc22bfaa commitd4a97d8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎Doc/tools/templates/customsourcelink.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
<h3>{{ _('This Page') }}</h3>
44
<ulclass="this-page-menu">
55
<li><ahref="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
6-
<li><ahref="{{ pathto('_sources/' + sourcename, true)|e }}"
7-
rel="nofollow">{{ _('Show Source') }}</a></li>
6+
<li>
7+
<ahref="https://github.com/python/cpython/blob/master/Doc/{{ sourcename|replace('txt', 'rst') }}"
8+
rel="nofollow">{{ _('Show Source') }}
9+
</a>
10+
</li>
811
</ul>
912
</div>
1013
{%- endif %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp