Files
backstage/.changeset/dull-oranges-tap.md
T
2022-10-24 10:34:57 -07:00

611 B

@backstage/plugin-techdocs
@backstage/plugin-techdocs
minor

Add ability to configure filters when using EntityListDocsGrid

The following example will render two sections of cards grid:

  • One section for documentations tagged as recommended
  • One section for documentations tagged as runbook
<EntityListDocsGrid groups={{[
  {
    title: "Recommended Documentation",
    filterPredicate: entity =>
      entity?.metadata?.tags?.includes('recommended') ?? false,
  },
  {
    title: "RunBooks Documentation",
    filterPredicate: entity =>
      entity?.metadata?.tags?.includes('runbook') ?? false,
  }
]}} />