module.exports.usage = `Generate the docs that will be shown on the build website
Usage: api docs
Outputs the docs which display on the website. Generated using https://github.com/readmeio/build-docs`;
const path = require('path');
const console = require('../utils/console');
const exit = require('../utils/exit');
const buildDocs = require('build-docs');
module.exports.run = () => {
const docs = buildDocs.parseDirectory(path.join(process.cwd(), 'endpoints'));
// console.log('Generated docs for', main.green, '\n');
console.log(require('util').inspect(docs, { depth: null }));
return exit(0);
};
|