Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

📖 GitHub Action for Backstage TechDocs

This GitHub Action can be used for generating and publishing Backstage TechDocs.

Features

The action facilitated TechDocs CLI to generate and publish TechDocs sites.

  • Building TechDocs only
  • Building and publish TechDocs to cloud object storage

Usage

Minimal Example

The following shows a minimal example of building and publishing TechDocs to AWS S3.

name: Publish TechDocs Siteon:
push:
branches:
- mainpaths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/techdocs.yml"jobs:
publish-techdocs-site:
name: Publish TechDocs Siteruns-on: ubuntu-lateststeps:
- name: Setup Nodeuses: Staffbase/backstage-techdocs-action@892be7cc155022260e34cf0330f8424946b55c11 # v0.2.3with:
entity-name: 'pizza-service'publisher-type: 'azureBlobStorage'storage-name: 'techdocs'azure-account-name: ${{ vars.TECHDOCS_AZURE_ACCOUNT_NAME }}azure-account-key: ${{ secrets.TECHDOCS_AZURE_ACCESS_KEY }}

Advanced Example

The following will skip the publish step (e.g. to verify site generation in a pull request) and installs additional plugins:

name: Publish TechDocs Siteon:
push:
paths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/techdocs.yml"jobs:
publish-techdocs-site:
name: Publish TechDocs Siteruns-on: ubuntu-lateststeps:
- name: Setup Nodeuses: Staffbase/backstage-techdocs-action@892be7cc155022260e34cf0330f8424946b55c11 # v0.2.3with:
entity-name: 'pizza-service'additional-plugins: 'mkdocs-minify-plugin\>=0.3 mkdocs-awesome-pages-plugin==2.8.0 mdx_include==1.4.2'skip-publish: 'true'

Configuration

NameDescriptionRequiredDefault
entity-namespaceEntity namespace in Backstagetruedefault
entity-kindKind of the Backstage entitytrueComponent
entity-nameName of the Backstage entitytrue
publisher-typeawsS3 or azureBlobStorage. If not set, generated site will not be published.false
storage-nameIn case of AWS, use the bucket name. In case of Azure, use container name.false
aws-regionRequired if publisher-type: awsS3 - AWS Regionfalseeu-central-1
aws-access-key-idRequired if publisher-type: awsS3 - AWS Access Key IDfalse
aws-secret-access-keyRequired if publisher-type: awsS3 - AWS Secret Access Keyfalse
azure-account-nameRequired if publisher-type: azureBlobStorage - Azure Account Namefalse
azure-account-keyRequired if publisher-type: azureBlobStorage - Azure Account Keyfalse
additional-pluginsSpace separated list of additional python plugins (Bash quoting for special chars)false
skip-publishIndicates whether publish step should be skippedfalsefalse

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the Apache-2.0 License - see the LICENSE.md file for details.

Staffbase GmbHStaffbase GmbH
Staffbase is an internal communications platform built to revolutionize the way you work and unite your company. Staffbase is hiring: jobs.staffbase.com
GitHub | Website | Jobs

About

GitHub Action for creating and publishing Backstage TechDocs.

Topics

Resources

Contributing

Stars

2 stars

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors