sharing

README

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:

{
    "pluginsConfig": {
        "sharing": {
            "facebook": true,
            "twitter": true,
            "google": false,
            "weibo": false,
            "instapaper": false,
            "vk": false,
            "all": [
                "facebook", "google", "twitter",
                "weibo", "instapaper"
            ]
        }
    }
}

Configuration

Setting Description Type Allowed values
all Array
default = facebook,google,twitter,weibo,instapaper
-
facebook Facebook Boolean
default = true
-
google Google Boolean
-
instapaper Boolean
-
twitter Twitter Boolean
default = true
-
vk Boolean
-
weibo Boolean
-

Plugin

Sharing buttons in GitBooks website

https://github.com/GitbookIO/plugin-sharing


Latest: 1.0.2

1.0.0, 1.0.1, 1.0.2, 4.0.0-alpha.1, 4.0.0-alpha.2, 4.0.0-alpha.3, 4.0.0-alpha.4, 4.0.0-alpha.5, 4.0.0-alpha.6,

Requirements

GitBook
1.0.2 >=2.4.0
4.0.0-alpha.6 >=3.0.0

Maintainers

Open on NPM