gitbook-summary-to-path
Parse SUMMARY.md of GitBook and print file path list.Installation
npm install gitbook-summary-to-path
Usage
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.md
Use 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-todo
Tests
npm test
Contributing
- 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