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
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:
|
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:
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.js
fix
polyfills.js
TypeError [ERR_INVALID_ARG_TYPE]
in git init
TypeError [ERR_INVALID_ARG_TYPE]
in git init
issue
solution: downgrade the nodejs to
12.x.x
re-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