Document collation supports 3 types of projects:
- components -
cloudposse/terraform-aws-component
- components from single repocloudposse/terraform-aws-component
undermodules/
dir - modules -
cloudposse/terraform-*
- for all public (non-archived) repos exceptcloudposse/terraform-aws-component
that are prefixed withterraform-
- github actions -
cloudposse/github-action-*
- for all public (non-archived) repos that are prefixed withgithub-action-
Python is used for both tools so make sure to install python requirements.
pip install -r scripts/docs-collator/requirements.txt
./scripts/render-docs-for-components.sh
Since this script uses the Github API, the GitHub access token should be set as the PUBLIC_REPO_ACCESS_TOKEN
environment variable.
export PUBLIC_REPO_ACCESS_TOKEN=<github-api-token>
./scripts/render-docs-for-modules.sh
This script also uses GitHub API, so the GitHub access token should be set as the PUBLIC_REPO_ACCESS_TOKEN
environment variable.
export PUBLIC_REPO_ACCESS_TOKEN=<github-api-token>
./scripts/render-docs-for-github-actions.sh