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:
Nick Fagerlund 2019-01-16 15:41:36 -08:00 committed by Nick Fagerlund
parent 11cfdf3b67
commit a9bcc0fe06
16 changed files with 45 additions and 45 deletions

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Data Sources"
sidebar_current: "docs-config-data-sources"
sidebar_current: "docs-conf-old-data-sources"
description: |-
Data sources allow data to be fetched or computed for use elsewhere in Terraform configuration.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Environment Variables"
sidebar_current: "docs-config-environment-variables"
sidebar_current: "docs-conf-old-environment-variables"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuration"
sidebar_current: "docs-config"
sidebar_current: "docs-conf-old"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Interpolation Syntax"
sidebar_current: "docs-config-interpolation"
sidebar_current: "docs-conf-old-interpolation"
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}`.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Load Order and Semantics"
sidebar_current: "docs-config-load"
sidebar_current: "docs-conf-old-load"
description: |-
When invoking any command that loads the Terraform configuration, Terraform loads all configuration files within the directory specified in alphabetical order.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Local Values"
sidebar_current: "docs-config-locals"
sidebar_current: "docs-conf-old-locals"
description: |-
Local values assign a name to an expression that can then be used multiple times
within a module.

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Modules"
sidebar_current: "docs-config-modules"
sidebar_current: "docs-conf-old-modules"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Outputs"
sidebar_current: "docs-config-outputs"
sidebar_current: "docs-conf-old-outputs"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Overrides"
sidebar_current: "docs-config-override"
sidebar_current: "docs-conf-old-override"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Providers"
sidebar_current: "docs-config-providers"
sidebar_current: "docs-conf-old-providers"
description: |-
Providers are responsible in Terraform for managing the lifecycle of a resource: create, read, update, delete.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Resources"
sidebar_current: "docs-config-resources"
sidebar_current: "docs-conf-old-resources"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuration Syntax"
sidebar_current: "docs-config-syntax"
sidebar_current: "docs-conf-old-syntax"
description: |-
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.

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Terraform Push"
sidebar_current: "docs-config-push"
sidebar_current: "docs-conf-old-push"
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.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Terraform"
sidebar_current: "docs-config-terraform"
sidebar_current: "docs-conf-old-terraform"
description: |-
The `terraform` configuration section is used to configure Terraform itself, such as requiring a minimum Terraform version to execute a configuration.
---

View File

@ -1,7 +1,7 @@
---
layout: "docs"
page_title: "Configuring Input Variables"
sidebar_current: "docs-config-variables"
sidebar_current: "docs-conf-old-variables"
description: |-
Input variables are parameters for Terraform modules.
This page covers configuration syntax for variables.

View File

@ -68,63 +68,63 @@
</ul>
</li>
<li<%= sidebar_current("docs-config") %>>
<a href="/docs/configuration/index.html">Configuration</a>
<li<%= sidebar_current("docs-conf-old") %>>
<a href="/docs/configuration-0-11/index.html">v0.11 Configuration Language</a>
<ul class="nav">
<li<%= sidebar_current("docs-config-load") %>>
<a href="/docs/configuration/load.html">Load Order and Semantics</a>
<li<%= sidebar_current("docs-conf-old-load") %>>
<a href="/docs/configuration-0-11/load.html">Load Order and Semantics</a>
</li>
<li<%= sidebar_current("docs-config-syntax") %>>
<a href="/docs/configuration/syntax.html">Configuration Syntax</a>
<li<%= sidebar_current("docs-conf-old-syntax") %>>
<a href="/docs/configuration-0-11/syntax.html">Configuration Syntax</a>
</li>
<li<%= sidebar_current("docs-config-interpolation") %>>
<a href="/docs/configuration/interpolation.html">Interpolation Syntax</a>
<li<%= sidebar_current("docs-conf-old-interpolation") %>>
<a href="/docs/configuration-0-11/interpolation.html">Interpolation Syntax</a>
</li>
<li<%= sidebar_current("docs-config-override") %>>
<a href="/docs/configuration/override.html">Overrides</a>
<li<%= sidebar_current("docs-conf-old-override") %>>
<a href="/docs/configuration-0-11/override.html">Overrides</a>
</li>
<li<%= sidebar_current("docs-config-resources") %>>
<a href="/docs/configuration/resources.html">Resources</a>
<li<%= sidebar_current("docs-conf-old-resources") %>>
<a href="/docs/configuration-0-11/resources.html">Resources</a>
</li>
<li<%= sidebar_current("docs-config-data-sources") %>>
<a href="/docs/configuration/data-sources.html">Data Sources</a>
<li<%= sidebar_current("docs-conf-old-data-sources") %>>
<a href="/docs/configuration-0-11/data-sources.html">Data Sources</a>
</li>
<li<%= sidebar_current("docs-config-providers") %>>
<a href="/docs/configuration/providers.html">Providers</a>
<li<%= sidebar_current("docs-conf-old-providers") %>>
<a href="/docs/configuration-0-11/providers.html">Providers</a>
</li>
<li<%= sidebar_current("docs-config-variables") %>>
<a href="/docs/configuration/variables.html">Variables</a>
<li<%= sidebar_current("docs-conf-old-variables") %>>
<a href="/docs/configuration-0-11/variables.html">Variables</a>
</li>
<li<%= sidebar_current("docs-config-outputs") %>>
<a href="/docs/configuration/outputs.html">Outputs</a>
<li<%= sidebar_current("docs-conf-old-outputs") %>>
<a href="/docs/configuration-0-11/outputs.html">Outputs</a>
</li>
<li<%= sidebar_current("docs-config-locals") %>>
<a href="/docs/configuration/locals.html">Local Values</a>
<li<%= sidebar_current("docs-conf-old-locals") %>>
<a href="/docs/configuration-0-11/locals.html">Local Values</a>
</li>
<li<%= sidebar_current("docs-config-modules") %>>
<a href="/docs/configuration/modules.html">Modules</a>
<li<%= sidebar_current("docs-conf-old-modules") %>>
<a href="/docs/configuration-0-11/modules.html">Modules</a>
</li>
<li<%= sidebar_current("docs-config-terraform") %>>
<a href="/docs/configuration/terraform.html">Terraform</a>
<li<%= sidebar_current("docs-conf-old-terraform") %>>
<a href="/docs/configuration-0-11/terraform.html">Terraform</a>
</li>
<li<%= sidebar_current("docs-config-push") %>>
<a href="/docs/configuration/terraform-enterprise.html">Terraform Push (deprecated)</a>
<li<%= sidebar_current("docs-conf-old-push") %>>
<a href="/docs/configuration-0-11/terraform-enterprise.html">Terraform Push (deprecated)</a>
</li>
<li<%= sidebar_current("docs-config-environment-variables") %>>
<a href="/docs/configuration/environment-variables.html">Environment Variables</a>
<li<%= sidebar_current("docs-conf-old-environment-variables") %>>
<a href="/docs/configuration-0-11/environment-variables.html">Environment Variables</a>
</li>
</ul>
</li>