Deployed 2e90480
with MkDocs version: 1.1.1
This commit is contained in:
@ -58,6 +58,7 @@ function onScriptsLoaded () {
|
||||
if (data.config && data.config.separator && data.config.separator.length) {
|
||||
lunr.tokenizer.separator = new RegExp(data.config.separator);
|
||||
}
|
||||
|
||||
if (data.index) {
|
||||
index = lunr.Index.load(data.index);
|
||||
data.docs.forEach(function (doc) {
|
||||
@ -84,6 +85,7 @@ function onScriptsLoaded () {
|
||||
console.log('Lunr index built, search ready');
|
||||
}
|
||||
allowSearch = true;
|
||||
postMessage({config: data.config});
|
||||
postMessage({allowSearch: allowSearch});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user