-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Terraform CLI and terraform-plugin-docs Versions
$ terraform version
Terraform v1.5.7
on darwin_arm64
$ tfplugindocs --version
tfplugindocs Version 0.18.0 from commit 4c08c0eed13b3819b4342dc0cb119b3be62305b1
Provider Code
I'm attempting to run `tfplugindocs --migrate` followed by `tfplugindocs --generate` to convert existing provider docs from hand-written to generated: https://github.com/equinix/terraform-provider-equinix
Expected Behavior
The generator creates one Markdown page per resource or data source
Actual Behavior
The generator creates two Markdown pages per resource or data source: one page has the provider name prefix in the file name and the other does not
Steps to Reproduce
- Create templates that match the documented conventional paths (for example, according to that, a template for
caller_identity
in theaws
provider would be namedaws_caller_identity.md.tmpl
) - Run
tfplugindocs --generate
I'm using tfplugindocs --migrate
to create templates from existing docs; it produces the expected templates that have the conventional path with the provider name prefix.
The generator produces files that match the template names and have the expected contents, but it also produces files without the provider name prefix that use a default template.
Note: I confirmed that if I remove the provider prefix from the template files I only get the files without the provider name prefix, but I want to get one set of generated files that has the conventional path with the provider name prefix.
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct