-
Notifications
You must be signed in to change notification settings - Fork 163
[Integrations] Internal Search #682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://github.com/cmfcmf/docusaurus-search-local Here is a Docusaurus equivalent of a local search we might draw inspiration from |
Indeed, as easy start we can have an endpoint that leverage both navigation + parsing all documents from it to get the titles. Then we could also pre-render the endpoint and have a command palette to easily navigate in it (ex: https://github.com/xiaoluoboding/vue-command-palette) |
I suggest moving this issue to Elements, as these components could be used in any theme. |
WDYT @atinux |
I think we can first bootstrap in Docus before moving the search endpoint into Nuxt Content. I believe this should be part of Nuxt Content, not elements in long term. Elements are made for components in Markdown. |
This is something I've been interested in myself for my own blog. FuseJS seems to be the more popular one at the moment for local searches
I think what you'd need is a seperate nuxt module
For the search control, something similar to this but for use by fusejs but with a bit of theming for docus I suspect the only part that would be docus specific would be a themed control, with the rest of it being a nuxt module for use with the content module. |
Just to add for static sites (SSG)
The parsedoc-plugin might allow it to be used just by scanning the markdown |
i've spent a lot of time comparing quite a few here, though it's skewed towards searching huge lists of phrases/terms/names rather than full document content (with stemming, stop words, word frequency, etc) like FlexSearch, Lyra, or Algolia. https://github.com/leeoniya/uFuzzy#a-biased-appraisal-of-similar-work |
I'm offering a bounty of |
We will add native search in Content very soon. |
Hey :) another bump there as we discussed this feature again recently; As a reference, VitePress recently implemented local search using I'm sure we could work on something that does the same for Docus, then maybe backport it as an extension for all themes/Nuxt Content projects! |
Linked to nuxt-themes/elements#158 |
From @otabekoff in #771 :
|
From @marvin-j97 in #771 :
|
I've been trying to write my own implementation using orama so far I've managed to generate a database for it using the nuxt content query API What I'm aiming for ideally is something that looks like what you get with mkdocs material, where it lists the header then the content underneath |
Hello @atinux, have you an idea when this will landed? I've deep dive into the VitePress implementation and using a server route and the cache storage, we could build the index used by MiniSearch. |
It's coming very soon via #930 , see a demo on: https://unstorage-q6va4ddjb-nuxt-js.vercel.app/ (see pr |
that's niiiice |
I think it would be a cool feature to support an internal search in Docus.
One that didn't rely on Algolia.
Does Docus support module development?
I'm imagining being able to set
search: true
in the App Config for Docus and that would automatically throw a search box at the top of the site. Some process would be needed to index all the docs under/content
and make it keyword searchable though.The text was updated successfully, but these errors were encountered: