Update draft comment for COMPONENT TechDocs location

Co-authored-by: Anders Näsman <realandersn@users.noreply.github.com>
Co-authored-by: Eric Peterson <iamEAP@users.noreply.github.com>
Signed-off-by: Otto Sichert <git@ottosichert.de>
This commit is contained in:
Otto Sichert
2022-04-12 11:11:04 +02:00
parent 9c576e803b
commit 1f51e960af
+8 -4
View File
@@ -76,11 +76,14 @@ export enum TechDocsAddonLocations {
* attributes provided on that element, for example:
*
* ```md
* ## For Fun
* <TechDocsAddon>CatGif</TechDocsAddon>
*
* ## Component Metadata
* [CatalogEntityCard](default:component/some-component-name)
* <TechDocsAddon entityRef="default:component/some-component-name">CatalogEntityCard</TechDocsAddon>
*
* ## System Metadata
* [CatalogEntityCard](default:system/some-system-name)
* <TechDocsAddon entityRef="default:system/some-system-name">CatalogEntityCard</TechDocsAddon>
* ```
*
* Could correspond to a TechDocs addon named `CatalogEntityCard` with
@@ -90,8 +93,9 @@ export enum TechDocsAddonLocations {
*
* The `@backstage/plugin-techdocs-react` package would need to be updated to, in
* cases where such addons had been registered, find all instances of the
* rendered markdown (e.g. `<a href="{entityRef}">CatalogEntityCard</a>`) and
* replace them with react portals to the addon component.
* the `<TechDocsAddon>` tag whose `textContent` corresponded with the name of the
* addon, then replace them with component instances of the addon component,
* passing any attributes from the tag as props to the component.
*/
// COMPONENT = 'component',
}