Skip to content

Commit

Permalink
Restructuring content (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Dec 6, 2022
1 parent 76cb83c commit eb37997
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 25 deletions.
46 changes: 25 additions & 21 deletions website/data/plugin-framework-nav-data.json
Expand Up @@ -18,7 +18,7 @@
"path": "getting-started/core-concepts"
},
{
"title": "Learn Collection",
"title": "Tutorials",
"href": "https://learn.hashicorp.com/collections/terraform/providers-plugin-framework?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS"
}
]
Expand Down Expand Up @@ -124,29 +124,33 @@
{
"title": "Schemas",
"path": "handling-data/schemas"
},
{
"title": "Attributes",
"path": "handling-data/attributes"
},
{
"title": "Blocks",
"path": "handling-data/blocks"
},
{
"title": "Paths",
"path": "handling-data/paths"
},
{
"title": "Path Expressions",
"path": "handling-data/path-expressions"
},
{
"title": "Accessing Terraform Data",
"path": "handling-data/accessing-values"
},
{
"title": "Writing Data",
"path": "handling-data/writing-state"
}
]
},
{
"title": "Paths",
"path": "paths"
},
{
"title": "Path Expressions",
"path": "path-expressions"
},
{
"title": "Attribute Types",
"path": "types"
},
{
"title": "Accessing State, Config, and Plan",
"path": "accessing-values"
},
{
"title": "Writing State",
"path": "writing-state"
},
{
"title": "Returning Errors and Warnings",
"path": "diagnostics"
Expand Down
Expand Up @@ -10,7 +10,7 @@ Schemas specify the fields that a provider, resource or data source configuratio

The fields defined within the schema are either attributes or blocks.

Attributes and blocks within Terraform configuration have different syntax, either using, or omitting and equals sign in their definition, respectively.
Attributes and blocks within Terraform configuration have different syntax, either using, or omitting an equals sign in their definition, respectively.

Providers, resources and data sources have their own type-specific schema, which use type-specific attributes and blocks.

Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions website/docs/plugin/framework/handling-data/blocks.mdx
@@ -0,0 +1,7 @@
---
page_title: 'Plugin Development - Framework: Handling Data - Blocks'
description: >-
Blocks.
---

# Blocks
Expand Up @@ -9,7 +9,7 @@ description: >-

-> **Note:** The Plugin Framework is in beta.

An exact location within a [schema](/plugin/framework/schemas) or schema-based data such as [`tfsdk.Config`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#Config), [`tfsdk.Plan`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#Plan), or [`tfsdk.State`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#State), is referred to as a path.
An exact location within a [schema](/plugin/framework/handling-data/schemas) or schema-based data such as [`tfsdk.Config`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#Config), [`tfsdk.Plan`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#Plan), or [`tfsdk.State`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#State), is referred to as a path.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion website/docs/plugin/framework/handling-data/schemas.mdx
Expand Up @@ -74,7 +74,7 @@ The value is the implementation details for the attribute.

-> Only supported when using protocol version 6.

Nested attributes enable provider developers to define objects of attributes which fully support attribute behaviors and practitioners to configure these directly using [expressions](/language/expressions).
[Nested attributes](/plugin/framework/getting-started/core-concepts#nested-attributes) enable provider developers to define objects of attributes which fully support attribute behaviors and practitioners to configure these directly using [expressions](/language/expressions).

#### SingleNestedAttribute

Expand Down
@@ -1,7 +1,7 @@
---
page_title: 'Plugin Development - Framework: Handling Data - Terraform Concepts'
description: >-
Terraform concepts.
Terraform concepts.
---

# Terraform Concepts

0 comments on commit eb37997

Please sign in to comment.