Skip to content

Commit

Permalink
Merge pull request hashicorp#34876 from hashicorp/WAF-110-Terraform-C…
Browse files Browse the repository at this point in the history
…ode-Style-Guide

docs: Terraform style guide
  • Loading branch information
BrianMMcClain authored Mar 28, 2024
2 parents 0fe733a + 6f2f4a5 commit df738d4
Show file tree
Hide file tree
Showing 6 changed files with 689 additions and 75 deletions.
2 changes: 1 addition & 1 deletion website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ For more details about how to update the sidebar navigation, refer to [Editing N

## Adding Redirects

You must add a redirect when you move, rename, or delete documentation pages. Refer to https://github.com/hashicorp/terraform-website#redirects for details.
You must add a redirect when you move, rename, or delete documentation pages. Refer to https://github.com/hashicorp/terraform-docs-common#redirects for details.

## Previewing Changes

Expand Down
7 changes: 5 additions & 2 deletions website/data/language-nav-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"path": "attr-as-blocks",
"hidden": true
},
{
"title": "Style Guide",
"path": "style"
},
{
"title": "Files and Directories",
"routes": [
Expand All @@ -26,8 +30,7 @@
{
"title": "JSON Configuration Syntax",
"path": "syntax/json"
},
{ "title": "Style Conventions", "path": "syntax/style" }
}
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/cli/commands/fmt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: >-

The `terraform fmt` command is used to rewrite Terraform configuration files
to a canonical format and style. This command applies a subset of
the [Terraform language style conventions](/terraform/language/syntax/style),
the [Terraform language style conventions](/terraform/language/style#syntax-conventions),
along with other minor adjustments for readability.

Other Terraform commands that generate Terraform configuration will produce
Expand Down
Loading

0 comments on commit df738d4

Please sign in to comment.