1.0.4-alpha.29 • Published 1 year ago
vitepress-plugin-search-custom v1.0.4-alpha.29
Provides local search to your documentation site
Uses flexsearch.
Installing
npm i vitepress-plugin-search flexsearch -D
Add the plugin
- Using an vite.config file
//vite.config.ts
import { SearchPlugin } from "vitepress-plugin-search";
import { defineConfig } from "vite";
//default options
var options = {
...flexSearchIndexOptions,
previewLength: 62,
buttonLabel: "Search",
placeholder: "Search docs",
allow: [],
ignore: [],
};
export default defineConfig({
plugins: [SearchPlugin(options)],
});
- Using config.js or config.ts
import { SearchPlugin } from "vitepress-plugin-search";
import { defineConfig } from "vitepress";
export default defineConfig({
vite: { plugins: [SearchPlugin(options)] }
});
Options
Accept FlexSearch Index Options
Multi language support
Provided by flexsearch
1.0.4-alpha.29
1 year ago
1.0.4-alpha.28
1 year ago
1.0.4-alpha.27
1 year ago
1.0.4-alpha.26
1 year ago
1.0.4-alpha.25
1 year ago
1.0.4-alpha.24
1 year ago
1.0.4-alpha.23
1 year ago
1.0.4-alpha.22
1 year ago
1.0.4-alpha.21
1 year ago
1.0.4-alpha.20
1 year ago