code: function getComponentsWithExamples(root) {
      const componentsPath = `${__dirname}/../${root}/components`;
      return fs.readdirSync(componentsPath).map(component => ({
          name: component,
          sources: [`${componentsPath}/${component}`, `${componentsPath}/${component}/examples`]
      })).filter(isDirectory).map(obj => obj.name);
  }
docs: returns components that have an examples/ directory