api-docs: update cards to grab entity from context + composability exports

This commit is contained in:
Patrik Oldsberg
2021-02-01 18:17:06 +01:00
parent d955622e81
commit 6748413692
14 changed files with 148 additions and 48 deletions
+3 -3
View File
@@ -16,8 +16,8 @@
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { ApiExplorerPage, plugin } from '../src/plugin';
import { catalogApiRef } from '@backstage/plugin-catalog';
import { ApiExplorerPage, apiDocsPlugin } from '../src/plugin';
import { catalogApiRef } from '@backstage/plugin-catalog-react';
import petstoreApiEntity from './example-api.yaml';
createDevApp()
@@ -31,6 +31,6 @@ createDevApp()
},
} as unknown) as typeof catalogApiRef.T),
})
.registerPlugin(plugin)
.registerPlugin(apiDocsPlugin)
.addPage({ element: <ApiExplorerPage /> })
.render();