Official Terraform Provider Documentation
This section provides all the information needed to work with
terraform-provider-nobl9
documentation.
Documentation is created using the tfplugindocs tool.
-
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
andtemplates/resources.md.tmpl
. - Use Data Fields supported by tfplugindocs.
- Each resource has a separate template file, e.g.
-
Update (if needed) examples available under
examples/
directory- Make sure that all examples are working with the latest version of the provider
examples/provider/provider.tf
is the example that will be rendered on the main page on provider documentation.examples/resources/<resource_name>/resource.tf
will be rendered for every resource on their documentation page, e.g. https://registry.terraform.io/providers/nobl9/nobl9/latest/docs/resources/slo.
-
Update (if needed)
"description"
field for a resource, e.g. innobl9/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.
You need to have Go installed on your machine, then run:
go generate