diff --git a/_includes/head_custom.html b/_includes/head_custom.html index 3765604..030e2b5 100644 --- a/_includes/head_custom.html +++ b/_includes/head_custom.html @@ -2,6 +2,7 @@ {% if site.search_enabled != false %} + diff --git a/assets/js/vendor/lunr.multi.min.js b/assets/js/vendor/lunr.multi.min.js new file mode 100644 index 0000000..7debad0 --- /dev/null +++ b/assets/js/vendor/lunr.multi.min.js @@ -0,0 +1 @@ +!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():t()(e.lunr)}(this,function(){return function(e){e.multiLanguage=function(){for(var t=Array.prototype.slice.call(arguments),i=t.join("-"),r="",n=[],s=[],p=0;p - - - -{% endif %} -``` +`_includes/head_custom.html` に以下を記述する。 ``` {% raw %}{% if site.search_enabled != false %} + {% endif %}{% endraw %} ``` ## Step 3. -`assets/js/just-the-docs.js` にある `var index = lunr(function(){` とある行のすぐ下に次のスクリプトを記述する。 +`assets/js/just-the-docs.js` にある `var index = lunr(function(){` のすぐ下の行に次のスクリプトを追記する。 ``` this.use(lunr.ja) ```