From dbba04521c813113cf66371367d88397034f9d82 Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Fri, 23 Aug 2024 16:41:50 -0700 Subject: [PATCH 1/2] Schema header translates to Configuration Reference --- pkg/tfgen/installation_docs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/tfgen/installation_docs.go b/pkg/tfgen/installation_docs.go index 56b968f05..314fc8e66 100644 --- a/pkg/tfgen/installation_docs.go +++ b/pkg/tfgen/installation_docs.go @@ -135,6 +135,9 @@ func applyEditRules(contentBytes []byte, docFile string, g *Generator) ([]byte, `The following configuration inputs are supported`), reReplace(`Argument Reference`, `Configuration Reference`), + reReplace(`Schema`, + `Configuration Reference`), + reReplace(`block contains the following arguments`, `input has the following nested fields`), ) From af6ba7a76b7d9df6818fd5bdf7a8d7c55a6a3883 Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Fri, 23 Aug 2024 17:25:37 -0700 Subject: [PATCH 2/2] By default, remove the ### Optional header --- pkg/tfgen/installation_docs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tfgen/installation_docs.go b/pkg/tfgen/installation_docs.go index 314fc8e66..b7db2c4a5 100644 --- a/pkg/tfgen/installation_docs.go +++ b/pkg/tfgen/installation_docs.go @@ -137,7 +137,7 @@ func applyEditRules(contentBytes []byte, docFile string, g *Generator) ([]byte, `Configuration Reference`), reReplace(`Schema`, `Configuration Reference`), - + reReplace("### Optional\n", ""), reReplace(`block contains the following arguments`, `input has the following nested fields`), )