code: function isSubComponent(resource) {
    const [dir, module] = resource.split('/').filter(n => n !== '.');
    return dir !== module;
  }
docs: Don't render an example panel if the component is not the top-level component.