Deployed 2e90480 with MkDocs version: 1.1.1

This commit is contained in:
2020-05-13 02:09:10 +00:00
parent 7e20967d83
commit 1a19651a06
14 changed files with 31 additions and 21 deletions

View File

@ -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});
}