diff --git a/.changeset/smart-plants-sip.md b/.changeset/smart-plants-sip.md new file mode 100644 index 0000000000..1a5d456a9b --- /dev/null +++ b/.changeset/smart-plants-sip.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-api-docs': patch +--- + +Fix typo in default path of api docs definition route diff --git a/plugins/api-docs/README-alpha.md b/plugins/api-docs/README-alpha.md index d92fdb53da..ddff429135 100644 --- a/plugins/api-docs/README-alpha.md +++ b/plugins/api-docs/README-alpha.md @@ -826,10 +826,10 @@ export default createFrontendModule({ createEntityContentExtension({ // Name is necessary so the system knows that this extension will override the default 'definition' entity content extension provided by the 'api-docs' plugin name: 'definition', - // Returing a custom content component + // Returning a custom content component loader: () => import('./components').then(m => ( - + )), }), ], diff --git a/plugins/api-docs/src/alpha.tsx b/plugins/api-docs/src/alpha.tsx index b38bfc6c91..c6757e180e 100644 --- a/plugins/api-docs/src/alpha.tsx +++ b/plugins/api-docs/src/alpha.tsx @@ -189,7 +189,7 @@ const apiDocsProvidingComponentsEntityCard = EntityCardBlueprint.make({ const apiDocsDefinitionEntityContent = EntityContentBlueprint.make({ name: 'definition', params: { - defaultPath: '/defintion', + defaultPath: '/definition', defaultTitle: 'Definition', filter: 'kind:api', loader: async () =>