Skip to content

Commit

Permalink
Merge pull request #30 from HPE/fix-up-default-templates
Browse files Browse the repository at this point in the history
Fix up default templates
  • Loading branch information
eamonnotoole authored May 25, 2022
2 parents 5ecf561 + 58cab11 commit b37813a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/data-sources.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
8 changes: 8 additions & 0 deletions templates/resources.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b37813a

Please sign in to comment.