Files
terraform-docs/format/templates/markdown_document_providers.tmpl
Khosrow Moossavi bb109711a1 Deprecate Settings and Options in favor of Config
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-09-28 15:47:27 -04:00

17 lines
566 B
Cheetah

{{- if .Config.Sections.Providers -}}
{{- if not .Module.Providers -}}
{{- if not .Config.Settings.HideEmpty -}}
{{- indent 0 "#" }} Providers
No providers.
{{ end }}
{{ else }}
{{- indent 0 "#" }} Providers
The following providers are used by this module:
{{- range .Module.Providers }}
{{ $version := ternary (tostring .Version) (printf " (%s)" .Version) "" }}
- {{ anchorNameMarkdown "provider" .FullName }}{{ $version }}
{{- end }}
{{ end }}
{{ end -}}