Comparing version 1.3.0 to 1.3.1
@@ -137,3 +137,3 @@ 'use strict'; | ||
// 4 spaces required for proper indention on Bitbucket | ||
// 4 spaces required for proper indention on Bitbucket and GitLab | ||
var indentation = (mode === 'bitbucket.org' || mode === 'gitlab.com') ? ' ' : ' '; | ||
@@ -140,0 +140,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Generates TOC for markdown files of local git repo.", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
# DocToc [![build status](https://secure.travis-ci.org/thlorenz/doctoc.svg)](http://travis-ci.org/thlorenz/doctoc) | ||
[![NPM](https://nodei.co/npm/doctoc.png?downloads=true&stars=true)](https://nodei.co/npm/doctoc/) | ||
<a href="https://www.patreon.com/bePatron?u=8663953"><img alt="become a patron" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" height="35px"></a> | ||
@@ -24,2 +24,3 @@ Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated | ||
- [Printing to stdout](#printing-to-stdout) | ||
- [Usage as a `git` hook](#usage-as-a-git-hook) | ||
@@ -142,1 +143,17 @@ <!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
[ack]: http://beyondgrep.com/ | ||
### Usage as a `git` hook | ||
doctoc can be used as a [pre-commit](http://pre-commit.com) hook by using the | ||
following configuration: | ||
```yaml | ||
repos: | ||
- repo: https://github.com/thlorenz/doctoc | ||
sha: ... # substitute a tagged version | ||
hooks: | ||
- id: doctoc | ||
``` | ||
This will run `doctoc` against markdown files when committing to ensure the | ||
TOC stays up-to-date. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48219
80506
24
158