Skip to content

Commit

Permalink
fix generated docs (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedwigz authored May 9, 2022
1 parent 3834cfb commit 45a0011
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atlas/resource_atlas_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func newSchemaResource() *schema.Resource {
return &schema.Resource{
Description: "Atlas database resource manages the data schema of the database, using an HCL file describing the wanted state of the database.",
Description: "Atlas database resource manages the data schema of the database, using an HCL file describing the wanted state of the database. see https://atlasgo.io/",
// Create&Update both apply migrations
CreateContext: applySchema,
UpdateContext: applySchema,
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/schema.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "atlas_schema Resource - terraform-provider-atlas"
subcategory: ""
description: |-
Atlas database resource manages the data schema of the database, using an HCL file describing the wanted state of the database.
Atlas database resource manages the data schema of the database, using an HCL file describing the wanted state of the database. see https://atlasgo.io/
---
<!-- source: https://github.dev/hashicorp/terraform-plugin-docs/blob/main/internal/provider/template.go -->
<!-- Bug: Type and Name are switched -->
# Resource (atlas_schema)

Atlas database resource manages the data schema of the database, using an HCL file describing the wanted state of the database.
Atlas database resource manages the data schema of the database, using an HCL file describing the wanted state of the database. see https://atlasgo.io/

## Example Usage

Expand Down
2 changes: 2 additions & 0 deletions templates/resources/schema.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
Expand Down

0 comments on commit 45a0011

Please sign in to comment.