美文网首页linux&github
Gitbook 插件安装 - 高级搜索(支持中文)

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

作者: Devops海洋的渔夫 | 来源:发表于2019-04-25 00:03 被阅读47次

    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预览效果

    相关文章

      网友评论

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

        本文链接:https://www.haomeiwen.com/subject/kmtygqtx.html