gitbook-plugin-json-sidebar

Adds a sidebar.json file to gitbook output with the content of the navigation bar


License
Apache-2.0
Install
npm install gitbook-plugin-json-sidebar@0.1.0

Documentation

GitBook Sample Plugin

Gitbook plugin json-sidebar

This plugin creates a file sidebar.json that contains all chapters.

No configuration options.

Sample output:

  [{
    "index": 0,
    "title": "User Guide",
    "introduction": true,
    "next": {
      "path": "User Guide/Getting Started/Getting_Started.md",
      "title": "Getting Started",
      "level": "1",
      "exists": true,
      "external": false,
      "introduction": false
    },
    "level": "0",
    "path": "README.md",
    "percent": 0,
    "done": true
  }, {
    "index": 1,
    "title": "Getting Started",
    "introduction": false,
    "prev": {
      "path": "README.md",
      "title": "User Guide",
      "level": "0",
      "exists": true,
      "external": false,
      "introduction": true
    },
    "level": "1",
    "path": "User Guide/Getting Started/Getting_Started.md",
    "percent": 100,
    "done": true
  }]