mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Formatting
This commit is contained in:
parent
fe9a86cb41
commit
393e05cc0a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -217,7 +217,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% 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"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -161,11 +161,9 @@ export function watchTableOfContents(
|
||||
}, new Map<HTMLAnchorElement[], number>())
|
||||
}),
|
||||
|
||||
/* Sort index by vertical offset */
|
||||
map(index => (
|
||||
new Map<HTMLAnchorElement[], number>(
|
||||
[...index].sort(([, offsetA], [, offsetB]) => offsetA - offsetB)
|
||||
)
|
||||
/* Sort index by vertical offset (see https://bit.ly/30z6QSO) */
|
||||
map(index => new Map([...index]
|
||||
.sort(([, a], [, b]) => a - b)
|
||||
)),
|
||||
|
||||
/* Re-compute partition when viewport offset changes */
|
||||
|
Loading…
Reference in New Issue
Block a user