mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Integrated lunr.js fixes [ci skip]
This commit is contained in:
parent
cc46c9e5fb
commit
7f8d8adaea
@ -182,19 +182,19 @@
|
||||
{% set languages = lang.t("search.language").split(",") %}
|
||||
{% if languages | length and languages[0] != "" %}
|
||||
{% set path = "assets/javascripts/lunr/" %}
|
||||
<script src="{{ path ~ 'lunr.stemmer.support.js' | url }}"></script>
|
||||
<script src="{{ (path ~ 'lunr.stemmer.support.js') | url }}"></script>
|
||||
{% for language in languages | map("trim") %}
|
||||
{% if language != "en" %}
|
||||
{% if language == "jp" %}
|
||||
<script src="{{ path ~ 'tinyseg.js' | url }}"></script>
|
||||
<script src="{{ (path ~ 'tinyseg.js') | url }}"></script>
|
||||
{% endif %}
|
||||
{% if language in ("da", "de", "du", "es", "fi", "fr", "hu", "it", "jp", "no", "pt", "ro", "ru", "sv", "tr") %}
|
||||
<script src="{{ path ~ 'lunr.' ~ language ~ '.js' | url }}"></script>
|
||||
<script src="{{ (path ~ 'lunr.' ~ language ~ '.js') | url }}"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if languages | length > 1 %}
|
||||
<script src="{{ path ~ 'lunr.multi.js' | url }}"></script>
|
||||
<script src="{{ (path ~ 'lunr.multi.js') | url }}"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user