kubernetes-handbook/node_modules/gitbook-plugin-github-buttons
Jimmy Song c6db5e8fef
add node modules
2021-04-13 00:24:28 +08:00
..
_layouts/website add node modules 2021-04-13 00:24:28 +08:00
lib add node modules 2021-04-13 00:24:28 +08:00
src add node modules 2021-04-13 00:24:28 +08:00
LICENSE add node modules 2021-04-13 00:24:28 +08:00
README.md add node modules 2021-04-13 00:24:28 +08:00
index.js add node modules 2021-04-13 00:24:28 +08:00
package.json add node modules 2021-04-13 00:24:28 +08:00

README.md

gitbook-plugin-github-buttons

Gitbook plugin that provide The Unofficial GitHub Watch & Fork Buttons.

screenshot

Installation

npm install gitbook-plugin-github-buttons

Usage

Plugin Config

{
  "plugins": [
    "github-buttons"
  ],
  "pluginsConfig": {
    "github-buttons": {
      "repo": "azu/JavaScript-Plugin-Architecture",
      "types": [
        "star",
        "watch"
      ],
      "size": "large"
    }
  }
}

The default size of large is 150 x 30, and small is 100 x 20, however, you can specify the size you want by using width and height. Such as:

      "size": "small"
      "width": 90,
      "height": 21

Example

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT