Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set up resource page and reference area #36617

Open
wants to merge 19 commits into
base: docs/reference-rewrites-phrase-1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 38 additions & 95 deletions website/data/language-nav-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,39 +71,9 @@
]
},
{
"title": "Resources",
"title": "Create and manage resources",
"routes": [
{ "title": "Overview", "path": "resources" },
{ "title": "Resource Blocks", "path": "resources/syntax" },
{
"title": "Resource Behavior",
"path": "resources/behavior"
},
{
"title": "Meta-Arguments",
"routes": [
{
"title": "<code>depends_on</code>",
"href": "/language/meta-arguments/depends_on"
},
{
"title": "<code>count</code>",
"href": "/language/meta-arguments/count"
},
{
"title": "<code>for_each</code>",
"href": "/language/meta-arguments/for_each"
},
{
"title": "<code>provider</code>",
"href": "/language/meta-arguments/resource-provider"
},
{
"title": "<code>lifecycle</code>",
"href": "/language/meta-arguments/lifecycle"
}
]
},
{
"title": "Provisioners",
"routes": [
Expand Down Expand Up @@ -134,7 +104,7 @@
]
},
{
"title": "The <code>terraform_data</code> Resource Type",
"title": "Implement the standard resource lifecycle",
"path": "resources/terraform-data"
},
{
Expand All @@ -157,37 +127,6 @@
]
},
{ "title": "Data Sources", "path": "data-sources" },
{
"title": "Meta-Arguments",
"hidden": true,
"routes": [
{
"title": "<code>count</code>",
"path": "meta-arguments/count"
},
{
"title": "<code>depends_on</code>",
"path": "meta-arguments/depends_on"
},
{
"title": "<code>for_each</code>",
"path": "meta-arguments/for_each"
},
{
"title": "<code>lifecycle</code>",
"path": "meta-arguments/lifecycle"
},
{
"title": "<code>providers</code>",
"path": "meta-arguments/module-providers"
},
{
"title": "<code>provider</code>",
"path": "meta-arguments/resource-provider"
}
]
},

{
"title": "Providers",
"routes": [
Expand Down Expand Up @@ -222,27 +161,6 @@

{ "title": "Module Blocks", "path": "modules/syntax" },
{ "title": "Module Sources", "path": "modules/sources" },
{
"title": "Meta-Arguments",
"routes": [
{
"title": "<code>providers</code>",
"href": "/language/meta-arguments/module-providers"
},
{
"title": "<code>depends_on</code>",
"href": "/language/meta-arguments/depends_on"
},
{
"title": "<code>count</code>",
"href": "/language/meta-arguments/count"
},
{
"title": "<code>for_each</code>",
"href": "/language/meta-arguments/for_each"
}
]
},
{
"title": "Module Development",
"routes": [
Expand Down Expand Up @@ -271,14 +189,6 @@
}
]
},
{
"title": "Moved block",
"href": "/terraform/language/block/moved"
},
{
"title": "Terraform block",
"href": "/terraform/language/block/terraform"
},
{
"title": "Backend block",
"routes": [
Expand Down Expand Up @@ -1114,15 +1024,48 @@
"title": "Configuration blocks",
"routes": [
{
"title": "Moved block",
"path": "block/moved"
"title": "resource",
"path": "block/resource"
},
{
"title": "Terraform block",
"title": "moved",
"path": "block/moved"
},
{
"title": "terraform",
"path": "block/terraform"
}
]
},
{
"title": "Meta-arguments",
"routes": [
{
"title": "<code>count</code>",
"path": "meta-arguments/count"
},
{
"title": "<code>depends_on</code>",
"path": "meta-arguments/depends_on"
},
{
"title": "<code>for_each</code>",
"path": "meta-arguments/for_each"
},
{
"title": "<code>lifecycle</code>",
"path": "meta-arguments/lifecycle"
},
{
"title": "<code>provider</code>",
"path": "meta-arguments/resource-provider"
},
{
"title": "<code>providers</code>",
"path": "meta-arguments/module-providers"
}
]
},
{ "divider": true },
{ "title": "Terraform Internals", "href": "/internals" }
]
2 changes: 1 addition & 1 deletion website/docs/cli/commands/state/rm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: >-
The `terraform state rm` command removes the binding to an existing remote object without first destroying it. The remote object continues
to exist but is no longer managed by Terraform.

Instead of using the `terraform state rm` command, you can use `removed` blocks to remove resources. You can remove more than one resource at a time, and you can review removals as part of your normal plan and apply workflow. [Learn more about using `removed` blocks with resources](/terraform/language/resources/syntax#removing-resources) and [using `removed` blocks with modules](/terraform/language/modules/syntax#removing-modules).
Instead of using the `terraform state rm` command, you can use `removed` blocks to remove resources. You can remove more than one resource at a time, and you can review removals as part of your normal plan and apply workflow. Refer to the [`removed` block reference](/terraform/language/block/removed) for additional information about removing resources. Refer to [Removing modules](/terraform/language/modules/syntax#removing-modules) for information about removing modules.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We won't have a removed block reference yet though, right? So the /terraform/language/block/removed link won't work?


## Usage

Expand Down
Loading
Loading