Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please tell me default templates #111

Open
hkak03key opened this issue Feb 20, 2022 · 1 comment
Open

please tell me default templates #111

hkak03key opened this issue Feb 20, 2022 · 1 comment

Comments

@hkak03key
Copy link

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 hkak03key changed the title I need default templates please tell me default templates Feb 20, 2022
@jacobbednarz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants