Skip to content
Snippets Groups Projects
Unverified Commit 9616dcf7 authored by Patrick Marsceill's avatar Patrick Marsceill Committed by GitHub
Browse files

Update just-the-docs.js

parent 1564ca45
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,13 @@ function initSearch() {
if (request.status >= 200 && request.status < 400) {
// Success!
var data = JSON.parse(request.responseText);
{% if site.search_tokenizer_separator != nil %}
lunr.tokenizer.separator = {{ site.search_tokenizer_separator }}
{% else %}
lunr.tokenizer.separator = /[\s\-/]+/
{% end %}
var index = lunr(function () {
this.ref('id');
this.field('title', { boost: 200 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment