ota-meshi / vuepress-plugin-full-text-search2

VuePress v2 plugin that adds full-text search box.
MIT License
34 stars 4 forks source link

vuepress-plugin-full-text-search2

VuePress v2 plugin that adds full-text search box.

screenshot

: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

import fullTextSearchPlugin from "vuepress-plugin-full-text-search2";
export default {
  plugins: [
    fullTextSearchPlugin({
      locales: {
        '/': {
          placeholder: 'Search',
        },
        '/zh/': {
          placeholder: '搜索',
        },
      },
    }),
  ],
}