From 3c5947dd995c66efe063fda351b6458e07fe6653 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Thu, 11 Oct 2018 11:34:42 +1100 Subject: [PATCH] Add scripts to the head section For consumers that also call the add_javascript() function scripts are added to the _static folder but not loaded in the HTML resulting in them not working. This change iterates over the script_files lists and adds the needed element. Closes-Bug: 1798002 Needed-By: https://review.openstack.org/#/c/607538/ Change-Id: Ie39e138314fed91f59cd9cb5d78d676c04fb78e6 --- openstackdocstheme/theme/openstackdocs/layout.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openstackdocstheme/theme/openstackdocs/layout.html b/openstackdocstheme/theme/openstackdocs/layout.html index 70d7fee..1abf1c7 100644 --- a/openstackdocstheme/theme/openstackdocs/layout.html +++ b/openstackdocstheme/theme/openstackdocs/layout.html @@ -11,6 +11,9 @@ {% include 'css.html' %} {%- for cssfile in css_files %} +{%- endfor %} +{%- for js in script_files %} + {%- endfor %} {# FAVICON #} {% if favicon %}