Skip to content

Commit da0560a

Browse files
committed
Ensure extra JS files are properly handled and referenced in the HEAD of the document, rather than below the footer.
1 parent fe3ea7a commit da0560a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
site_name: PyScript
22

3+
extra_javascript:
4+
- javascripts/mini-coi.js
5+
36
theme:
47
name: material
58

overrides/main.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{% extends "base.html" %}
22

33
{% block libs %}
4-
<script src="./javascripts/mini-coi.js"></script>
4+
{%- for script in config.extra_javascript %}
5+
{{ script | script_tag }}
6+
{%- endfor %}
57
{{ super() }}
68
{% endblock %}
9+
10+
{% block scripts %}
11+
{% endblock %}

0 commit comments

Comments
 (0)