首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Gitbook 插件安装 - 高级搜索(支持中文)

Gitbook 插件安装 - 高级搜索(支持中文)

作者头像
Devops海洋的渔夫
发布2019-06-02 13:22:34
3.9K0
发布2019-06-02 13:22:34
举报
文章被收录于专栏:Devops专栏Devops专栏

search-pro

gitbook-plugin-search-pro

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

You can search any characters(utf-8) and highlight it in your GitBook, not only english(exp:Chinese).

Note: Only gitbook >= 3.0.0 support

Demo preview

ONLINE DEMO:

http://gitbook-plugins.github.io/gitbook-plugin-search-pro/book/

GIFs





Usage

Before use this plugin, you should disable the default search plugin first, Here is a book.js configuration example:

{
    "plugins": [
      "-lunr", "-search", "search-pro"
    ]
}

Example

After installed gitbook.

    > git clone git@github.com:gitbook-plugins/gitbook-plugin-search-pro.git -b gh-pages
    > cd ./gitbook-plugin-search-pro
    > npm install
    > gitbook serve ./

And then open http://127.0.0.1:4000

安装插件

{
    "plugins": [
        "-lunr", "-search", "search-pro"
    ]
}

启动GitBook预览效果

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.04.25 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • search-pro
    • gitbook-plugin-search-pro
      • Demo preview
      • GIFs
      • Usage
      • Example
    • 安装插件
      • 启动GitBook预览效果
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档