mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed version selection when using instant loading
This commit is contained in:
parent
f9cfd87708
commit
526fbed394
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.45ec54dd.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.35272152.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 %}
|
||||||
|
@ -168,6 +168,10 @@ const control$ = merge(
|
|||||||
...getComponentElements("header")
|
...getComponentElements("header")
|
||||||
.map(el => mountHeader(el, { viewport$, header$, main$ })),
|
.map(el => mountHeader(el, { viewport$, header$, main$ })),
|
||||||
|
|
||||||
|
/* Header title */
|
||||||
|
...getComponentElements("header-title")
|
||||||
|
.map(el => mountHeaderTitle(el, { viewport$, header$ })),
|
||||||
|
|
||||||
/* Search */
|
/* Search */
|
||||||
...getComponentElements("search")
|
...getComponentElements("search")
|
||||||
.map(el => mountSearch(el, { index$, keyboard$ })),
|
.map(el => mountSearch(el, { index$, keyboard$ })),
|
||||||
@ -188,10 +192,6 @@ const content$ = defer(() => merge(
|
|||||||
...getComponentElements("content")
|
...getComponentElements("content")
|
||||||
.map(el => mountContent(el, { target$, viewport$, print$ })),
|
.map(el => mountContent(el, { target$, viewport$, print$ })),
|
||||||
|
|
||||||
/* Header title */
|
|
||||||
...getComponentElements("header-title")
|
|
||||||
.map(el => mountHeaderTitle(el, { viewport$, header$ })),
|
|
||||||
|
|
||||||
/* Sidebar */
|
/* Sidebar */
|
||||||
...getComponentElements("sidebar")
|
...getComponentElements("sidebar")
|
||||||
.map(el => el.getAttribute("data-md-type") === "navigation"
|
.map(el => el.getAttribute("data-md-type") === "navigation"
|
||||||
|
Loading…
Reference in New Issue
Block a user