1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Fixed support for Japanese search

This commit is contained in:
jumpei-miyata 2017-06-07 19:29:34 +09:00 committed by Martin Donath
parent eed002861e
commit 876b71466f
2 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,9 @@
<script src="{{ path }}/lunr.stemmer.support.js"></script> <script src="{{ path }}/lunr.stemmer.support.js"></script>
{% for language in languages | map("trim") %} {% for language in languages | map("trim") %}
{% if language != "en" %} {% if language != "en" %}
{% if language == "jp" %}
<script src="{{ path }}/tinyseg.js"></script>
{% endif %}
<script src="{{ path }}/lunr.{{ language }}.js"></script> <script src="{{ path }}/lunr.{{ language }}.js"></script>
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View File

@ -284,6 +284,9 @@
<script src="{{ path }}/lunr.stemmer.support.js"></script> <script src="{{ path }}/lunr.stemmer.support.js"></script>
{% for language in languages | map("trim") %} {% for language in languages | map("trim") %}
{% if language != "en" %} {% if language != "en" %}
{% if language == "jp" %}
<script src="{{ path }}/tinyseg.js"></script>
{% endif %}
<script src="{{ path }}/lunr.{{ language }}.js"></script> <script src="{{ path }}/lunr.{{ language }}.js"></script>
{% endif %} {% endif %}
{% endfor %} {% endfor %}