Social share buttons for GitBook
This plugin allows you to add social shared buttons to the bottom of every page in your gitbook.
Installation
Install as a global NodeJs package.
$ npm install -g gitbook-plugin-share
Use in a gitbook
To use in your book, add to plugins list in book.json
in your gitbook directory:
{
"plugins": ["share"]
}
Configuration
You can configure the plugin is book.json
:
{
"pluginsConfig": {
"share": {
"reddit": {
"newwindow": 1
}
}
}
}
- Reddit
- See Reddit Buttons
- Supported settings: All listed under the section "customizing the look of your buttons"
- Google+
- Supported settings:
url
- Supported settings:
- Twitter
- See Twitter Buttons
- Supported settings:
url
- Facebook
- See Facebook Buttons
- Supported settings:
url
- LinkedIn
- See LinkedIn Buttons
- Supported settings:
url
,lang
Licence
GPLv3
Requests
If you would like to see share buttons for different sites, or see more options supported for the sites already there, create a new issue.
Contributions welcome, of course!