Skip to content

Feature request: Create markdown documents #201

@adamrtalbot

Description

@adamrtalbot

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:

  1. Make sure you have a target markdown file (default README.md)
  2. Add some configuration blocks for configuring how nf-schema should write this content (e.g. terraform-docs inspiration)
  3. Add placeholders for different fields, e.g. {{ params }}, {{ .assets.schema.${id} }}, {{ profiles }}, {{ outputs }}
  4. When running the nf-schema a plugin command nf-schema will substitute in the fields from the schema and place them into the markdown.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions