kubernetes-handbook/node_modules/gitbook-plugin-adsense
Jimmy Song 8994b10440
update cover
2022-03-01 22:28:42 +08:00
..
book update plugin 2022-02-22 15:54:51 +08:00
.editorconfig update plugin 2022-02-22 15:54:51 +08:00
.eslintrc update plugin 2022-02-22 15:54:51 +08:00
.npmignore update plugin 2022-02-22 15:54:51 +08:00
LICENSE update plugin 2022-02-22 15:54:51 +08:00
README.md update plugin 2022-02-22 15:54:51 +08:00
index.js update plugin 2022-02-22 15:54:51 +08:00
package.json update cover 2022-03-01 22:28:42 +08:00

README.md

Google Adsense for GitBook

You can use install it via NPM:

$ npm install gitbook-plugin-adsense

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

{
  "plugins": ["adsense"]
}

You can set the Google Adsense client and slot keys using the plugins configuration in the book.json:

{
    "plugins": ["adsense"],
    "pluginsConfig": {
      "adsense": {
        "client": "ca-pub-XXXXXXXXXXXXXXXX",
        "slot": "XXXXXXXXXX",
        "format": "auto",
        "element": ".page-inner section",
        "position": "top"
      }
    }
}

Allowed positions are top and bottom (default)