open-index/open-npm huggingface dataset:
npm package: @gitbook-ng/gitbook-plugin-sharing
Description: Sharing buttons in GitBooks website
Latest version: 1.0.3

# 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:

```js
{
    "pluginsConfig": {
        "sharing": {
            "facebook": true,
            "twitter": true,
            "google": false,
            "weibo": false,
            "instapaper": false,
            "vk": false,
            "all": [
                "facebook", "google", "twitter",
                "weibo", "instapaper"
            ]
        }
    }
}
```
npm package: @gitbook-ng/gitbook-plugin-sitemap
Description: Generate a sitemap for a GitBook
Latest version: 1.3.2

# Sitemap for @gitbook-ng/gitbook

A sitemap plugin for [@gitbook-ng/gitbook](https://www.npmjs.com/package/@gitbook-ng/gitbook).

Generate a sitemap for the gitbook website. The output sitemap file is `sitemap.xml`.

Add it to your `book.json` with a basic configuration:

```js
{
    "plugins": ["sitemap"],
    "pluginsConfig": {
        "sitemap": {
            "hostname": "https://example.com",
            "pathPrefix": "/mybook/"
        }
    }
}
```

## Install

It is part of [**@gitbook-ng/gitbook**](https://github.com/gitbook-ng/gitbook),
you donot need install it separately.

## Config

### hostname

Root domain of URL, must not include URL path.

e.g. `https://example.com`

### pathPrefix

Path prefix for sitemap link.
If you do not want to host your book on the root (/) of your site,
for example, you want to host your book on `https://example.com/books/book1/`,
you can use following config:

```js
{
    "plugins": ["sitemap"],
    "pluginsConfig": {
        "sitemap": {
            "hostname": "https://example.com",
            "pathPrefix": "/books/book1/"
        }
    }
}
```