vuepress2-plugin-full-text-search
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

⚠This package will be DEPRECATED⚠

⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠

vuepress2-plugin-full-text-search has been renamed to vuepress-plugin-full-text-search2.
vuepress2-plugin-full-text-search is an alias for vuepress-plugin-full-text-search2.
We recommend using vuepress-plugin-full-text-search2 directly.

⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠

vuepress2-plugin-full-text-search

VuePress v2 plugin that adds full-text search box.

screenshot

⚠️ 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 vuepress2-plugin-full-text-search

e.g. .vuepress/config.js

import fullTextSearchPlugin from "vuepress2-plugin-full-text-search";
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 "vuepress2-plugin-full-text-search";
export default {
  plugins: [
    fullTextSearchPlugin({
      locales: {
        '/': {
          placeholder: 'Search',
        },
        '/zh/': {
          placeholder: '搜索',
        },
      },
    }),
  ],
}

Package Sidebar

Install

npm i vuepress2-plugin-full-text-search

Weekly Downloads

4

Version

0.5.1

License

MIT

Unpacked Size

4.23 kB

Total Files

5

Last publish

Collaborators

  • ota-meshi