mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
website: Fix sidebar nav links and 'sidebar_current' IDs for 0.11 docs
Because of the different possibilities for arranging the nav sidebars, we want to make sure: - IDs for the 0.11 and 0.12 language docs have a common prefix. - That prefix is not the exact string `docs-config`. Have I mentioned before that I really dislike this prefix matching behavior.
This commit is contained in:
parent
11cfdf3b67
commit
a9bcc0fe06
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Data Sources"
|
page_title: "Configuring Data Sources"
|
||||||
sidebar_current: "docs-config-data-sources"
|
sidebar_current: "docs-conf-old-data-sources"
|
||||||
description: |-
|
description: |-
|
||||||
Data sources allow data to be fetched or computed for use elsewhere in Terraform configuration.
|
Data sources allow data to be fetched or computed for use elsewhere in Terraform configuration.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Environment Variables"
|
page_title: "Environment Variables"
|
||||||
sidebar_current: "docs-config-environment-variables"
|
sidebar_current: "docs-conf-old-environment-variables"
|
||||||
description: |-
|
description: |-
|
||||||
Terraform uses different environment variables that can be used to configure various aspects of how Terraform behaves. this section documents those variables, their potential values, and how to use them.
|
Terraform uses different environment variables that can be used to configure various aspects of how Terraform behaves. this section documents those variables, their potential values, and how to use them.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuration"
|
page_title: "Configuration"
|
||||||
sidebar_current: "docs-config"
|
sidebar_current: "docs-conf-old"
|
||||||
description: |-
|
description: |-
|
||||||
Terraform uses text files to describe infrastructure and to set variables. These text files are called Terraform _configurations_ and end in `.tf`. This section talks about the format of these files as well as how they're loaded.
|
Terraform uses text files to describe infrastructure and to set variables. These text files are called Terraform _configurations_ and end in `.tf`. This section talks about the format of these files as well as how they're loaded.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Interpolation Syntax"
|
page_title: "Interpolation Syntax"
|
||||||
sidebar_current: "docs-config-interpolation"
|
sidebar_current: "docs-conf-old-interpolation"
|
||||||
description: |-
|
description: |-
|
||||||
Embedded within strings in Terraform, whether you're using the Terraform syntax or JSON syntax, you can interpolate other values into strings. These interpolations are wrapped in `${}`, such as `${var.foo}`.
|
Embedded within strings in Terraform, whether you're using the Terraform syntax or JSON syntax, you can interpolate other values into strings. These interpolations are wrapped in `${}`, such as `${var.foo}`.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Load Order and Semantics"
|
page_title: "Load Order and Semantics"
|
||||||
sidebar_current: "docs-config-load"
|
sidebar_current: "docs-conf-old-load"
|
||||||
description: |-
|
description: |-
|
||||||
When invoking any command that loads the Terraform configuration, Terraform loads all configuration files within the directory specified in alphabetical order.
|
When invoking any command that loads the Terraform configuration, Terraform loads all configuration files within the directory specified in alphabetical order.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Local Values"
|
page_title: "Configuring Local Values"
|
||||||
sidebar_current: "docs-config-locals"
|
sidebar_current: "docs-conf-old-locals"
|
||||||
description: |-
|
description: |-
|
||||||
Local values assign a name to an expression that can then be used multiple times
|
Local values assign a name to an expression that can then be used multiple times
|
||||||
within a module.
|
within a module.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Modules"
|
page_title: "Configuring Modules"
|
||||||
sidebar_current: "docs-config-modules"
|
sidebar_current: "docs-conf-old-modules"
|
||||||
description: |-
|
description: |-
|
||||||
Modules are used in Terraform to modularize and encapsulate groups of resources in your infrastructure. For more information on modules, see the dedicated modules section.
|
Modules are used in Terraform to modularize and encapsulate groups of resources in your infrastructure. For more information on modules, see the dedicated modules section.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Outputs"
|
page_title: "Configuring Outputs"
|
||||||
sidebar_current: "docs-config-outputs"
|
sidebar_current: "docs-conf-old-outputs"
|
||||||
description: |-
|
description: |-
|
||||||
Outputs define values that will be highlighted to the user when Terraform applies, and can be queried easily using the output command. Output usage is covered in more detail in the getting started guide. This page covers configuration syntax for outputs.
|
Outputs define values that will be highlighted to the user when Terraform applies, and can be queried easily using the output command. Output usage is covered in more detail in the getting started guide. This page covers configuration syntax for outputs.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Overrides"
|
page_title: "Overrides"
|
||||||
sidebar_current: "docs-config-override"
|
sidebar_current: "docs-conf-old-override"
|
||||||
description: |-
|
description: |-
|
||||||
Terraform loads all configuration files within a directory and appends them together. Terraform also has a concept of overrides, a way to create files that are loaded last and merged into your configuration, rather than appended.
|
Terraform loads all configuration files within a directory and appends them together. Terraform also has a concept of overrides, a way to create files that are loaded last and merged into your configuration, rather than appended.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Providers"
|
page_title: "Configuring Providers"
|
||||||
sidebar_current: "docs-config-providers"
|
sidebar_current: "docs-conf-old-providers"
|
||||||
description: |-
|
description: |-
|
||||||
Providers are responsible in Terraform for managing the lifecycle of a resource: create, read, update, delete.
|
Providers are responsible in Terraform for managing the lifecycle of a resource: create, read, update, delete.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Resources"
|
page_title: "Configuring Resources"
|
||||||
sidebar_current: "docs-config-resources"
|
sidebar_current: "docs-conf-old-resources"
|
||||||
description: |-
|
description: |-
|
||||||
The most important thing you'll configure with Terraform are resources. Resources are a component of your infrastructure. It might be some low level component such as a physical server, virtual machine, or container. Or it can be a higher level component such as an email provider, DNS record, or database provider.
|
The most important thing you'll configure with Terraform are resources. Resources are a component of your infrastructure. It might be some low level component such as a physical server, virtual machine, or container. Or it can be a higher level component such as an email provider, DNS record, or database provider.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuration Syntax"
|
page_title: "Configuration Syntax"
|
||||||
sidebar_current: "docs-config-syntax"
|
sidebar_current: "docs-conf-old-syntax"
|
||||||
description: |-
|
description: |-
|
||||||
The syntax of Terraform configurations is custom. It is meant to strike a
|
The syntax of Terraform configurations is custom. It is meant to strike a
|
||||||
balance between human readable and editable as well as being machine-friendly.
|
balance between human readable and editable as well as being machine-friendly.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Terraform Push"
|
page_title: "Configuring Terraform Push"
|
||||||
sidebar_current: "docs-config-push"
|
sidebar_current: "docs-conf-old-push"
|
||||||
description: |-
|
description: |-
|
||||||
Terraform's push command was a way to interact with the legacy version of Terraform Enterprise. It is not supported in the current version of Terraform Enterprise.
|
Terraform's push command was a way to interact with the legacy version of Terraform Enterprise. It is not supported in the current version of Terraform Enterprise.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Terraform"
|
page_title: "Configuring Terraform"
|
||||||
sidebar_current: "docs-config-terraform"
|
sidebar_current: "docs-conf-old-terraform"
|
||||||
description: |-
|
description: |-
|
||||||
The `terraform` configuration section is used to configure Terraform itself, such as requiring a minimum Terraform version to execute a configuration.
|
The `terraform` configuration section is used to configure Terraform itself, such as requiring a minimum Terraform version to execute a configuration.
|
||||||
---
|
---
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: "docs"
|
layout: "docs"
|
||||||
page_title: "Configuring Input Variables"
|
page_title: "Configuring Input Variables"
|
||||||
sidebar_current: "docs-config-variables"
|
sidebar_current: "docs-conf-old-variables"
|
||||||
description: |-
|
description: |-
|
||||||
Input variables are parameters for Terraform modules.
|
Input variables are parameters for Terraform modules.
|
||||||
This page covers configuration syntax for variables.
|
This page covers configuration syntax for variables.
|
||||||
|
@ -68,63 +68,63 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config") %>>
|
<li<%= sidebar_current("docs-conf-old") %>>
|
||||||
<a href="/docs/configuration/index.html">Configuration</a>
|
<a href="/docs/configuration-0-11/index.html">v0.11 Configuration Language</a>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li<%= sidebar_current("docs-config-load") %>>
|
<li<%= sidebar_current("docs-conf-old-load") %>>
|
||||||
<a href="/docs/configuration/load.html">Load Order and Semantics</a>
|
<a href="/docs/configuration-0-11/load.html">Load Order and Semantics</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-syntax") %>>
|
<li<%= sidebar_current("docs-conf-old-syntax") %>>
|
||||||
<a href="/docs/configuration/syntax.html">Configuration Syntax</a>
|
<a href="/docs/configuration-0-11/syntax.html">Configuration Syntax</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-interpolation") %>>
|
<li<%= sidebar_current("docs-conf-old-interpolation") %>>
|
||||||
<a href="/docs/configuration/interpolation.html">Interpolation Syntax</a>
|
<a href="/docs/configuration-0-11/interpolation.html">Interpolation Syntax</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-override") %>>
|
<li<%= sidebar_current("docs-conf-old-override") %>>
|
||||||
<a href="/docs/configuration/override.html">Overrides</a>
|
<a href="/docs/configuration-0-11/override.html">Overrides</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-resources") %>>
|
<li<%= sidebar_current("docs-conf-old-resources") %>>
|
||||||
<a href="/docs/configuration/resources.html">Resources</a>
|
<a href="/docs/configuration-0-11/resources.html">Resources</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-data-sources") %>>
|
<li<%= sidebar_current("docs-conf-old-data-sources") %>>
|
||||||
<a href="/docs/configuration/data-sources.html">Data Sources</a>
|
<a href="/docs/configuration-0-11/data-sources.html">Data Sources</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-providers") %>>
|
<li<%= sidebar_current("docs-conf-old-providers") %>>
|
||||||
<a href="/docs/configuration/providers.html">Providers</a>
|
<a href="/docs/configuration-0-11/providers.html">Providers</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-variables") %>>
|
<li<%= sidebar_current("docs-conf-old-variables") %>>
|
||||||
<a href="/docs/configuration/variables.html">Variables</a>
|
<a href="/docs/configuration-0-11/variables.html">Variables</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-outputs") %>>
|
<li<%= sidebar_current("docs-conf-old-outputs") %>>
|
||||||
<a href="/docs/configuration/outputs.html">Outputs</a>
|
<a href="/docs/configuration-0-11/outputs.html">Outputs</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-locals") %>>
|
<li<%= sidebar_current("docs-conf-old-locals") %>>
|
||||||
<a href="/docs/configuration/locals.html">Local Values</a>
|
<a href="/docs/configuration-0-11/locals.html">Local Values</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-modules") %>>
|
<li<%= sidebar_current("docs-conf-old-modules") %>>
|
||||||
<a href="/docs/configuration/modules.html">Modules</a>
|
<a href="/docs/configuration-0-11/modules.html">Modules</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-terraform") %>>
|
<li<%= sidebar_current("docs-conf-old-terraform") %>>
|
||||||
<a href="/docs/configuration/terraform.html">Terraform</a>
|
<a href="/docs/configuration-0-11/terraform.html">Terraform</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-push") %>>
|
<li<%= sidebar_current("docs-conf-old-push") %>>
|
||||||
<a href="/docs/configuration/terraform-enterprise.html">Terraform Push (deprecated)</a>
|
<a href="/docs/configuration-0-11/terraform-enterprise.html">Terraform Push (deprecated)</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-config-environment-variables") %>>
|
<li<%= sidebar_current("docs-conf-old-environment-variables") %>>
|
||||||
<a href="/docs/configuration/environment-variables.html">Environment Variables</a>
|
<a href="/docs/configuration-0-11/environment-variables.html">Environment Variables</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user