Merge pull request #9556 from RoadieHQ/auto-add-techdocs-core-plugin

Auto add techdocs core plugin
This commit is contained in:
Emma Indal
2022-03-02 15:42:58 +01:00
committed by GitHub
14 changed files with 286 additions and 98 deletions
+2
View File
@@ -130,6 +130,8 @@ Options:
if not found.
--etag <ETAG> A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored
in techdocs_metadata.json.
--omitTechdocsCoreMkdocsPlugin An option to disable automatic addition of techdocs-core plugin to the mkdocs.yaml files.
Defaults to false, which means that the techdocs-core plugin is always added to the mkdocs file.
-v --verbose Enable verbose output. (default: false)
-h, --help display help for command
```
+5
View File
@@ -37,6 +37,11 @@ techdocs:
pullImage: true
mkdocs:
# (Optional) techdocs.generator.omitTechdocsCoreMkdocsPlugin can be used to disable automatic addition of techdocs-core plugin to the mkdocs.yaml files.
# Defaults to false, which means that the techdocs-core plugin is always added to the mkdocs file.
omitTechdocsCorePlugin: false
# techdocs.builder can be either 'local' or 'external.
# Using the default build strategy, if builder is set to 'local' and you open a TechDocs page,
# techdocs-backend will try to generate the docs, publish to storage and show the generated docs afterwords.
@@ -79,6 +79,9 @@ plugins:
- techdocs-core
```
> Note - The plugins section above is optional. Backstage automatically adds the `techdocs-core` plugin to the
> mkdocs file if it is missing. This functionality can be turned off with a [configuration option](./configuration.md) in Backstage.
Update your component's entity description by adding the following lines to its
`catalog-info.yaml` in the root of its repository: