-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Having used terraform-docs recently, I think there's some value in automatically generating some documentation from the schema file for a human to read, e.g. onto a README.md
A rough plan could be:
- Make sure you have a target markdown file (default README.md)
- Add some configuration blocks for configuring how nf-schema should write this content (e.g. terraform-docs inspiration)
- Add placeholders for different fields, e.g.
{{ params }},{{ .assets.schema.${id} }},{{ profiles }},{{ outputs }} - When running the nf-schema a plugin command nf-schema will substitute in the fields from the schema and place them into the markdown.
- This could be ran as a pre-commit hook or CI/CD to auto generate, simple but effective docs.
This doesn't have to be an nf-schema feature, but that seems like the most obvious place since it is already parsing the schema file etc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels