tools

reference:

useful plugins

  • alert:

    • gitbook-plugin-alerts

    • gitbook-plugin-flexible-alerts

  • Anchors:

    • gitbook-plugin-anchors

    • gitbook-plugin-anchor-navigation-ex

    • gitbook-plugin-back-to-top-button

  • toggle-chapters:

    • gitbook-plugin-chapter-fold

    • gitbook-plugin-expandable-chapters

  • code:

    • gitbook-plugin-code

    • gitbook-plugin-copy-code-button

  • fold

    • gitbook-plugin-expandable-chapters-small

  • favicon

    • gitbook-plugin-favicon

  • github:

    • gitbook-plugin-github

    • gitbook-plugin-github-buttons

  • Tbfed-pagefooter:

    • gitbook-plugin-tbfed-pagefooter

  • Prism:

    • gitbook-plugin-prism

  • search:

    • gitbook-plugin-search-plus

    • gitbook-plugin-search-pro

  • Sectionx:

    • gitbook-plugin-sectionx

  • sharing:

    • gitbook-plugin-sharing-plus

  • Splitter:

    • gitbook-plugin-splitter

  • toc :

    • gitbook-plugin-atoc

    • gitbook-plugin-simple-page-toc

  • versions-select:

    • gitbook-plugin-versions-select

resources:

gitbook-cli

install

[!NOTE|label:references:]

  • install

  • verify

  • check packages

initial book.json

  • gitbook install

    • gitbook install in fresh environment"

    • alternatively

gitbook install with proxy

references:

Gitbook uses npmi, which requires npm-global, and npm-global further requires the currently installed npm on your machine.

gitbook format

hint

[!TIP] references:

STYLES
CODE
GITBOOK-PLUGIN-FLEXIBLE-ALERTS

info

{% hint style='info' %} {% endhint %}

> [!NOTE]

tip

{% hint style='tip' %} {% endhint %}

> [!TIP]

danger

{% hint style='danger' %} {% endhint %}

-

warning

{% hint style='warning' %} {% endhint %}

> [!WARNING]

success

{% hint style='success' %} {% endhint %}

-

attention

-

> [!DANGER]

|

success

  • or via [!NOTE]

    [!NOTE]

tip

  • or via [!TIP]

    [!TIP]

danger

  • or [!ATTENTION]

    [!ATTENTION]

warning

  • or [!WARNING]

    [!WARNING]

quote

Important info: this note needs to be highlighted

  • or [!COMMENT]

    [!COMMENT]

tab

[!TIP|style:flat|icon:fa fa-bullhorn] this function only for native gitbook.io example:

reference: -[Templating](https://gitbookio.gitbooks.io/documentation/content/format/templating.html)

code

emoji

reference:

emoji

code

😂

:joy:

🈲

:u7981:

🈚

:u7121:

:white_check_mark:

🍀

:four_leaf_clover:

plugins

Flexible Alerts

[!TIP|label:references:]

setup

[!NOTE|style:callout|label:book.json|icon:fa fa-bullhorn]

  • book.json:

  • And then installed via

usage

Q&A

if (cb) cb.apply(this, arguments)

[!NOTE|style:callout] reference:

  • issue

  • solution:

    • raw polyfills.js

    • fix polyfills.js

TypeError [ERR_INVALID_ARG_TYPE] in git init

  • issue

  • solution: downgrade the nodejs to 12.x.x

unexpected token: .

failed to install plugin "codegroup"

  • issue

  • solution

Error: Failed to parse json in higher version of nodejs

  • issue

  • solution

    [!NOTE|label:references: Node v12.22.12 (LTS)]

    1. install node v12 ( i.e.: ubuntu 22.04 )

    1. temporary modify global node/npm/npx to v12

    1. install gitbook

    1. setup gitbook environment

    1. revert back global node/npm/npx to latest ( v21 )

Last updated

Was this helpful?