Integrate search plugin
Eomm opened this issue Β· comments
We need the search button integrated into the website
π As an exploration, we could try Lyra first: https://github.com/LyraSearch/plugin-docusaurus
It is a local and in-memory search, so it does not require any additional step or external system π
If blocking issues are found on the first step, the current online website has the algolia plugin to enable the "search" button.
This plugin is already integrated into docusaurus. It requires some config only and keys (need to generate a key pair cc @lmammino ).
Can I take a look at this?
No, sorry, I forget to update this issue.
I already started to test it, but I found some bugs/required features:
- https://github.com/LyraSearch/plugin-docusaurus/issues/77
- https://github.com/LyraSearch/plugin-match-highlight/pull/6
Here is the branch that I'm working on: https://github.com/fastify/website-next/tree/lyra
After the POC #63 I think the lyra plugin is not yet ready to be integrated - the first release will use algolia
@mcollina this is the last issue before considering the migration complete.
I think we could setup the fastify.dev to point to https://fastify.github.io/website-next/
I'm not into the fastify team in algolia, could you invite me or provide the keys?
I would really prefer to use Orama / avoid any external service for this. The configuration of Algolia is so painful that anything local would be better long term.
@Eomm I've invited you to algolia
I did the check, and the plugin is not mature enough at this time #28 (comment)
For sure we will switch to it
Meilisearch could be an alternative too. It is open source and as far as I have tested it works like a charm. Would have to dig into the integration with Docusaurus though..
@ShogunPanda Any news on this topic?
@Eomm I'm pretty packed these days. I plan to do that within Friday. Probably Thursday or Friday itself.
As soon askorama/orama#404 lands I should be able to provide you a PR on this.
Note that I focused on basic styling functionality so I leave personalization to you.
Note that I focused on basic styling functionality so I leave personalization to you.
This scares me a lot π€£
Note that I focused on basic styling functionality so I leave personalization to you.
This scares me a lot π€£
That's exactly my purpose. Lol.