/gitbook-plugin-search-pro

Gitbook search engine pro. (支持中文搜索)

Primary LanguageJavaScript

gitbook-plugin-search-pro

Gitbook search engine pro. (支持中文搜索)

Demo preview

Usage

Put this in your book.json:

{
    "plugins": [
      "-search",
      "search-pro"
    ],
    "pluginsConfig": {
      "search-pro": {
        "cutWordLib": "nodejieba",
        "defineWord" : ["小需求","基础建设"]
      }
    }
}

And

gitbook install
gitbook build/serve

Thanks: nodejieba(中文分词功能)