Releases: hashicorp/terraform-plugin-docs
Releases · hashicorp/terraform-plugin-docs
v0.20.1
BUG FIXES:
- validate: Fixed a bug that caused false positive validation errors for resource types that have the same name as the provider. (#419)
- generate: Fixed a bug that caused all generated resource documentation to have the same content when the provider has a resource type with the same name as the provider. (#419)
- generate: Fixed a bug that would return an error when a static file exists in both
templates
anddocs
, which will now be ignored. (#421)
v0.20.0
NOTES:
- all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#400)
FEATURES:
- generate: Add support for ephemeral resources (#415)
- migrate: Add support for ephemeral resources (#415)
- validate: Add support for ephemeral resources (#415)
BUG FIXES:
v0.19.4
v0.19.3
v0.19.2
v0.19.1
v0.19.0
BREAKING CHANGES:
- generate: the
plainmarkdown
function now removes all markdown elements/formatting to render the output as plain text (#332) - schemamd: The
schemamd
package has moved tointernal/schemamd
and can no longer be imported (#354) - functionmd: The
functionmd
package has moved tointernal/functionmd
and can no longer be imported (#354)
FEATURES:
- validate: Added support for Provider-defined Function documentation to all checks (#341)
- validate: Added
InvalidDirectoriesCheck
which checks for valid provider documentation folder structure (#341) - validate: Added
MixedDirectoriesCheck
which throws an error if both legacy documentation and registry documentation are found (#341) - validate: Added
NumberOfFilesCheck
which checks the number of provider documentation files against the registry limit (#341) - validate: Added
FileSizeCheck
which checks the provider documentation file size against the registry limit (#341) - validate: Added
FileExtensionCheck
which checks for valid provider documentation file extensions (#341) - validate: Added
FrontMatterCheck
which checks the YAML frontmatter of provider documentation for missing required fields or invalid fields (#341) - validate: Added
FileMismatchCheck
which checks the names/number of provider documentation files against the provider schema (#341)
ENHANCEMENTS:
- migrate: Added
--provider-name
flag to override the default provider name when any file names that contain provider name prefixes are removed during migration (#349)
BUG FIXES:
- migrate: use relative paths (from provider directory) instead of absolute paths for migrated code templates (#330)
- migrate: fixed a bug where documentation files with provider name prefixes were migrated to templates directory as-is, causing
generate
to create duplicate templates (#349) - generate: fixed a bug where incorrect attribute titles were being generated for certain nested schemas (#350)
v0.18.0
v0.17.0
BREAKING CHANGES:
- generate: templates using
printf
with eithercodefile
ortffile
to render code examples in markdown will need to switch to using those functions directly.
For example, switch the following template code:
{{printf "{{codefile \"shell\" %q}}" .ImportFile}}
to
{{codefile "shell" .ImportFile}}
(#300)
FEATURES:
- migrate: Added new
migrate
subcommand that migrates existing provider docs using the rendered website source directories (website/docs/
or/docs/
) to aterraform-plugin-docs
-supported templates directory. (#314)
ENHANCEMENTS:
- generate: Add
provider-schema
flag to pass in a file path to a provider schema JSON file, allowing the command to skip building the provider and calling Terraform CLI (#299)
BUG FIXES: