hooks.guide
hooks.guide copied to clipboard
Search?
It would be nice to use this centralised place to be able to search across all docs of the hooks.
We can add DocSearch (like on the react docs) on this page. What do you think?
That would be lovely to have. I just applied for it. Thank you for suggesting it 👍 💯
@Raathigesh Have you started working on this?
I applied through https://community.algolia.com/docsearch/. Apparently, there will be details sent to my mail when they review the request. I'll update here when I hear back from them :)
Yes, a colleague of mine will get back to you in a few hours. You can create a React DocSearch component like this one:
https://github.com/facebook/immutable-js/blob/master/pages/src/docs/src/DocSearch.js
or this one:
https://github.com/reactjs/reactjs.org/blob/master/src/components/LayoutHeader/DocSearch.js
👋 @Raathigesh @vivek12345
Such a great news. I am working on DocSearch.
In order to extract the right information of your pages, could you use static classes or regular <hX/> tags for your titles? We need to define some selectors to find the proper hierarchy of your text.
Feel free to have a look to some recommendations we do.
Once this is ready, ping me, I will provide you the snippet to integrate
Thanks for reaching out @s-pace. I will start reading on the selector format that you mentioned and will accordingly make the changes. 👍
Hey @s-pace,
Sorry about the delay. I have added classes prefixed with "doc-" to the navigation items as well as the content items. Please let me know if that helps or anything else we need to do.