From 62b6262a8c7a425269d93de77a0e366fd9751316 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 23 Oct 2018 13:08:59 -0400 Subject: fix offline search --- sphinx_rtd_theme/layout.html | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 52ca7500..fe669206 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -164,7 +164,7 @@ {% if not embedded %} - + {%- for scriptfile in script_files %} + {{ js_tag(scriptfile) }} + {%- endfor %} + {% else %} + + {%- for scriptfile in script_files %} + + {%- endfor %} + {% endif %} + {% endif %} -- cgit v1.3.1