Add default entity content groups for techdocs and api-docs plugins

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-25 15:37:10 +01:00
parent c7d2bf99ee
commit 30e08dfbcc
5 changed files with 16 additions and 6 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Added default entity content groups for the API docs entity content tabs. The API definition tab defaults to the `documentation` group and the APIs tab defaults to the `development` group.
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Added `documentation` as the default entity content group for the TechDocs entity content tab.
+3 -6
View File
@@ -97,22 +97,19 @@ app:
# - entity-card:azure-devops/readme
# Entity page contents
- entity-content:catalog/overview:
config:
group: overview
- entity-content:catalog/overview
- entity-content:api-docs/definition
- entity-content:api-docs/apis:
config:
# example associating with a default group
# example overriding the default group
group: documentation
icon: kind:api
- entity-content:techdocs:
config:
group: documentation
icon: techdocs
- entity-content:kubernetes/kubernetes:
config:
# example disassociating with a default group
# example disassociating from the default group
group: false
# - entity-content:azure-devops/pipelines
# - entity-content:azure-devops/pull-requests
+2
View File
@@ -174,6 +174,7 @@ const apiDocsDefinitionEntityContent = EntityContentBlueprint.make({
params: {
path: '/definition',
title: 'Definition',
group: 'documentation',
filter: { kind: 'api' },
loader: async () =>
import('./components/ApiDefinitionCard').then(m => (
@@ -191,6 +192,7 @@ const apiDocsApisEntityContent = EntityContentBlueprint.make({
params: {
path: '/apis',
title: 'APIs',
group: 'development',
filter: { kind: 'component' },
loader: async () =>
import('./components/ApisCards').then(m => (
+1
View File
@@ -223,6 +223,7 @@ const techDocsEntityContent = EntityContentBlueprint.makeWithOverrides({
{
path: 'docs',
title: 'TechDocs',
group: 'documentation',
routeRef: rootCatalogDocsRouteRef,
loader: () => {
// Merge addons from the API with old-style direct attachments