app-config.yaml, set up MkDocs in your repo, and annotate your component so Backstage can discover and render the docs.

Viewing Docs in Backstage
On your component page, click the Docs tab to see the generated site—complete with a table of contents, headings, and navigation sidebar.
1. TechDocs Plugin Registration
Backstage includes TechDocs plugins for both frontend and backend. In your backend entrypoint (e.g.,packages/backend/src/index.ts), you’ll find:
app-config.yaml.
2. Configuring TechDocs in app-config.yaml
Openapp-config.yaml and locate the techdocs section. The defaults are:
This configuration uses Docker to build your docs and stores HTML on the local filesystem. To publish to Google Cloud Storage or AWS S3, switch
publisher.type.Available Publisher Options
| Publisher Type | Description | When to Use |
|---|---|---|
| local | Store artifacts on local filesystem | Quick local testing |
| googleGcs | Store in Google Cloud Storage | GCP-based workflows |
| awsS3 | Store in AWS S3 buckets | AWS-based deployments |
3. Preparing Your Component Repository
Let’s assume your service is named recommendation-service. The root directory should include:package.jsoncatalog-info.yaml.gitignoremkdocs.ymldocs/directory
package.json:

4. MkDocs Configuration
Createmkdocs.yml in your repo root to define your documentation site:
docs/ folder:

5. Annotating catalog-info.yaml
Tell Backstage where your docs live by adding thebackstage.io/techdocs-ref annotation:
If you rename the
docs/ directory (for example to documentation/), update both mkdocs.yml (docs_dir) and the techdocs-ref annotation accordingly.6. Viewing TechDocs in Backstage
- Push your repository to GitHub (or your Git provider).
- Import the component in Backstage’s catalog.
- Click View TechDocs on the component page.
mkdocs.yml.
Summary
To integrate TechDocs into Backstage:- Ensure
plugin-techdocs-backendis registered. - Configure the
techdocssection inapp-config.yaml. - Add
mkdocs.ymlat the root of your component repo. - Place all Markdown files in a
docs/directory. - Annotate
catalog-info.yamlwithbackstage.io/techdocs-ref.