Skip to content

Embed a Linkdocs Site

Preface

This how-to will take you through the steps of embedding a documentation site in the developer portal catalog with use of the linkdocs plugin for backstage. This how-to guide assumes you have:

  • A hosted docs site - available to the same set of users as the developer portal.
  • An entity descriptor - which is indexed by the developer portal.

Hint

See how to register a component for a run down of how to create your entity descriptor and have the catalog index it

Add annotation

In order to make an embedded version of your docs site available on the developer portal, we must provide the diamond.ac.uk/viewdocs-url annotation. This annotation should point to the URL at which the docs are hosted.

Example

1
2
3
4
5
6
7
8
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: developer-portal-backend
  annotations:
    diamond.ac.uk/viewdocs-url: https://diamondlightsource.github.io/developer-portal/
spec:
  owner: user:enu43627