gitbook-plugin-autocover

2.0.1 • Public • Published

Cover Generation for GitBook

Generate a cover for the book.

How to use it:

To use this plugin in your book, add it to your book.json:

{
    "plugins": ["autocover"],
    "pluginsConfig": {
        "autocover": {
            // Configuration for autocover (see below)
        }
    }
}

And run gitbook install to fetch and prepare all plugins.

Installation of canvas

This module use node-canvas. You need to install some modules on your system before being able to use it: Wiki of node-canvas.

Configuration

Here is default configuration of autocover, you can change it in your book.json:

{
    "title": "My Book",
    "author": "Author",
    "pluginsConfig": {
        "autocover": {
            "font": {
                "size": null,
                "family": "Impact",
                "color": "#FFF"
            },
            "size": {
                "w": 1800,
                "h": 2360
            },
            "background": {
                "color": "#09F"
            }
        }
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i gitbook-plugin-autocover

Weekly Downloads

2

Version

2.0.1

License

Apache-2.0

Last publish

Collaborators

  • piranna
  • samypesse
  • aarono