Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
docs(toc): generated an initial readme table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Apr 11, 2019
1 parent 279306b commit b63f12d
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .remarkrc.js
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
exports.plugins = ['remark-preset-lint-travi'];
// https://github.com/remarkjs/remark/tree/master/packages/remark-stringify#options
exports.settings = {
listItemIndent: 1,
emphasis: '_',
strong: '_',
bullet: '*',
incrementListMarker: false
};

exports.plugins = [
'remark-preset-lint-travi',
[require('remark-toc'), {tight: true}]
];
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@
VCS scaffolder for projects to be hosted on GitHub

<!-- status badges -->

[![Build Status][ci-badge]][ci-link]
[![Codecov][coverage-badge]][coverage-link]

## Table of Contents

* [Usage](#usage)
* [Installation](#installation)
* [Contributing](#contributing)
* [Dependencies](#dependencies)
* [Verification](#verification)

## Usage

<!-- consumer badges -->

[![npm][npm-badge]][npm-link]
[![MIT license][license-badge]][license-link]

Expand All @@ -21,6 +31,7 @@ $ npm install @travi/github-scaffolder --prod
## Contributing

<!-- contribution badges -->

[![Conventional Commits][commit-convention-badge]][commit-convention-link]
[![Commitizen friendly][commitizen-badge]][commitizen-link]
[![semantic-release][semantic-release-badge]][semantic-release-link]
Expand All @@ -41,18 +52,33 @@ $ npm test
```

[npm-link]: https://www.npmjs.com/package/@travi/github-scaffolder

[npm-badge]: https://img.shields.io/npm/v/@travi/github-scaffolder.svg

[license-link]: LICENSE

[license-badge]: https://img.shields.io/github/license/travi/github-scaffolder.svg

[ci-link]: https://travis-ci.com/travi/github-scaffolder

[ci-badge]: https://img.shields.io/travis/com/travi/github-scaffolder/master.svg

[coverage-link]: https://codecov.io/github/travi/github-scaffolder

[coverage-badge]: https://img.shields.io/codecov/c/github/travi/github-scaffolder.svg

[commit-convention-link]: https://conventionalcommits.org

[commit-convention-badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg

[commitizen-link]: http://commitizen.github.io/cz-cli/

[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg

[semantic-release-link]: https://github.com/semantic-release/semantic-release

[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg

[PRs-link]: http://makeapullrequest.com

[PRs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"build": "run-s clean build:*",
"build:js": "rollup -c",
"generate:md": "remark . --output",
"watch": "run-s 'build:js -- --watch'",
"prepack": "run-s build"
},
Expand Down Expand Up @@ -50,6 +51,7 @@
"remark": "^10.0.1",
"remark-cli": "^6.0.1",
"remark-preset-lint-travi": "^1.1.0",
"remark-toc": "^5.1.1",
"rimraf": "^2.6.2",
"rollup": "^1.1.2",
"rollup-plugin-auto-external": "^2.0.0",
Expand Down

0 comments on commit b63f12d

Please sign in to comment.