gitbook-plugin-head-append
Append code to the <head>
of the page.
I started from the gitbook-plugin-canonical-link plugin and I adapted it for my own needs (adding the whole realfavicongenerator pacjkage easily).
Installation
npm install gitbook-plugin-head-append
Usage
Add to book.json
}
If you want to add a script you must replace every script
occurrence with SCRIPTTAG
, the plugin will restore it.
"head-append":
That's necessary to avoid the Uncaught SyntaxError: Invalid or unexpected token
JavaScript error.
You can see it in action in the reactjsday-2019-testing-course book.