Add default entity content groups for techdocs and api-docs plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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.
|
||||
@@ -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
|
||||
|
||||
@@ -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 => (
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user