mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Formatting
This commit is contained in:
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>
|
</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 %}
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user