diff --git a/atmos.README.md.submodule.gotmpl b/atmos.README.md.submodule.gotmpl new file mode 100644 index 00000000..bfdc2fb9 --- /dev/null +++ b/atmos.README.md.submodule.gotmpl @@ -0,0 +1,18 @@ +{{- defineDatasource "config" .Env.README_YAML -}} +{{- $readme_file := (ds "config").readme | file.Read -}} + +{{- $parts := strings.Split "" $readme_file -}} + +{{- index $parts 0 -}} + +{{ if has (ds "config") "terraform_docs" }} + + +{{ (ds "config").terraform_docs }} + + +{{ end }} + +{{- $parts := strings.Split "" $readme_file -}} + +{{- index $parts 1 -}}