mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed invalid version selector URL
This commit is contained in:
parent
1aacca36a2
commit
f40112e4c5
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.4e3fea51.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.3981fc68.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 %}
|
||||||
|
@ -142,7 +142,7 @@ export function mountHeaderTitle(
|
|||||||
/* Render version selector */
|
/* Render version selector */
|
||||||
const config = configuration()
|
const config = configuration()
|
||||||
if (config.version?.provider === "mike")
|
if (config.version?.provider === "mike")
|
||||||
requestJSON<Version[]>(new URL("../versions.json", config.base))
|
requestJSON<Version[]>(new URL("versions.json", config.base))
|
||||||
.subscribe(versions => {
|
.subscribe(versions => {
|
||||||
const topic = getElementOrThrow(".md-header__topic", el)
|
const topic = getElementOrThrow(".md-header__topic", el)
|
||||||
topic.appendChild(renderVersionSelector(versions))
|
topic.appendChild(renderVersionSelector(versions))
|
||||||
|
Loading…
Reference in New Issue
Block a user