docs: function collections(options) {
    options = options || {};
  
    return function plugin(app, base) {
      if (!isValidInstance(app)) return;
  
      app.option(base.options);
      app.option(options);
  
      app.create('badges', { viewType: 'partial' });
      app.create('docs', { viewType: 'partial' });
  
      app.use(require('generate-collections'));
      return plugin;
    };
  }