Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.83 KB

DOCUMENTATION.md

File metadata and controls

51 lines (40 loc) · 1.83 KB

Documentation

Official Terraform Provider Documentation

This section provides all the information needed to work with terraform-provider-nobl9 documentation.

Tool

Documentation is created using the tfplugindocs tool.

Which files should I change?

  • Update (if needed) templates available under templates/ directory

    • Each resource has a separate template file, e.g. templates/resources/slo.md.tmpl
    • We use generic templates for index and resource pages: templates/index.md.tmpl and templates/resources.md.tmpl.
    • Use Data Fields supported by tfplugindocs.
  • Update (if needed) examples available under examples/ directory

  • Update (if needed) "description" field for a resource, e.g. in nobl9/resource_slo.go:

    Schema: map[string]*schema.Schema{
      ...
      "description":  "Your new description"
      ...
    }
    • This description will be rendered on the documentation page for the changed resource.
  • Do not touch anything under docs/ directory.

How to generate docs?

You need to have Go installed on your machine, then run:

go generate