Skip to content

Commit

Permalink
Ensure extra JS files are properly handled and referenced in the HEAD…
Browse files Browse the repository at this point in the history
… of the document, rather than below the footer.
  • Loading branch information
ntoll committed Oct 25, 2023
1 parent fe3ea7a commit da0560a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
site_name: PyScript

extra_javascript:
- javascripts/mini-coi.js

theme:
name: material

Expand Down
7 changes: 6 additions & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% extends "base.html" %}

{% block libs %}
<script src="./javascripts/mini-coi.js"></script>
{%- for script in config.extra_javascript %}
{{ script | script_tag }}
{%- endfor %}
{{ super() }}
{% endblock %}

{% block scripts %}
{% endblock %}

0 comments on commit da0560a

Please sign in to comment.