diff --git a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_generic_templates.txtar b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_generic_templates.txtar index 77cb4aa4..db1e92fc 100644 --- a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_generic_templates.txtar +++ b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_generic_templates.txtar @@ -180,8 +180,6 @@ upper: RESOURCE printf codefile: ## Import -Import is supported using the following syntax: - {{codefile "shell" "$WORK/examples/resources/scaffolding_example/import.sh"}} printf tffile: @@ -192,8 +190,6 @@ printf tffile: codefile: ## Import -Import is supported using the following syntax: - ```shell terraform import scaffolding_example.example "id-123" ``` @@ -236,8 +232,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -252,8 +246,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} @@ -332,8 +324,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -348,8 +338,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} diff --git a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_named_templates.txtar b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_named_templates.txtar index 91e2b4fa..7d508b4d 100644 --- a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_named_templates.txtar +++ b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_named_templates.txtar @@ -194,8 +194,6 @@ upper: RESOURCE printf codefile: ## Import -Import is supported using the following syntax: - {{codefile "shell" "$WORK/examples/resources/scaffolding_example/import.sh"}} printf tffile: @@ -206,8 +204,6 @@ printf tffile: codefile: ## Import -Import is supported using the following syntax: - ```shell terraform import scaffolding_example.example "id-123" ``` @@ -250,8 +246,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -266,8 +260,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} @@ -349,8 +341,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -365,8 +355,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} diff --git a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_no_templates.txtar b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_no_templates.txtar index 0f0f0731..913149c1 100644 --- a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_no_templates.txtar +++ b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_no_templates.txtar @@ -127,8 +127,6 @@ resource "scaffolding_example" "example" { ## Import -Import is supported using the following syntax: - In Terraform v1.12.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `identity` attribute, for example: ```terraform diff --git a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/null_provider_success.txtar b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/null_provider_success.txtar index 5353109f..0cadaa9f 100644 --- a/cmd/tfplugindocs/testdata/scripts/provider-build/generate/null_provider_success.txtar +++ b/cmd/tfplugindocs/testdata/scripts/provider-build/generate/null_provider_success.txtar @@ -61,8 +61,6 @@ description: |- {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} -- templates/index.md.tmpl -- @@ -112,8 +110,6 @@ description: |- {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} diff --git a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_generic_templates.txtar b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_generic_templates.txtar index 6c7f055d..20c0b852 100644 --- a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_generic_templates.txtar +++ b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_generic_templates.txtar @@ -339,8 +339,6 @@ upper: RESOURCE printf codefile: ## Import -Import is supported using the following syntax: - {{codefile "shell" "$WORK/examples/resources/scaffolding_example/import.sh"}} printf tffile: @@ -351,8 +349,6 @@ printf tffile: codefile: ## Import -Import is supported using the following syntax: - ```shell terraform import scaffolding_example.example "id-123" ``` @@ -528,8 +524,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -544,8 +538,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} @@ -666,8 +658,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -682,8 +672,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} @@ -723,8 +711,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -739,8 +725,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} diff --git a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_named_templates.txtar b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_named_templates.txtar index 3662db40..2d3e7411 100644 --- a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_named_templates.txtar +++ b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_named_templates.txtar @@ -352,8 +352,6 @@ upper: RESOURCE printf codefile: ## Import -Import is supported using the following syntax: - {{codefile "shell" "$WORK/examples/resources/scaffolding_example/import.sh"}} printf tffile: @@ -364,8 +362,6 @@ printf tffile: codefile: ## Import -Import is supported using the following syntax: - ```shell terraform import scaffolding_example.example "id-123" ``` @@ -541,8 +537,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -557,8 +551,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} @@ -682,8 +674,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -698,8 +688,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} @@ -739,8 +727,6 @@ printf codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} @@ -755,8 +741,6 @@ codefile: {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{codefile "shell" .ImportFile }} {{- end }} diff --git a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_multiple_examples.txtar b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_multiple_examples.txtar index 46186f4d..0343d777 100644 --- a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_multiple_examples.txtar +++ b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_multiple_examples.txtar @@ -625,4 +625,4 @@ resource "scaffolding_example" "example" { } } } -} \ No newline at end of file +} diff --git a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_single_example.txtar b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_single_example.txtar index fcc1c3b9..6f463050 100644 --- a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_single_example.txtar +++ b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates_single_example.txtar @@ -271,8 +271,6 @@ resource "scaffolding_example" "example" { ## Import -Import is supported using the following syntax: - In Terraform v1.12.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `identity` attribute, for example: ```terraform @@ -621,4 +619,4 @@ resource "scaffolding_example" "example" { } } } -} \ No newline at end of file +} diff --git a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/null_provider_success.txtar b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/null_provider_success.txtar index 4103ddb0..b16de8e2 100644 --- a/cmd/tfplugindocs/testdata/scripts/schema-json/generate/null_provider_success.txtar +++ b/cmd/tfplugindocs/testdata/scripts/schema-json/generate/null_provider_success.txtar @@ -56,8 +56,6 @@ description: |- {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} -- templates/index.md.tmpl -- @@ -107,8 +105,6 @@ description: |- {{ if .HasImport -}} ## Import -Import is supported using the following syntax: - {{ printf "{{codefile \"shell\" %q}}" .ImportFile }} {{- end }} diff --git a/internal/provider/template.go b/internal/provider/template.go index 618140ef..dbebd1a4 100644 --- a/internal/provider/template.go +++ b/internal/provider/template.go @@ -346,7 +346,6 @@ description: |- ## Import -Import is supported using the following syntax: {{- end }} {{- if .HasImportIdentityConfig }}