fait / fait-doc

autogenerated makefile documentation in markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fait-doc

autogenerated makefile documentation in markdown

Installation

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)

Usage

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.

Documentation

Rules

πŸ“‹ 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

Variables

🚩 $(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.

licence

MIT

About

autogenerated makefile documentation in markdown


Languages

Language:JavaScript 60.3%Language:Makefile 39.7%