Skip to content

Commit

Permalink
* fix doc by using templates (#1105)
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Gebauer <34121980+austingebauer@users.noreply.github.com>
  • Loading branch information
maxcoulombe and austingebauer authored Sep 27, 2024
1 parent 4ed1822 commit 30cf454
Show file tree
Hide file tree
Showing 12 changed files with 132 additions and 18 deletions.
5 changes: 2 additions & 3 deletions docs/resources/vault_secrets_dynamic_secret.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "hcp_vault_secrets_dynamic_secret Resource - terraform-provider-hcp"
subcategory: ""
page_title: "Resource hcp_vault_secrets_dynamic_secret - terraform-provider-hcp"
subcategory: "HCP Vault Secrets"
description: |-
The Vault Secrets dynamic secret resource manages a dynamic secret configuration.
---
Expand Down
5 changes: 2 additions & 3 deletions docs/resources/vault_secrets_integration_aws.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "hcp_vault_secrets_integration_aws Resource - terraform-provider-hcp"
subcategory: ""
page_title: "Resource hcp_vault_secrets_integration_aws - terraform-provider-hcp"
subcategory: "HCP Vault Secrets"
description: |-
The Vault Secrets AWS integration resource manages an AWS integration.
---
Expand Down
5 changes: 2 additions & 3 deletions docs/resources/vault_secrets_integration_gcp.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "hcp_vault_secrets_integration_gcp Resource - terraform-provider-hcp"
subcategory: ""
page_title: "Resource hcp_vault_secrets_integration_gcp - terraform-provider-hcp"
subcategory: "HCP Vault Secrets"
description: |-
The Vault Secrets GCP integration resource manages an GCP integration.
---
Expand Down
5 changes: 2 additions & 3 deletions docs/resources/vault_secrets_integration_mongodbatlas.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "hcp_vault_secrets_integration_mongodbatlas Resource - terraform-provider-hcp"
subcategory: ""
page_title: "Resource hcp_vault_secrets_integration_mongodbatlas - terraform-provider-hcp"
subcategory: "HCP Vault Secrets"
description: |-
The Vault Secrets MongoDB Atlas integration resource manages an MongoDB Atlas integration.
---
Expand Down
5 changes: 2 additions & 3 deletions docs/resources/vault_secrets_integration_twilio.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "hcp_vault_secrets_integration_twilio Resource - terraform-provider-hcp"
subcategory: ""
page_title: "Resource hcp_vault_secrets_integration_twilio - terraform-provider-hcp"
subcategory: "HCP Vault Secrets"
description: |-
The Vault Secrets Twilio integration resource manages a Twilio integration.
---
Expand Down
5 changes: 2 additions & 3 deletions docs/resources/vault_secrets_rotating_secret.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "hcp_vault_secrets_rotating_secret Resource - terraform-provider-hcp"
subcategory: ""
page_title: "Resource hcp_vault_secrets_rotating_secret - terraform-provider-hcp"
subcategory: "HCP Vault Secrets"
description: |-
The Vault Secrets rotating secret resource manages a rotating secret configuration.
---
Expand Down
16 changes: 16 additions & 0 deletions templates/resources/vault_secrets_dynamic_secret.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
subcategory: "HCP Vault Secrets"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile "examples/resources/hcp_vault_secrets_dynamic_secret/resource.tf" }}

{{ .SchemaMarkdown | trimspace }}
22 changes: 22 additions & 0 deletions templates/resources/vault_secrets_integration_aws.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
subcategory: "HCP Vault Secrets"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile "examples/resources/hcp_vault_secrets_integration_aws/resource.tf" }}

{{ .SchemaMarkdown | trimspace }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" "examples/resources/hcp_vault_secrets_integration_aws/import.sh" }}
22 changes: 22 additions & 0 deletions templates/resources/vault_secrets_integration_gcp.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
subcategory: "HCP Vault Secrets"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile "examples/resources/hcp_vault_secrets_integration_gcp/resource.tf" }}

{{ .SchemaMarkdown | trimspace }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" "examples/resources/hcp_vault_secrets_integration_gcp/import.sh" }}
22 changes: 22 additions & 0 deletions templates/resources/vault_secrets_integration_mongodbatlas.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
subcategory: "HCP Vault Secrets"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile "examples/resources/hcp_vault_secrets_integration_mongodbatlas/resource.tf" }}

{{ .SchemaMarkdown | trimspace }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" "examples/resources/hcp_vault_secrets_integration_mongodbatlas/import.sh" }}
22 changes: 22 additions & 0 deletions templates/resources/vault_secrets_integration_twilio.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
subcategory: "HCP Vault Secrets"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile "examples/resources/hcp_vault_secrets_integration_twilio/resource.tf" }}

{{ .SchemaMarkdown | trimspace }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" "examples/resources/hcp_vault_secrets_integration_twilio/import.sh" }}
16 changes: 16 additions & 0 deletions templates/resources/vault_secrets_rotating_secret.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
subcategory: "HCP Vault Secrets"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile "examples/resources/hcp_vault_secrets_rotating_secret/resource.tf" }}

{{ .SchemaMarkdown | trimspace }}

0 comments on commit 30cf454

Please sign in to comment.