diff --git a/alabaster/layout.html b/alabaster/layout.html index 0885d03..2b6eb91 100644 --- a/alabaster/layout.html +++ b/alabaster/layout.html @@ -94,9 +94,14 @@ {% endif %} {%- if show_source and has_source and sourcename %} {% if show_copyright or theme_show_powered_by %}|{% endif %} + {%- if source_url_prefix %} + {{ _('Page source') }} + {%- else %} {{ _('Page source') }} {%- endif %} + {%- endif %} {% if theme_github_banner|lower != 'false' %} diff --git a/alabaster/theme.conf b/alabaster/theme.conf index b6cdc8d..53d4fc0 100644 --- a/alabaster/theme.conf +++ b/alabaster/theme.conf @@ -36,6 +36,7 @@ show_relbars = false sidebar_collapse = true sidebar_includehidden = true sidebar_width = 220px +source_url_prefix = tidelift_url = touch_icon = travis_button = false diff --git a/docs/changelog.rst b/docs/changelog.rst index 5f14e3e..293b49b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,8 @@ Changelog ========= +- :feature:`87` Add support for arbitrary "edit source" link + targets. Credit: ``@anarcat``. - :release:`0.7.12 <2018-10-02>` - :bug:`-` On some browsers/platforms, 'badge'-style sidebar elements were displaying dotted underlines. This was unintentional and explicit styling has