Inject Google Adsense to your Gitbook.
APACHE-2.0 License
Config plugin in book.json
.
{
"plugins": ["google-adsense"]
}
Install via npm
$ npm install gitbook-plugin-google-adsense
Need to config an array of ad's properties:
Add an array of ads
with following properties:
For example,
{
"plugins": ["adsense"],
"pluginsConfig": {
"ads": [
{
"client": "ca-pub-XXXXXXXXXXXXXXXX",
"slot": "XXXXXXXXXX",
"format": "auto",
"location": ".page-inner section",
"style": "width: 100px;"
}
]
}
}