From 53e6bc46d2f010f9a80e0c73dceb6166705f608f Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Thu, 16 Feb 2017 11:58:43 +0300 Subject: [PATCH] DOC: add SOURCELINK_SUFFIX for compatibility with Sphinx 1.5 With Sphinx 1.5, this is needed by searchtools.js to display the source snippets (see sphinx-doc/sphinx#2454). With earlier Sphinx versions, this is a no-op because the undefined variable will evaluate to an empty string. --- doc/_templates/layout.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index ad1c55a25161..aa1f278d51b5 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -82,7 +82,8 @@

{{ _('Navigation') }}

VERSION: '{{ release|e }}', COLLAPSE_INDEX: false, FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}', - HAS_SOURCE: {{ has_source|lower }} + HAS_SOURCE: {{ has_source|lower }}, + SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}' }; {%- for scriptfile in script_files %}