docs: add message about search in dev mode (#2239)

pull/2241/head
Divyansh Singh 2 years ago committed by GitHub
parent 1b0a249ad6
commit 17558db76b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,10 @@
## Local Search ## Local Search
::: info
You need to build and preview/deploy your site for local search to work.
:::
VitePress supports fuzzy full-text search using a in-browser index thanks to [minisearch](https://github.com/lucaong/minisearch/). To enable this feature, simply set the `themeConfig.search.provider` option to `'local'` in your `.vitepress/config.ts` file: VitePress supports fuzzy full-text search using a in-browser index thanks to [minisearch](https://github.com/lucaong/minisearch/). To enable this feature, simply set the `themeConfig.search.provider` option to `'local'` in your `.vitepress/config.ts` file:
```ts ```ts

Loading…
Cancel
Save