terraform-plugin-docs icon indicating copy to clipboard operation
terraform-plugin-docs copied to clipboard

please tell me default templates

Open hkak03key opened this issue 3 years ago • 1 comments

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.

hkak03key avatar Feb 20 '22 09:02 hkak03key

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.

jacobbednarz avatar Jun 20 '22 02:06 jacobbednarz