code: function createDir(dir) {
    return new RSVP.Promise(function(resolve, reject) {
      // Delete the temporary compiled docs directory.
      mkdirp(dir, function (err) {
        if (err) {
          reject(err);
        } else {
          console.log('Created directory ' + dir);
          resolve();
        }
      });
    });
  }
docs: /* Creates a directory (and its parent directories, if necessary).
  
  @param {string} dir - The directory to create.
  @returns {Promise}