All files / src/commands docs.js

66.67% Statements 6/9
100% Branches 0/0
0% Functions 0/1
66.67% Lines 6/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191x           1x   1x 1x 1x   1x            
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);
};