terraform-plugin-docs
terraform-plugin-docs copied to clipboard
please tell me default templates
Background
I have created some terraform provider, and it is need to create document so using this and modify but I have a hard time reproducing default.
I have copy and paste from template.go but something wrong...for example, not output Example Usage on index.md.
(What is {{ if .HasExample -}} ...?)
I need...
- how to reproduce default
- default templates on
(this repo)/templates/* - documentation special variables/functions
Thank you.
I have copy and paste from template.go but something wrong...for example, not output Example Usage on index.md. (What is
{{ if .HasExample -}}...?)
this part is a bug that I have addressed in #155.
how to reproduce default
these are found at https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go#L213-L261
the remainder of your questions may be to be covered by #146.