gitbook SUMMARY.md to path list.
npm install gitbook-summary-to-pathParse SUMMARY.md of GitBook and print file path list.
npm install gitbook-summary-to-path
``sh`
$ npx gitbook-summary-to-path SUMMARY.md
/path/to/gitbook-summary-to-path/test/fixtures/README.md
/path/to/gitbook-summary-to-path/test/fixtures/jQuery.md
Use gitbook-summary-to-path with textlint.
Example) Lint all files in SUMMARY.md with textlint.
`sh`
npm install -D textlint textlint-rule-no-todo gitbook-summary-to-path
npx gitbook-summary-to-path SUMMARY.md | xargs npx textlint --rule no-todo
npm test
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT