ReadME - a github readme builder
readme is a cli tool to extract markdown text from source code files
Motivation
After trying some of doc builder tools I couldn't find anything that realy suits my needs, so decided to write my own
Goals:
- be able to write doc block within source file
- having some useful vars to build the docs, like TODO tags
- build only one and huge readme indexed file
Installation
TODO Write installation instructions here
Usage
Usage: readme [arguments]
-t FILE, --template=FILE ECR template file, [default: default]
-o FILE, --output=FILE Specifies output file, [default: stdout]
--no-recursive Disable recursive file lookup, [default: false]
--file-type File type extension to filter, [default: any]
-v, --version Show version
-h, --help Show this help
--show-context Shows default context and templates
For further help with templates please refer to: https://github.com/straight-shoota/crinja
Development
TODO Write development instructions here
TODO
- [ ] having TODO/BUG/FIX dictionary would be nice to get it more feature rich
- [ ] needs to improve template error handling
Contributing
- Fork it (https://github.com/quirinux/readme/fork)
- 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
) - Create a new Pull Request
Contributors
- QuirinuX - creator and maintainer
The following was generated using readme itself :-), check out how it is done on README.md.j2.
Table of Contents
src/readme.cr
readme file processor this is the app file
- TODO: add pattern filter
- TODO: add file type filter
- TODO: add user passed path instead of listing current
- TODO: add no-recursive option
src/main.cr
this is the project main file, where all the magic begins
TODO it'd be nice to have an exclude path/files flag
examples/rust.rs
this is supposed to be a rust file with
some nice comments in it
examples/ruby.rb
this is supposed to be a ruby file with
some nice comments in it
examples/python.py
this is supposed to be a python file with
some nice comments in it