# gitbook-plugin-gensum

> Gitbook plugin to auto-generate SUMMARY.md

Latest version **0.3.25** (published 2018-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gitbook-plugin-gensum
pnpm add gitbook-plugin-gensum
yarn add gitbook-plugin-gensum
bun add gitbook-plugin-gensum
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.25 |
| Published | 2018-01-27 |
| First published | 2018-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 56 |
| Author | Julian Xhokaxhiu |
| Maintainers | wileychoi |
| Keywords | gitbook, gitbook-plugin, gitbook-summary |

## Links

- npm: https://www.npmjs.com/package/gitbook-plugin-gensum
- Repository: https://github.com/julianxhokaxhiu/gitbook-plugin-summary
- Homepage: https://github.com/julianxhokaxhiu/gitbook-plugin-summary#readme
- Issues: https://github.com/julianxhokaxhiu/gitbook-plugin-summary/issues
- npm.io page: https://npm.io/package/gitbook-plugin-gensum

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [markdown-parser](https://npm.io/package/markdown-parser.md) 0.0.8

## Recent versions

- 0.3.25 (latest) — 2018-01-27
- 0.3.24 — 2018-01-27
- 0.3.23 — 2018-01-27
- 0.3.22 — 2018-01-27
- 0.3.21 — 2018-01-27
- 0.3.20 — 2018-01-27
- 0.3.19 — 2018-01-27
- 0.3.18 — 2018-01-27
- 0.3.17 — 2018-01-27
- 0.3.16 — 2018-01-27
- 0.3.15 — 2018-01-27
- 0.3.14 — 2018-01-27
- 0.3.13 — 2018-01-27
- 0.3.12 — 2018-01-27
- 0.3.11 — 2018-01-27
- … 11 more at https://npm.io/package/gitbook-plugin-gensum/versions

## README

# gitbook-plugin-summary
Gitbook plugin to auto-generate SUMMARY.md

## Introduction

This plugin was created out of the frustration of not having a way to auto-generate a SUMMARY.md file, out of a basic tree structure. The outcome is that you install this plugin and it just works, on top of your current `book.json` file. No custom configurations required.

## Installation

First you need to install the package using

```shell
$ npm i gitbook-plugin-summary --save
```

 afterwards, you need to add to your `book.json` the plugin, like this

```json
{
  "plugins": [
    "summary"
  ]
}
```

and finally run the command

```shell
$ gitbook serve
```

## Example

Let's assume that your source tree is done like this way:

```shell
$ tree .
.
├── 1-Getting Started
│   ├── 0-README.md
│   └── 1-TEST.md
├── 2-Reference
│   └── 0-README.md
├── README.md
└── SUMMARY.md
```

your **SUMMARY.md** file will look like this:

```markdown
- [Getting Started](1-Getting Started/0-README.md)
    - [Test](1-Getting Started/1-TEST.md)
- [Reference](2-Reference/0-README.md)
```

and this is how it will be shown inside your Gitbook:

![](example.png)

## License

See [LICENSE](LICENSE)

---
_Source: https://npm.io/package/gitbook-plugin-gensum · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
