mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 10:33:22 +00:00
3aea3e5d88
* Reuse old package config * Add plugin config shape * Add ButtonGroup to core components * List all sharing sites * Displaying buttons from config * First iteration of Dropdown component (need CSS) * Using Dropdown for sharing button * Create HotKeys component * Move Backdrop to its own file * Trying a cleaner API for Dropdown * Add README.md * livereload: Add missing gitbook-plugin dependency * sharing: Now use Immutable state * sharing: Adapt quickly to new Dropdown * sharing: Fix sharing from dropdown
39 lines
732 B
Markdown
39 lines
732 B
Markdown
# plugin-sharing
|
|
|
|
This plugin adds sharing buttons in the GitBook website toolbar to share book on social networks.
|
|
|
|
### Disable this plugin
|
|
|
|
This is a default plugin and it can be disabled using a `book.json` configuration:
|
|
|
|
```
|
|
{
|
|
plugins: ["-sharing"]
|
|
}
|
|
```
|
|
|
|
### Configuration
|
|
|
|
This plugin can be configured in the `book.json`:
|
|
|
|
Default configuration is:
|
|
|
|
```js
|
|
{
|
|
"pluginsConfig": {
|
|
"sharing": {
|
|
"facebook": true,
|
|
"twitter": true,
|
|
"google": false,
|
|
"weibo": false,
|
|
"instapaper": false,
|
|
"vk": false,
|
|
"all": [
|
|
"facebook", "google", "twitter",
|
|
"weibo", "instapaper"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
```
|