@cycle/core
Version:
The Cycle run() function meant to be used with RxJS v4
23 lines (20 loc) • 509 B
JavaScript
var markdox = require('markdox');
function generateDocs(options) {
markdox.process(
options.src,
{output: options.output, template: options.template},
function generationCallback(err/*, output */) {
if (err) {
console.error(err);
} else {
console.log('File `' + options.output + '` generated with success');
}
}
);
}
generateDocs({
src: './lib/index.js',
output: './docs/api.md',
template: './scripts/cycle-docs-template.md.ejs'
});
;