Backstage
    Preparing search index...

    API which talks to TechDocs storage to fetch files to render.

    Implements

    Index

    Constructors

    Properties

    configApi: Config
    discoveryApi: DiscoveryApi

    Methods

    • Fetch HTML content as text for an individual docs page in an entity's docs site.

      Parameters

      • entityId: CompoundEntityRef

        Object containing entity data like name, namespace, etc.

      • path: string

        The unique path to an individual docs page e.g. overview/what-is-new

      Returns Promise<string>

      HTML content of the docs page as string

      Throws error when the page is not found.

    • Check if docs are on the latest version and trigger rebuild if not

      Parameters

      • entityId: CompoundEntityRef

        Object containing entity data like name, namespace, etc.

      • logHandler: (line: string) => void = ...

        Callback to receive log messages from the build process

      Returns Promise<SyncResult>

      Whether documents are currently synchronized to newest version

      Throws error on error from sync endpoint in TechDocs Backend