code: function writeApiDocs(srcPaths, destDir) {
    return removeDir(destDir)
      .then(() => createDir(destDir))
      .then(() => {
        return RSVP.map(srcPaths, srcPath => {
          let slug = path.basename(srcPath, '.js');
          let title = capitalizeFirstLetter(slug.replace('-', ' '));
  
          return writeDocsFile(srcPath, destDir, { slug, title });
        });
      })
  }
docs: /* Write documentation for the files in a directory.
  
  Individual files in the directory will each have their own documentation
  files. Subdirectories will group the docs for all files together.
  
  @param {string} srcDir - The directory in which the source files are contained.
  @param {string} destDir - The directory in which to write the documentation files.
  @returns {Promise}