Skip to content

Commit

Permalink
docs(toc): add table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Oct 16, 2016
1 parent 94be4f9 commit 92541fd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .verb.md
Expand Up @@ -4,6 +4,9 @@
[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]

## Table of Contents
<!-- toc -->

## Install

```
Expand All @@ -17,6 +20,7 @@ npm i {%= name %} --save
const readdir = require('{%= name %}')
```

## API
{%= apidocs('index.js') %}

{% if (verb.related && verb.related.list && verb.related.list.length) { %}
Expand Down
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -4,6 +4,16 @@
[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]

## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [API](#api)
* [CreateReaddirStream](#createreaddirstream)
* [.use](#use)
* [.createReaddirStream](#createreaddirstream)
- [Related](#related)
- [Contributing](#contributing)

## Install

```
Expand All @@ -17,6 +27,8 @@ npm i create-readdir-stream --save
const readdir = require('create-readdir-stream')
```

## API

### [CreateReaddirStream](index.js#L32)
> Initialize `CreateReaddirStream` with default `options`.
Expand Down
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -75,7 +75,11 @@
},
"verb": {
"run": true,
"toc": false,
"toc": {
"render": true,
"method": "preWrite",
"maxdepth": 4
},
"layout": "empty",
"tasks": [
"readme"
Expand Down Expand Up @@ -106,4 +110,4 @@
"reflinks": true
}
}
}
}

0 comments on commit 92541fd

Please sign in to comment.