vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

Add lunr.js as one of the available plugins for Search

Open Heus-Sueh opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

I noticed that the search bar by default is pretty bad compared to the one in mkdocs, at least for me

Describe the solution you'd like

add lunr.js which has proven to be very good in conjunction with mkdocs and you hardly need to configure it extensively to get a good result https://github.com/olivernn/lunr.js

Describe alternatives you've considered

improve default search

Additional context

Vitepress: the desired result always appears last image

MkDocs: image

Validations

Heus-Sueh avatar Jan 08 '24 23:01 Heus-Sueh

Try using https://github.com/emersonbottero/vitepress-plugin-search or https://docs.oramasearch.com/open-source/plugins/plugin-vitepress once.

brc-dd avatar Jan 09 '24 13:01 brc-dd