Skip to content

Commit

Permalink
Merge pull request #38 from pyscript/ntoll-javascripts
Browse files Browse the repository at this point in the history
Correct custom JS
  • Loading branch information
ntoll committed Oct 25, 2023
2 parents fe3ea7a + da0560a commit 18edaa1
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 18edaa1

Please sign in to comment.