fait-doc requires fait 1.0. install them both with:
npm install --save-dev fait fait-doc
fait will create a barebones makefile
: to load fait-doc, add:
$(call require, fait-doc)
Run make doc
to generate documentation from comment blocks in your makefiles.
Without any configuration, fait-doc reads comments from all included makefiles
that are not in node_modules
. For an example of input and output, see
index.mk and the documentation section of this
readme.
Run make help
to output generated documentation to the console.
π doc
β¬
οΈ $(fait-doc-output)
π
Generate fait-doc documentation when make doc
is run
π help
β¬
οΈ $(fait-doc-intermediate)
π
Output generated documentation as console help
π $(fait-doc-intermediate)
β¬
οΈ $(fait-doc-input)
π
Generate documentation
π $(fait-doc-output)
β¬
οΈ $$(fait-doc-header) generated.md $$(fait-doc-footer)
π
Concatenate generated documentation with header and footer and output
π© $(fait-doc-header)
π
File to prepend to the generated documentation (none by default)
π© $(fait-doc-footer)
π
File to append to the generated documentation (none by default)
π© $(fait-doc-output)
π
Output filename, readme.md by default
π© $(fait-doc-intermediate)
π
Filename for intermediate (i.e. pre-concatenation) output file. By default this
is cleaned up afterwords, see $(fait-doc-intermediate-cleanup)
π© $(fait-doc-intermediate-cleanup)
π
Set to no
to keep the non-concatenated generated documentation output file
π© $(fait-doc-print-all)
π
Set to yes
to print help from all makefiles, even those in node_modules
(e.g. fait core and fait-doc themselves)
π© $(fait-doc-input)
π
Makefiles to parse for documentation. By default, we parse all makefiles from
$(MAKEFILE_LIST)
that aren't in node_modules
.
MIT