gitbook-plugin-hints

Defines four types of styled hint blocks: info, danger, tip, working.

Apache 2.0 10 个版本
安装
npm install gitbook-plugin-hints
yarn add gitbook-plugin-hints
pnpm add gitbook-plugin-hints
bun add gitbook-plugin-hints
README

Styled hint blocks in your docs

This plugins requires gitbook >=2.0.0.

Install

Add the below to your book.json file, then run gitbook install :

{
    "plugins": ["hints"]
}

Usage

You can now provide hints in various ways using the hint tag.

{% hint style='info' %}
Important info: this note needs to be highlighted
{% endhint %}

The above example will produce a div with the appropriate style:

<div class="alert alert-info">
Important info: this note needs to be highlighted
</div>

Available styles are:

  • info (default)
  • tip
  • danger
  • working
版本列表
4.0.0-alpha.6 2017-03-16
4.0.0-alpha.5 2017-03-09
4.0.0-alpha.4 2017-01-27
4.0.0-alpha.3 2017-01-13
4.0.0-alpha.2 2017-01-13
4.0.0-alpha.1 2017-01-13
1.0.2 2017-02-03
1.0.1 2016-03-15
1.0.0 2016-03-14
0.0.1 2016-03-14