vuepress-plugin-full-text-search2
v0.5.1
Published
VuePress v2 plugin that adds full-text search box.
Downloads
1,662
Maintainers
Readme
vuepress-plugin-full-text-search2
VuePress v2 plugin that adds full-text search box.
:warning: WARNING: this project is considered to be in BETA until VuePress v2 is available for general use and the API is stable!
Usage
npm i -D vuepress-plugin-full-text-search2
e.g. .vuepress/config.js
import fullTextSearchPlugin from "vuepress-plugin-full-text-search2";
module.exports = {
plugins: [fullTextSearchPlugin],
};
Options
locales
Type:
Record<string, { placeholder: string }>
Details:
The text of the search box in different locales.
If this option is not specified, it will fallback to default text.
Example:
import fullTextSearchPlugin from "vuepress-plugin-full-text-search2";
export default {
plugins: [
fullTextSearchPlugin({
locales: {
'/': {
placeholder: 'Search',
},
'/zh/': {
placeholder: '搜索',
},
},
}),
],
}
- Also see: