Add search capability to output #2407
Replies: 11 comments 1 reply
-
I noticed Svelte has a nice search feature in their tutorial project: It uses their internal site-kit tools. We may be able to follow a similar approach: |
Beta Was this translation helpful? Give feedback.
-
We have added the ability to configure Algolia Docsearch You can add this from a custom layout |
Beta Was this translation helpful? Give feedback.
-
See: #1646 |
Beta Was this translation helpful? Give feedback.
-
Propose we keep this open for now -- algolia only works if your project is public and algolia accepts you into their docsearch program |
Beta Was this translation helpful? Give feedback.
-
Flexsearch looks interesting. A sample integration with sveltekit can be seen here |
Beta Was this translation helpful? Give feedback.
-
@andrejohansson how useful would search against just the markdown contents of your project be? Search that excludes the results of your queries is a much simpler proposition than search against the entire final results of the build that include the results of queries. |
Beta Was this translation helpful? Give feedback.
-
Very very useful. You can see it yourself since you changed your docs to evidence. You include algolia there (which I assume doesn´t traverse the data either). Our page is an internal documentation site and therefore we cannot use Algolia or similar third party providers. |
Beta Was this translation helpful? Give feedback.
-
@mcrascal how are your thoughts going regarding this? Anything I can do to help here? |
Beta Was this translation helpful? Give feedback.
-
@andrejohansson no updates - we want to add it, but haven't been able to prioritize it yet. @ItsMeBrianD is quite interested in using https://github.com/askorama/orama when we do. Certainly we'd welcome a contribution if you're interested in working on it. |
Beta Was this translation helpful? Give feedback.
-
I did think of a way that may work for this: We can likely iterate through the built pages in the evidence cli after the vite build has finished and build the search indexes based on those results |
Beta Was this translation helpful? Give feedback.
-
@ItsMeBrianD this plugin does something similar for docusaurus: |
Beta Was this translation helpful? Give feedback.
-
Feature Description
I would like to have ability to search my generated page in the same way that the following projects do it:
Please note that this may sound similar to #177 but in that ticket search was added to Evidence Documentation, not to the generated evidence page.
Goal of Feature
Generating documentation with evidence data reports is nice, but documentation quickly grows big and requires search capabilities.
Current Solution / Workarounds
No
Alternatives
If evidence can be injected into Docusaurus instead of being the main owner of the layout.
Beta Was this translation helpful? Give feedback.
All reactions