sharing-plus

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": {
            "douban": false,
            "facebook": true,
            "google": false,
            "hatenaBookmark": false,
            "instapaper": false,
            "line": false,
            "linkedin": true,
            "messenger": false,
            "pocket": true,
            "qq": false,
            "qzone": false,
            "stumbleupon": false,
            "twitter": true,
            "viber": false,
            "vk": false,
            "weibo": false,
            "whatsapp": false,
            "all": [
                "facebook", "google", "twitter",
                "weibo", "instapaper", "linkedin",
                "pocket", "stumbleupon"
            ]
        }
    }
}

Configuration

Setting Description Type Allowed values
all Array
default = facebook,google,twitter,instapaper,linkedin,pocket,stumbleupon
-
douban 豆瓣 Boolean
-
facebook Facebook Boolean
default = true
-
google Google Boolean
-
hatenaBookmark Boolean
-
instapaper Boolean
-
line Boolean
-
linkedin Boolean
-
messenger Boolean
-
pocket Boolean
default = true
-
qq Boolean
-
qzone Boolean
-
stumbleupon Boolean
-
twitter Twitter Boolean
default = true
-
viber Boolean
-
vk Boolean
-
weibo Boolean
-
whatsapp Boolean
-

Plugin

Sharing buttons in GitBooks website

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


Latest: 0.0.2

0.0.1, 0.0.2,

Requirements

GitBook
0.0.2 >=2.4.0

Maintainers

Open on NPM