497675538c
* feat(techdocs): TechDocsPageWrapper to take in labels prop and use TechDocsHeader component * feat(techdocs): new TechDocsHeader component as wrapper around Header from core * feat(techdocs): TechDocsPage metadata * feat(techdocs): TechDocsMetadata class responsible for reading metadata from generated techdocs metadata json file * fix(techdocs): delete TechDocsPageWrapper component * fix(app-config): delete /docs from request url * feat(techdocs): TechDocsHeader with labels to browse metadata * fix(techdocs): move metadata to backend plugin * feat(techdocs-backend): introduce two new metadata routes * feat(techdocs): new techdocs api to be responsible to request metadata from backend * feat(techdocs): register new api for plugin * fix(techdocs): reader to take in onReady prop * fix(techdocs): TechDocsHome component to use its own header * fix(techdocs): TechDocsPage responsible to get metadata and pass it down to the TechDocsHeader * fix(techdocs): component tests for both TechDocsHeader and TechDocsPage * fix(techdocs): adjust api to use /docs in url since it was taken away in requestURL * fix(tests): move assertion into act * fix(techdocs): rename TechDocsHeader to TechDocsPageHeader * fix(techdocs): rename TechDocsHeader to TechDocsPageHeader * fix(techdocs-backend): add some logs * Update plugins/techdocs/src/reader/components/TechDocsPage.test.tsx * delete unused import
TechDocs Plugin
Getting started
Set up Backstage and TechDocs by follow our guide on Getting Started.
Configuration
Custom Storage URL
TechDocs will try to read your documentation from the URL you have specified in the techdocs storageUrl in app-config.yml.
TechDocs Storage Api
The default setup of TechDocs assumes your documentation is accessed by reading a page with the format of <storageUrl>/<entity kind>/<entity namespace>/<entity name>. If for some reason you want to change this it can be configured by implementing a new techdocs storage API. Do this by implementing TechDocsStorage found in plugins/techdocs/src/api. Add your new API to the application in app/src/apis.ts (or replace if it's already registered as an API).