Skip to content

Commit

Permalink
bpo-28929: Link the documentation to its source file on GitHub (#35)
Browse files Browse the repository at this point in the history
* bpo-28929: Link the documentation to its source file on GitHub

Change the documentation's `Show Source` link on the left menu
to GitHub source file.

* change version to master
  • Loading branch information
Mariatta authored Feb 12, 2017
1 parent c22bfaa commit d4a97d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Doc/tools/templates/customsourcelink.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
<h3>{{ _('This Page') }}</h3>
<ul class="this-page-menu">
<li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li>
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show Source') }}</a></li>
<li>
<a href="https://github.com/python/cpython/blob/master/Doc/{{ sourcename|replace('txt', 'rst') }}"
rel="nofollow">{{ _('Show Source') }}
</a>
</li>
</ul>
</div>
{%- endif %}

0 comments on commit d4a97d8

Please sign in to comment.