nuxt-themes / docus

Write beautiful documentations with Nuxt and Markdown.
https://docus.dev
MIT License
1.53k stars 155 forks source link

What about implementing a default offline search input? #771

Closed otabekoff closed 1 year ago

otabekoff commented 1 year ago

Does an offline search input feature exist? Or should it be implemented? I've seen that many of SSGs or Static documentation generators have this function. One example is Vuepress. Let's say I'm making an app that works offline using PWA or real app with Docus. What the user does to search? Uses page by page manual checking? In my opinion it is the most hardest way to do it.

You can look up the Vuepress repo for the logic. Both Docus and Vuepress uses Vue(or Nuxt).

EDIT: What about using DocSearch? I already know I can use Algolia. But it needs internet.

marvin-j97 commented 1 year ago

I'm guessing this is a duplicate of https://github.com/nuxt-themes/docus/issues/682?

Nextra uses Flexsearch.

For Docusaurus, there are some plugins that use Lunr.

Edit: Vitepress now supports Offline Search using minisearch

Tahul commented 1 year ago

This is related to #682

I will report both comments there on that issue, and close this one!

Feel free to continue the discussion there.