website-local / mdn-local

download localized mozilla developer docs to local device for offline usage
Mozilla Public License 2.0
6 stars 0 forks source link

inject: implement search-index based search #449

Open myfreeer opened 2 years ago

myfreeer commented 2 years ago

This is not really full-text search, but search over url and title in the search-index.json. The search core should use existing libraries.

See also https://github.com/website-local/mdn-local/issues/372 Link https://github.com/website-local/mdn-local/issues/179

myfreeer commented 2 years ago

Yari is using fzf. https://github.com/ajitid/fzf-for-js https://www.npmjs.com/package/fzf

myfreeer commented 1 year ago

Referring to https://github.com/website-local/mdn-local/issues/785, should make a jsonp-based fallback for file protocol

Or we can just pack the search code and data together in a js, since it should always be static once downloaded.