Skip to main content

TechDocsStorageClient

Home > @backstage/plugin-techdocs > TechDocsStorageClient

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

Signature:

class TechDocsStorageClient implements TechDocsStorageApi 

Implements: TechDocsStorageApi

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the TechDocsStorageClient class

Properties

PropertyModifiersTypeDescription
configApiConfig
discoveryApiDiscoveryApi
identityApiIdentityApi

Methods

MethodModifiersDescription
getApiOrigin()
getBaseUrl(oldBaseUrl, entityId, path)
getBuilder()
getEntityDocs(entityId, path)Fetch HTML content as text for an individual docs page in an entity's docs site.
getStorageUrl()
syncEntityDocs(entityId, logHandler)Check if docs are on the latest version and trigger rebuild if not