Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions atmos.README.md.submodule.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- defineDatasource "config" .Env.README_YAML -}}
{{- $readme_file := (ds "config").readme | file.Read -}}

{{- $parts := strings.Split "<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->" $readme_file -}}

{{- index $parts 0 -}}

{{ if has (ds "config") "terraform_docs" }}
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
<!-- markdownlint-disable -->
{{ (ds "config").terraform_docs }}
<!-- markdownlint-restore -->
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
{{ end }}

{{- $parts := strings.Split "<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->" $readme_file -}}

{{- index $parts 1 -}}