NEW FEATURES:
- cmd/tfplugindocs: Additional CLI argument
ignore-deprecatedallows to skip deprecated resources and data-sources when generating docs (#154).
BUG FIXES:
- cmd/tfplugindocs: Pass through filepaths for
examplesandimportto allow use ofHasExampleandHasImporttemplate helpers in custom templates (#155).
BUG FIXES:
- cmd/tfplugindocs: Do not error when schema not found, issue log warning (#151).
BUG FIXES:
- cmd/tfplugindocs: Allow single word resources to use templates (#147).
- cmd/tfplugindocs: Pass in correct provider name for data-source and resource schema lookup when overidden with
rendered-provider-nameflag (#148).
ENHANCEMENTS:
- cmd/tfplugindocs: Expose
RenderedProviderNameto templates (#149).
NEW FEATURES:
- cmd/tfplugindocs: Additional CLI arguments
provider-name,rendered-provider-name,rendered-website-dir,examples-dir,website-temp-dir, andwebsite-source-dir. These allow to further customise generated doc (#95).
ENHANCEMENTS:
- cmd/tfplugindocs: Implemented usage output (i.e.
--help) forgenerateandvalidatecommands (#95).
BUG FIXES:
- cmd/tfplugindocs: Updated version of hc-install in response to change in HashiCorp Release API sending back a different
Content-Typeheader. This was causing failures when the tool attempted to install Terraform. (#135)
ENHANCEMENTS:
- template functions: Added
splitto help separating a string into substrings (#70).
BUG FIXES:
- cmd/tflugindocs: Support for schemas containing empty nested attributes or empty nested blocks (#99, #134).
- schemamd: Attribute
IDis considered "Read Only", unless there's a description defined, in which case it's handled like any other attribute in the schema (#46, #134).
ENHANCEMENTS:
- cmd/tfplugindocs: Use existing Terraform CLI binary if available on PATH, otherwise download latest Terraform CLI binary (hashicorp#124).
- cmd/tfplugindocs: Added
tf-versionflag for specifying Terraform CLI binary version to download, superseding the PATH lookup (hashicorp#124).
BUG FIXES:
- cmd/tfplugindocs: Swapped
.Typeand.Nameresource and data source template fields so they correctly align (hashicorp#44). - schemamd: Switched attribute name rendering from bold text to code blocks so the Terraform Registry treats them as anchor links (hashicorp#59).
NOTES:
- dependencies:
github.com/hashicorp/terraform-execdependency has been updated to matchterraform-plugin-sdk, which replaced the removedtfinstallpackage withgithub.com/hashicorp/hc-install. This will resolve Go build errors for projects that import bothterraform-plugin-docsandterraform-plugin-sdk.