Generate a cover for the book.
$ npm install gitbook-plugin-autocover
This module use node-canvas. You need to install some modules on your system before being able to use it: Wiki of node-canvas.
In your book.json:
{
"plugins": ["autocover"],
"pluginsConfig": {
"autocover": {
// Configuration for autocover (see below)
}
}
}
Here is default configuration of autocover, you can change it in your book.json:
{
"title": "My Book",
"author": "Author",
"font": {
"size": null,
"family": "Impact",
"color": '#FFF'
},
"size": {
"w": 1800,
"h": 2360
},
"background": {
"color": '#09F'
}
}