code: function writeDocsFile(srcPath, destDir, options) {
    // capture stdout of 'documentation'
    // FIXME: Change this to use documentation Node API
    var filename = options.slug + '.md';
    var destPath = path.join(destDir, filename);
    var promises = [];
    var filePath;
    var files;
  
    if (fs.statSync(srcPath).isDirectory()) {
      // If the path is a directory,
      // get a list of files in the directory
      files = fs.readdirSync(srcPath);
    } else {
      // Otherwise, the path is a file name
      files = [srcPath];
    }
  
    for (var i = 0; i < files.length; i++) {
      if (files[0] !== srcPath) {
        // If it's just a filename, add the path
        filePath = path.join(srcPath, files[i]);
      } else {
        filePath = srcPath;
      }
  
      // Only try to parse files
      if (fs.statSync(filePath).isFile()) {
        promises.push(parseSourceFile(filePath));
      }
    }
  
    return RSVP.all(promises)
      .then(function(markdownArray) {
        return massageMarkdown(markdownArray.join('\n'), options);
      })
      .then(function(markdown) {
        return new RSVP.Promise(function(resolve, reject) {
          // use {'flags': 'a'} to append and {'flags': 'w'} to erase and write a new file
          var stream = fs.createWriteStream(destPath, { flags: 'w' });
  
          stream.on('finish', resolve);
          stream.on('error', reject);
  
          stream.write(markdown);
  
          stream.end();
  
          console.log('Wrote Markdown to file ' + destPath);
        });
      });
  }
docs: /* Write a documentation Markdown file.
  
  @param {string} srcPath - The full path of the source file or directory.
  @param {string} destDir - The directory in which to write the Markdown file.
  @param {Object} options
  @param {string} options.slug - The slug of the documentation. Used to construct the filename.
  @param {string} options.title - The page title of the documentation.
  @returns {Promise}