From c1187145f54739eb07aaae98834818723b5d471d Mon Sep 17 00:00:00 2001 From: ImportanceOfBeingErnest Date: Sat, 22 Sep 2018 21:47:28 +0200 Subject: [PATCH] Fix search for sphinx >=1.8 --- doc/_templates/layout.html | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 062be3b551db..2da65d8fd8e8 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -76,19 +76,27 @@

{{ _('Navigation') }}

{%- endmacro %} {%- macro script() %} - - {%- for scriptfile in script_files %} - - {%- endfor %} + {% if sphinx_version >= "1.8.0" %} + + {%- for scriptfile in script_files %} + {{ js_tag(scriptfile) }} + {%- endfor %} + {% else %} + + {%- for scriptfile in script_files %} + + {%- endfor %} + {% endif %} {%- endmacro %} {%- macro css() %}