mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:53:03 -04:00
Refactored JavaScript architecture
This commit is contained in:
@@ -79,11 +79,13 @@
|
||||
<body>
|
||||
|
||||
<!-- State toggles -->
|
||||
<input class="md-toggle md-toggle--drawer" type="checkbox" id="drawer" />
|
||||
<input class="md-toggle md-toggle--search" type="checkbox" id="search" />
|
||||
<input class="md-toggle" data-md-toggle="drawer"
|
||||
type="checkbox" id="drawer" />
|
||||
<input class="md-toggle" data-md-toggle="search"
|
||||
type="checkbox" id="search" />
|
||||
|
||||
<!-- Overlay for expanded drawer -->
|
||||
<label class="md-overlay" for="drawer"></label>
|
||||
<label class="md-overlay" data-md-overlay for="drawer"></label>
|
||||
|
||||
<!-- Application header -->
|
||||
{% include "partials/header.html" %}
|
||||
@@ -170,7 +172,17 @@
|
||||
{% include "partials/footer.html" %}
|
||||
</div>
|
||||
|
||||
<!-- Theme-related and custom javascripts -->
|
||||
<!-- Extension-related JavaScript -->
|
||||
{% for extension in config.markdown_extensions %}
|
||||
|
||||
<!-- MathJax integration -->
|
||||
{% if extension == "pymdownx.arithmatex" %}
|
||||
{% set path = "mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML" %}
|
||||
<script src="https://cdn.mathjax.org/{{ path }}"></script>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<!-- Theme-related and custom JavaScript -->
|
||||
<script src="{{ base_url }}/assets/javascripts/application.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user