Skip to content

Commit 0d3caca

Browse files
authored
Merge branch 'master' into staging
2 parents ff76ae8 + 54b349f commit 0d3caca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

scripts/docs-collator/templates/github-actions/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{- defineDatasource "config" .Env.README_YAML | regexp.Replace ".*" "" -}}
2-
{{- defineDatasource "includes" .Env.README_INCLUDES | regexp.Replace ".*" "" -}}
1+
{{- defineDatasource "config" .Env.README_YAML -}}
2+
{{- defineDatasource "includes" (env.Getenv "README_INCLUDES") -}}
33
{{- $deprecated := has (ds "config") "deprecated" -}}
44
{{- $fullName := (ds "config").name -}}
55
{{- $shortName := (index ($fullName | strings.SplitN "-" 3) 2) -}}

scripts/docs-collator/templates/modules/readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{- defineDatasource "config" .Env.README_YAML | regexp.Replace ".*" "" -}}
2-
{{- defineDatasource "includes" .Env.README_INCLUDES | regexp.Replace ".*" "" -}}
1+
{{- defineDatasource "config" .Env.README_YAML -}}
2+
{{- defineDatasource "readmeIncludesDir" .Env.README_INCLUDES -}}
33
{{- $deprecated := has (ds "config") "deprecated" -}}
44
{{- $fullModuleName := (ds "config").name -}}
55
{{- $shortModuleName := (index ($fullModuleName | strings.SplitN "-" 3) 2) -}}
@@ -18,6 +18,7 @@ tags:
1818
custom_edit_url: https://github.com/cloudposse/{{ $fullModuleName }}/edit/main/README.md
1919
---
2020

21+
2122
# Module: `{{ $shortModuleName }}`
2223

2324
{{- if $deprecated }}

0 commit comments

Comments
 (0)