Hacker News new | past | comments | ask | show | jobs | submit login

Thank you for your post, I like the theme and the idea of static generator creating the documentation.

How could anyone include search in these static sites? Is there any theme that could provide such functionality?




Fuse.js works great and is client-side. Hugo can generate the necessary JSON outputs and there is documentation on how to set it up on their website. Please let me know if you come across anything better.


Nice! I hadn't seen Fuse but it looks like a great option. I've used lunr.js on other projects and liked it but always open to explore new things.


I plan to offer several options for search (as covered in the blog post). Some existing themes provide search. YMMV.


it's usually done through algolia, but that is a proprietary service, and adds loads of js.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: