mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-18 17:12:23 -06:00
Update just-the-docs.js
This commit is contained in:
parent
1564ca4511
commit
9616dcf761
@ -53,7 +53,12 @@ function initSearch() {
|
|||||||
// Success!
|
// Success!
|
||||||
var data = JSON.parse(request.responseText);
|
var data = JSON.parse(request.responseText);
|
||||||
|
|
||||||
|
{% if site.search_tokenizer_separator != nil %}
|
||||||
lunr.tokenizer.separator = {{ site.search_tokenizer_separator }}
|
lunr.tokenizer.separator = {{ site.search_tokenizer_separator }}
|
||||||
|
{% else %}
|
||||||
|
lunr.tokenizer.separator = /[\s\-/]+/
|
||||||
|
{% end %}
|
||||||
|
|
||||||
var index = lunr(function () {
|
var index = lunr(function () {
|
||||||
this.ref('id');
|
this.ref('id');
|
||||||
this.field('title', { boost: 200 });
|
this.field('title', { boost: 200 });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user