diff --git a/templates/data-sources.md.tmpl b/templates/data-sources.md.tmpl index 5ab4a97..ab12f75 100644 --- a/templates/data-sources.md.tmpl +++ b/templates/data-sources.md.tmpl @@ -5,14 +5,22 @@ description: |- {{ .Description | plainmarkdown | trimspace | prefixlines " " }} --- # {{.Name}} ({{.Type}}) + {{ .Description | trimspace }} + {{ if .HasExample -}} ## Example Usage + {{ printf "{{tffile %q}}" .ExampleFile }} {{- end }} + {{ .SchemaMarkdown | trimspace }} + {{ if .HasImport -}} + ## Import + Import is supported using the following syntax: + {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} diff --git a/templates/resources.md.tmpl b/templates/resources.md.tmpl index 5ab4a97..ab12f75 100644 --- a/templates/resources.md.tmpl +++ b/templates/resources.md.tmpl @@ -5,14 +5,22 @@ description: |- {{ .Description | plainmarkdown | trimspace | prefixlines " " }} --- # {{.Name}} ({{.Type}}) + {{ .Description | trimspace }} + {{ if .HasExample -}} ## Example Usage + {{ printf "{{tffile %q}}" .ExampleFile }} {{- end }} + {{ .SchemaMarkdown | trimspace }} + {{ if .HasImport -}} + ## Import + Import is supported using the following syntax: + {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }}