Refactor search plugin (#1418)

* Use a web worker in the browser with a fallback (fixes #859 & closes #1396).
* Optionally pre-build search index (fixes #859 & closes #1061).
* Upgrade to lunr.js 2.x (fixes #1319).
* Support search in languages other than English (fixes #826).
* Allow the user to define the word separators (fixes #867).
* Only run searches for queries of length > 2 (fixes #1127).
* Remove dependency on require.js, mustache, etc. (fixes #1218).
* Compress the search index (fixes #1128).
This commit is contained in:
Waylan Limberg
2018-03-05 19:42:20 -05:00
committed by GitHub
parent 0dce2b2b9e
commit dd7e2d910b
37 changed files with 11695 additions and 630 deletions

View File

@@ -2,6 +2,5 @@ mkdocs/themes/**/js/highlight.pack.js
mkdocs/themes/**/js/jquery-**.min.js
mkdocs/themes/**/js/bootstrap-**.min.js
mkdocs/themes/**/js/modernizr-**.min.js
mkdocs/contrib/legacy_search/templates/search/require.js
mkdocs/contrib/legacy_search/templates/search/mustache.min.js
mkdocs/contrib/legacy_search/templates/search/lunr.min.js
mkdocs/contrib/search/templates/search/lunr.js
mkdocs/contrib/search/lunr-language/lunr.**.js