gitbook-search-plus

A powerful search plugin for GitBook.

Features

  1. * Search any character
  2. * Search across element (for search code)
  3. * Remember search url

Use this plugin

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

  1. {
  2. plugins: ["-lunr", "-search", "search-plus"]
  3. }

Note: Only gitbook >= 3.0.0 support

Examples

gitbook-search-plus - 图1 gitbook-search-plus - 图2 gitbook-search-plus - 图3

Open https://lwdgit.github.io/gitbook-plugin-search-plus/ or test it by yourself

  1. > git clone git@github.com:lwdgit/gitbook-plugin-search-plus.git -b gh-pages
  2. > cd gitbook-plugin-search-plus
  3. > npm install
  4. > npm start

And then open http://127.0.0.1:4000

Thanks To: