Fixed invalid version selector URL

This commit is contained in:
squidfunk 2021-02-25 16:28:53 +01:00
parent 1aacca36a2
commit f40112e4c5
4 changed files with 2 additions and 41 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 %}

View File

@ -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))