code: function (cb) {
              var self = this;
  
              Y.prepare([DEFAULT_THEME, themeDir], self.getProjectMeta(), function (err, opts) {
                  opts.meta.title = self.data.project.name;
                  opts.meta.projectRoot = './';
                  opts.meta.projectAssets = './assets';
                  opts.meta.projectLogo = self._resolveUrl(self.data.project.logo, opts);
                  opts = self.populateClasses(opts);
                  opts = self.populateModules(opts);
  
                  var view = new Y.DocView(opts.meta);
                  self.render('{{>index}}', view, opts.layouts.main, opts.partials, function (err, html) {
                      self.files++;
                      cb(html, view);
                  });
              });
          }
docs: Render the index file
  @method renderIndex
  @param {Function} cb The callback fired when complete
  @param {String} cb.html The HTML to render this view
  @param {Object} cv.view The View Data