From 3d397672a0f6757971a1a20dae23eb18f7e0aed9 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Sun, 29 Mar 2015 21:28:16 -0700 Subject: [PATCH] Link to the external source of the page on arbitrary URL Currently only source code hosted on GitHub or BitBucket are supported to be linked. This PR adds the ability to link to an arbitrary source code host URL. To use it, html_show_sourcelink must be True, and source_url_prefix must be assigned to be the URL prefix. --- sphinx_rtd_theme/breadcrumbs.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sphinx_rtd_theme/breadcrumbs.html b/sphinx_rtd_theme/breadcrumbs.html index 44f8c1246..af4f55a46 100644 --- a/sphinx_rtd_theme/breadcrumbs.html +++ b/sphinx_rtd_theme/breadcrumbs.html @@ -10,6 +10,8 @@ Edit on GitHub {% elif display_bitbucket %} Edit on Bitbucket + {% elif show_source and source_url_prefix %} + View page source {% elif show_source and has_source and sourcename %} View page source {% endif %}