Socket
Socket
Sign inDemoInstall

@gitbook-ng/gitbook-plugin-sitemap

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @gitbook-ng/gitbook-plugin-sitemap

Generate a sitemap for a GitBook


Version published
Weekly downloads
18
decreased by-18.18%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Sitemap for @gitbook-ng/gitbook

A sitemap plugin for @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:

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

Install

It is part of @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:

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

Keywords

FAQs

Last updated on 10 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc