From 2e77ef163bde4ec05dadc4f693e2153c0853c7d0 Mon Sep 17 00:00:00 2001 From: milldr Date: Thu, 1 Aug 2024 11:24:02 -0400 Subject: [PATCH] Update anchor tags for inputs and outputs in Terraform docs --- scripts/docs-collator/templates/modules/terraform-docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/docs-collator/templates/modules/terraform-docs.yml b/scripts/docs-collator/templates/modules/terraform-docs.yml index f3d29d551..85a7886d8 100644 --- a/scripts/docs-collator/templates/modules/terraform-docs.yml +++ b/scripts/docs-collator/templates/modules/terraform-docs.yml @@ -74,7 +74,7 @@ content: |-
{{- range .Module.Inputs }} {{- if and (not (has .Name $context_variables)) .Required }} -
`{{ .Name }}`{{ if lt (len (split "\n" (tostring .Type))) 2 }} (`{{ tostring .Type }}`){{end}} required{{ if contains "OBSOLETE: " (tostring .Description) }} OBSOLETE{{ end }}
+
`{{ .Name }}`{{ if lt (len (split "\n" (tostring .Type))) 2 }} (`{{ tostring .Type }}`){{end}} required{{ if contains "OBSOLETE: " (tostring .Description) }} OBSOLETE{{ end }}
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}} {{- range $lines }} @@ -143,7 +143,7 @@ content: |-
{{- range .Module.Inputs }} {{- if and (has .Name $context_variables) }} -
`{{ .Name }}`{{ if lt (len (split "\n" (tostring .Type))) 2 }} (`{{ tostring .Type }}`){{end}} {{ ternary .Required "required" "optional" }}{{ if contains "OBSOLETE: " (tostring .Description) }} OBSOLETE{{ end }}
+
`{{ .Name }}`{{ if lt (len (split "\n" (tostring .Type))) 2 }} (`{{ tostring .Type }}`){{end}} {{ ternary .Required "required" "optional" }}{{ if contains "OBSOLETE: " (tostring .Description) }} OBSOLETE{{ end }}
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}} {{- range $lines }} @@ -176,7 +176,7 @@ content: |-
{{- range .Module.Outputs }} -
`{{ .Name }}`{{ if contains "OBSOLETE: " (tostring .Description) }} OBSOLETE{{ end }}
+
`{{ .Name }}`{{ if contains "OBSOLETE: " (tostring .Description) }} OBSOLETE{{ end }}
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "" | default "n/a" ) -1 -}} {{- range $lines }}