scripts/build-doc.js
function buildDocs(api) {
  const view = buildTemplateView(api);

  // build up readmes one at a time
  const queue = d3.queue(1);

  Object.keys(api).forEach((filepath) => {
    queue.defer(buildReadMe, filepath, view);
  });

  queue.await((err) => {
    if (err) {
      console.log(err);
    }

    console.log('Finished building docs');
  });
}
function buildDocs(api) {
  const view = buildTemplateView(api);

  // build up readmes one at a time
  const queue = d3.queue(1);

  Object.keys(api).forEach((filepath) => {
    queue.defer(buildReadMe, filepath, view);
  });

  queue.await((err) => {
    if (err) {
      console.log(err);
    }

    console.log('Finished building docs');
  });
}
accept output from react-docgen, create READMEs
@param {Object} api