@revisionapp/backstage-revision-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.4.9 • Public • Published

Revision Plugin

The Revision plugin displays diagrams from Revision.

Revision diagram

Getting started

  1. Install the Revision plugin
# From your Backstage root directory

yarn add --cwd packages/app @revisionapp/backstage-revision-plugin
  1. Add the EntitySentryCard to the EntityPage
// packages/app/src/components/catalog/EntityPage.tsx

import { EntityRevisionContent } from '@revisionapp/backstage-revision-plugin';

const serviceEntityPage = (
  <EntityLayout>
    // ...
    <EntityLayout.Route path="/revision-diagram" title="Diagram">
      <EntityRevisionContent />
    </EntityLayout.Route>
    // ...
  </EntityLayout>
);
  1. Add the proxy config and Revision base url
# app-config.yaml

proxy:
  '/revision':
    target: https://my.revision.app

revision:
  baseUrl: https://my.revision.app
  1. Add the revision.app/preferred-diagram-slug annotation to your catalog-info.yaml file:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: backstage
  description: |
    Backstage is an open-source developer portal that puts the developer experience first.
  annotations:
    revision.app/preferred-diagram-slug: YOUR_DIAGRAM_SLUG
spec:
  type: library
  owner: CNCF
  lifecycle: experimental

Readme

Keywords

Package Sidebar

Install

npm i @revisionapp/backstage-revision-plugin

Homepage

revision.app

Weekly Downloads

0

Version

0.4.9

License

Apache-2.0

Unpacked Size

26.6 kB

Total Files

9

Last publish

Collaborators

  • revisionapp