Repository navigation
docusaurus-theme-hayfork: hosted search with no index to build or upload #13016
wwcor
started this conversation in
Plugins, Themes, Presets and Libs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
docusaurus-theme-hayfork adds a search box to the navbar, where Docusaurus normally puts search. Hayfork crawls your deployed site, so there's no index to build in CI or upload. That makes it an option for sites that aren't eligible for DocSearch.
/, and you can move through results with the arrow keys and EnterSetup
The key is a search-only website key that works only from the sites you list. If you already use
@docusaurus/theme-search-algoliaor another search theme, remove it first, because only one theme can provide the search bar.Tested on Docusaurus 3.10.
Disclosure: I'm the author. Hayfork is a commercial service with a free plan that doesn't ask for a card.
Questions and bug reports are welcome in this thread.
All reactions