@gitbook-ng/gitbook-plugin-sharing

Sharing buttons in GitBooks website

Usage no npm install needed!

<script type="module">
  import gitbookNgGitbookPluginSharing from 'https://cdn.skypack.dev/@gitbook-ng/gitbook-plugin-sharing';
</script>

README

plugin-sharing

NOTE: This is a fork from GitbookIO github repo and try to keep it up to date, providing bugs / vulnerabilities fixes.

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"
            ]
        }
    }
}