Parses and generates the documentation for given files.
- {String} output: Path or the output to produce
- {String} template: Path or the custom template
- {String} encoding: Encoding of templates and files to parse
- {Function} formatter: Custom formatter
- {Function} compiler: Compiler (for example for CoffeeScript IcedCoffeeScript)
var markdox = require('markdox');
markdox.parse('/path/to/file.js', callback);
-
String|Array files Files to process
-
Object|Function|String options The options or the callback (if there is not options) or the output option
-
Function callback The callback, it gets two arguments (err, output)
Parses the given file.
var markdox = require('markdox');
markdox.parse('/path/to/file.js', callback);
-
String filepath Filepath to parse
-
Object|Function options The options or the callback (if there is not options)
-
Function callback The callback, it gets two arguments (err, result)
Generates the output for comments.
-
Object docfiles Comments to render
-
Object|Function|String options The options or the callback (if there is not options)
-
Function callback The callback, it gets two arguments (err, output)