Gitbook plugin provide GitHub Button.
npm install gitbook-plugin-github-buttonsGitbook plugin that provide The Unofficial GitHub Watch & Fork Buttons.
npm install gitbook-plugin-github-buttons
Plugin Config
``json`
{
"plugins": [
"github-buttons"
],
"pluginsConfig": {
"github-buttons": {
"buttons": [{
"user": "azu",
"repo": "JavaScript-Plugin-Architecture",
"type": "star",
"size": "large"
}, {
"user": "azu",
"type": "follow",
"width": "230",
"count": false
}]
}
}
}
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" || "large"
- "width": numbernumber
- "height":
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT