From dcde79291a27e71245d52a4ce3fe8f688aaf7526 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Wed, 12 Aug 2015 17:53:10 -0700 Subject: [PATCH] This fixes the "Edit on GH" links on recommonmark Sphinx docs --- sphinx_rtd_theme/breadcrumbs.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sphinx_rtd_theme/breadcrumbs.html b/sphinx_rtd_theme/breadcrumbs.html index 0028421e..131d497c 100644 --- a/sphinx_rtd_theme/breadcrumbs.html +++ b/sphinx_rtd_theme/breadcrumbs.html @@ -1,3 +1,11 @@ +{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #} + +{% if page_source_suffix %} +{% set suffix = page_source_suffix %} +{% else %} +{% set suffix = source_suffix %} +{% endif %} +