mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed version selection
This commit is contained in:
parent
9de14b4ade
commit
a4ccbbb1b2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -223,7 +223,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.a0ca7753.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.febc23d1.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -51,7 +51,7 @@ function renderVersion(version: Version): HTMLElement {
|
||||
const config = configuration()
|
||||
|
||||
/* Ensure trailing slash, see https://bit.ly/3rL5u3f */
|
||||
const url = new URL(`${version.version}/`, config.base)
|
||||
const url = new URL(`../${version.version}/`, config.base)
|
||||
return (
|
||||
<li class="md-version__item">
|
||||
<a href={url.toString()} class="md-version__link">
|
||||
|
Loading…
Reference in New Issue
Block a user