tools
gitbook-cli
install
[!NOTE|label:references:]
install
verify
check packages
initial book.json
book.jsongitbook install
gitbook install in fresh environment"
alternatively
gitbook install with proxy
references:
gitbook format
hint
[!TIP] references:
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
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)
if (cb) cb.apply(this, arguments)[!NOTE|style:callout] reference:
issue
solution:
raw
polyfills.jsfix
polyfills.js
TypeError [ERR_INVALID_ARG_TYPE] in git init
TypeError [ERR_INVALID_ARG_TYPE] in git initissue
solution: downgrade the nodejs to
12.x.xre-install
node@12
unexpected token: .
unexpected token: .issue
raw code
fixed code
failed to install plugin "codegroup"
issue
solution
Error: Failed to parse json in higher version of nodejs
Error: Failed to parse json in higher version of nodejsissue
solution
[!NOTE|label:references: Node v12.22.12 (LTS)]
install node v12 ( i.e.: ubuntu 22.04 )
temporary modify global node/npm/npx to v12
install gitbook
setup gitbook environment
revert back global node/npm/npx to latest ( v21 )
Last updated
Was this helpful?