File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 5151 {% endif %}
5252 {%- if show_source and has_source and sourcename %}
5353 {% if show_copyright or theme_show_powered_by %}|{% endif %}
54+ {%- if source_url_prefix %}
55+ < a href ="{{ source_url_prefix }}{{ pagename }}{{ source_suffix }} "
56+ rel ="nofollow "> {{ _('Page source') }}</ a >
57+ {%- else %}
5458 < a href ="{{ pathto('_sources/' + sourcename, true)|e }} "
5559 rel ="nofollow "> {{ _('Page source') }}</ a >
5660 {%- endif %}
61+ {%- endif %}
5762 </ div >
5863
5964 {% if theme_github_banner|lower != 'false' %}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ sidebar_includehidden = true
2828sidebar_collapse = true
2929show_powered_by = true
3030show_related = false
31+ source_url_prefix =
3132
3233gray_1 = #444
3334gray_2 = #EEE
Original file line number Diff line number Diff line change 22Changelog
33=========
44
5+ * :feature: `87 ` Add support for arbitrary "edit source" link
6+ targets. Credit: ``@anarcat ``.
57* :support: `- backported ` Miscellaneous project maintenance updates such as
68 adding to Travis CI and enforcing the use of ``flake8 ``.
79* :feature: `110 backported ` Add ``badge_branch `` option allowing
You can’t perform that action at this time.
0 commit comments