1.0.4-alpha.22 • Published 4 months ago

vitepress-plugin-search v1.0.4-alpha.22

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

See chinese settings for example

1.0.4-alpha.22

4 months ago

1.0.4-alpha.21

5 months ago

1.0.4-alpha.19

1 year ago

1.0.4-alpha.18

1 year ago

1.0.4-alpha.20

1 year ago

1.0.4-alpha.17

1 year ago

1.0.4-alpha.16

1 year ago

1.0.4-alpha.15

2 years ago

1.0.4-alpha.14

2 years ago

1.0.4-alpha.13

2 years ago

1.0.4-alpha.12

2 years ago

1.0.4-alpha.11

2 years ago

1.0.4-alpha.10

2 years ago

1.0.4-alpha.9

2 years ago

1.0.4-alpha.8

2 years ago

1.0.4-alpha.5

2 years ago

1.0.4-alpha.4

2 years ago

1.0.4-alpha.7

2 years ago

1.0.4-alpha.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago