1.1.0 • Published 7 years ago
gitbook-summary-to-path v1.1.0
gitbook-summary-to-path
Parse SUMMARY.md of GitBook and print file path list.
Installation
npm install gitbook-summary-to-pathUsage
Command Line
$ summary-to-path SUMMARY.md
/Users/azu/gitbook-summary-to-path/test/fixtures/README.md
/Users/azu/gitbook-summary-to-path/test/fixtures/jQuery.mdUse case
Use gitbook-summary-to-path with textlint.
Example) Lint all files in SUMMARY.md with textlint.
npm install -D textlint textlint-rule-no-todo gitbook-summary-to-path
$(npm bin)/summary-to-path SUMMARY.md | xargs $(npm bin)/textlint --rule no-todoTests
npm testContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT