openstackdocstheme doesn't activate scripts
Bug #1798002 reported by
Tony Breeds
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstackdocstheme |
Fix Released
|
Undecided
|
Tony Breeds |
Bug Description
When trying to convert the election repo, which uses javascript, to openstackdocstheme we noticed that the javascript sources are added to _static but they're never referenced in a <script></script> element.
Changed in openstack-doc-tools: | |
assignee: | nobody → Tony Breeds (o-tony) |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/609567 /git.openstack. org/cgit/ openstack/ openstackdocsth eme/commit/ ?id=3c5947dd995 c66efe063fda351 b6458e07fe6653
Committed: https:/
Submitter: Zuul
Branch: master
commit 3c5947dd995c66e fe063fda351b645 8e07fe6653
Author: Tony Breeds <email address hidden>
Date: Thu Oct 11 11:34:42 2018 +1100
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 </script> element.
<script>
Closes-Bug: 1798002 /review. openstack. org/#/c/ 607538/ 1f59cd9cb5d78d6 76c04fb78e6
Needed-By: https:/
Change-Id: Ie39e138314fed9