docs: function() {
  
    var globalConfig = getGlobalConfig();
    // Read contents of app registry file.
    return Promise.fromNode(function(cb) {
      fs.readFile(globalConfig.appRegistry, {encoding: 'utf8'}, cb);
    })
    // Parse contents and return app dirs.
    .then(function(data) {
      var json = JSON.parse(data);
      if (json) {
        return json;
      } else {
        return [];
      }
    })
    // Handle no entry error.
    .catch(function(err) {
      if (err.code === 'ENOENT') {
        return [];
      } else {
        throw err;
      }
    });
  
  }