nuejs / nue

A web framework for UX developers
https://nuejs.org
MIT License
6.04k stars 181 forks source link

`search` for documentation area #323

Open nobkd opened 3 weeks ago

nobkd commented 3 weeks ago

Add a feature to search through the pages of the created website. Maybe even just for Nue's documentation area (for now).

tipiirai commented 3 weeks ago

This is on the back of my mind. Similar to RSS feed. We should generate a search-index.json with h1, h1 + p, h2, h3, h4 information on it everytime the size is pushed to production. The search widget would use this data to find what user is looking for.

nobkd commented 3 weeks ago

I've seen somewhere where Minisearch was used: https://lucaong.github.io/minisearch/ Not sure if we would use it, but maybe it inspires. Would have to check it out myself, just remembered it, (probably also) because it is pretty small and has no dependencies.