ThePacielloGroup / cupper

An inclusive pattern library builder.
MIT License
348 stars 358 forks source link

Add search feature via Lunr (see Hugo Learn Theme for reference) #23

Open aral opened 6 years ago

aral commented 6 years ago

The Hugo Learn Theme has Lunr-based search by default. This would be a valuable addition to Cupper and should be relatively easy to port from that theme.

Reference: https://learn.netlify.com/en/ Source: https://github.com/matcornic/hugo-theme-learn

aral commented 6 years ago

Just a quick update, I have a very basic integration of the Learn theme’s search functionality into Cupper. Doesn’t look good, haven’t had a chance to look into how accessible it is, but it’s there if you want to take a look:

https://github.com/aral/cupper-hugo-theme

I don’t know if I can keep hacking on this but hope this helps.