From 3c931c4faf5c59b37de67d52b3280e3a7ef2b619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20M=C3=BCllegger?= Date: Thu, 10 Sep 2015 17:34:51 +0200 Subject: [PATCH] Hide "Edit on Github" link if page is a auto-created page That applies for source file views, search page etc. --- readthedocs/templates/sphinx/sphinx_rtd_theme/breadcrumbs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/templates/sphinx/sphinx_rtd_theme/breadcrumbs.html b/readthedocs/templates/sphinx/sphinx_rtd_theme/breadcrumbs.html index 0028421e1ca..95373596d3e 100644 --- a/readthedocs/templates/sphinx/sphinx_rtd_theme/breadcrumbs.html +++ b/readthedocs/templates/sphinx/sphinx_rtd_theme/breadcrumbs.html @@ -6,7 +6,7 @@ {% endfor %}
  • {{ title }}
  • - {% if pagename != "search" %} + {% if hasdoc(pagename) %} {% if display_github %} Edit on GitHub {% elif display_bitbucket %}