1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-18 17:04:09 +01:00

Formatting

This commit is contained in:
squidfunk 2021-03-12 15:15:41 +01:00
parent fe9a86cb41
commit 393e05cc0a
4 changed files with 8 additions and 10 deletions

View File

@ -217,7 +217,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/bundle.16f9b99f.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.9b55be7b.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -161,11 +161,9 @@ export function watchTableOfContents(
}, new Map<HTMLAnchorElement[], number>()) }, new Map<HTMLAnchorElement[], number>())
}), }),
/* Sort index by vertical offset */ /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */
map(index => ( map(index => new Map([...index]
new Map<HTMLAnchorElement[], number>( .sort(([, a], [, b]) => a - b)
[...index].sort(([, offsetA], [, offsetB]) => offsetA - offsetB)
)
)), )),
/* Re-compute partition when viewport offset changes */ /* Re-compute partition when viewport offset changes */