Giter VIP home page Giter VIP logo

terraform-docs-common's Introduction

terraform-docs-common

Documentation for HCP Terraform and other Terraform-related documentation:

Contributions Welcome!

If you find a typo or you feel like you can improve the HTML, CSS, or JavaScript, we welcome contributions. Feel free to open issues or pull requests like any normal GitHub project, and we'll merge it in ๐Ÿš€

Where the Docs Live

Subpath Repository
/cdktf terraform-cdk
/cli terraform
/cloud-docs terraform-docs-common
/cloud-docs/agents terraform-docs-agents
/configuration terraform
/docs terraform
/enterprise Internal repository
/guides terraform
/internals terraform
/intro terraform
/language terraform
/plugin terraform-docs-common
/plugin/framework terraform-plugin-framework
/plugin/log terraform-plugin-log
/plugin/mux terraform-plugin-mux
/plugin/sdkv2 terraform-plugin-sdk
/registry terraform-docs-common

Running the Site Locally

Using Docker

If you wish to run the site in a container, you can run the site locally via make.

  • make website
    • This command will pull and run the latest website container.
    • This includes live reload which will load your changes as you make them.
  • make website/local
    • This command will run the website locally using a locally built image
    • This includes live reload which will load your changes as you make them.
  • make website/build-local
    • This command will build a local image of the website from hashicorp/dev-portal.git.

...and then visit http://localhost:3000. There's no need to re-run make website each time the site is run, only the first time.

Editing Markdown Content

Documentation content is written in Markdown and you'll find all files listed under the /content directory.

To create a new page with Markdown, create a file ending in .mdx in a website/docs/<subdirectory>. The path in the content directory will be the URL route. For example, website/docs/docs/hello.mdx will be served from the /docs/hello URL.

Important: Files and directories will only be rendered and published to the website if they are included in sidebar data. Any file not included in sidebar data will not be rendered or published.

This file can be standard Markdown and also supports YAML frontmatter. YAML frontmatter is optional, there are defaults for all keys.

---
title: "My Title"
description: "A thorough, yet succinct description of the page's contents"
---

The significant keys in the YAML frontmatter are:

  • title (string) - This is the title of the page that will be set in the HTML title.
  • description (string) - This is a description of the page that will be set in the HTML description.

โš ๏ธ If there is a need for a /api/* url on this website, the url will be changed to /api-docs/*, as the api folder is reserved by next.js.

Validating Content

Content changes are automatically validated against a set of rules as part of the pull request process. If you want to run these checks locally to validate your content before committing your changes, you can run the following command:

npm run content-check

If the validation fails, actionable error messages will be displayed to help you address detected issues.

Creating New Pages

There is currently a small bug with new page creation - if you create a new page and link it up via subnav data while the server is running, it will report an error saying the page was not found. This can be resolved by restarting the server.

Markdown Enhancements

There are several custom markdown plugins that are available by default that enhance standard markdown to fit our use cases. This set of plugins introduces a couple instances of custom syntax, and a couple specific pitfalls that are not present by default with markdown, detailed below:

  • If you see the symbols ~>, ->, =>, or !>, these represent custom alerts. These render as colored boxes to draw the user's attention to some type of aside.

  • If you see @include '/some/path.mdx', this is a markdown include. It's worth noting as well that all includes resolve from website/content/partials by default, and that changes to partials will not live-reload the website.

  • If you see # Headline ((#slug)), this is an example of an anchor link alias. It adds an extra permalink to a headline for compatibility and is removed from the output.

  • Due to automatically generated permalinks, any text changes to headlines or list items that begin with inline code can and will break existing permalinks. Be very cautious when changing either of these two text items.

    Headlines are fairly self-explanatory, but here's an example of how to list items that begin with inline code look.

    - this is a normal list item
    - `this` is a list item that begins with inline code

    Its worth noting that only the inline code at the beginning of the list item will cause problems if changed. So if you changed the above markup to...

    - lsdhfhksdjf
    - `this` jsdhfkdsjhkdsfjh

    ...while it perhaps would not be an improved user experience, no links would break because of it. The best approach is to avoid changing headlines and inline code at the start of a list item. If you must change one of these items, make sure to tag someone from the digital marketing development team on your pull request, they will help to ensure as much compatibility as possible.

Custom Components

A number of custom mdx components are available for use within any .mdx file. If you have questions about custom components, or have a request for a new custom component, please reach out to @hashicorp/digital-marketing.

Syntax Highlighting

When using fenced code blocks, the recommendation is to tag the code block with a language so that it can be syntax highlighted. For example:

```
// BAD: Code block with no language tag
```

```javascript
// GOOD: Code block with a language tag
```

Check out the supported languages list for the syntax highlighter we use if you want to double check the language name.

It is also worth noting specifically that if you are using a code block that is an example of a terminal command, the correct language tag is shell-session. For example:

๐ŸšซBAD: Using shell, sh, bash, or plaintext to represent a terminal command

```shell
$ terraform apply
```

โœ…GOOD: Using shell-session to represent a terminal command

```shell-session
$ terraform apply
```

Editing Navigation Sidebars

The structure of the sidebars are controlled by files in the /data directory. For example, data/docs-nav-data.json controls the docs sidebar. Within the data folder, any file with -nav-data after it controls the navigation for the given section.

The sidebar uses a simple recursive data structure to represent files and directories. The sidebar is meant to reflect the structure of the docs within the filesystem while also allowing custom ordering. Let's look at an example. First, here's our example folder structure:

.
โ”œโ”€โ”€ docs
โ”‚ย ย  โ””โ”€โ”€ directory
โ”‚ย ย      โ”œโ”€โ”€ index.mdx
โ”‚ย ย      โ”œโ”€โ”€ file.mdx
โ”‚ย ย      โ”œโ”€โ”€ another-file.mdx
โ”‚ย ย      โ””โ”€โ”€ nested-directory
โ”‚ย ย          โ”œโ”€โ”€ index.mdx
โ”‚ย ย          โ””โ”€โ”€ nested-file.mdx

Here's how this folder structure could be represented as a sidebar navigation, in this example it would be the file website/data/docs-nav-data.json:

[
  {
    "title": "Directory",
    "routes": [
      {
        "title": "Overview",
        "path": "directory"
      },
      {
        "title": "File",
        "path": "directory/file"
      },
      {
        "title": "Another File",
        "path": "directory/another-file"
      },
      {
        "title": "Nested Directory",
        "routes": [
          {
            "title": "Overview",
            "path": "directory/nested-directory"
          },
          {
            "title": "Nested File",
            "path": "directory/nested-directory/nested-file"
          }
        ]
      }
    ]
  }
]

A couple more important notes:

  • Within this data structure, ordering is flexible, but hierarchy is not. The structure of the sidebar must correspond to the structure of the content directory. So while you could put file and another-file in any order in the sidebar, or even leave one or both of them out, you could not decide to un-nest the nested-directory object without also un-nesting it in the filesystem.
  • The title property on each node in the nav-data tree is the human-readable name in the navigation.
  • The path property on each leaf node in the nav-data tree is the URL path where the .mdx document will be rendered, and the
  • Note that "index" files must be explicitly added. These will be automatically resolved, so the path value should be, as above, directory rather than directory/index. A common convention is to set the title of an "index" node to be "Overview".

Below we will discuss a couple of more unusual but still helpful patterns.

Index-less Categories

Sometimes you may want to include a category but not have a need for an index page for the category. This can be accomplished, but as with other branch and leaf nodes, a human-readable title needs to be set manually. Here's an example of how an index-less category might look:

.
โ”œโ”€โ”€ docs
โ”‚ย ย  โ””โ”€โ”€ indexless-category
โ”‚ย ย      โ””โ”€โ”€ file.mdx
// website/data/docs-nav-data.json
[
  {
    "title": "Indexless Category",
    "routes": [
      {
        "title": "File",
        "path": "indexless-category/file"
      }
    ]
  }
]

Custom or External Links

Sometimes you may have a need to include a link that is not directly to a file within the docs hierarchy. This can also be supported using a different pattern. For example:

[
  {
    "name": "Directory",
    "routes": [
      {
        "title": "File",
        "path": "directory/file"
      },
      {
        "title": "Another File",
        "path": "directory/another-file"
      },
      {
        "title": "Tao of HashiCorp",
        "href": "https://www.hashicorp.com/tao-of-hashicorp"
      }
    ]
  }
]

If the link provided in the href property is external, it will display a small icon indicating this. If it's internal, it will appear the same way as any other direct file link.

Content Images

Image files should be placed in the website/img directory.

In markdown, images should be referenced by their absolute path, starting with /img. This will look like:

![Alt text goes here](/img/docs/my-image.png)

Note: Images aren't expected to work GitHub markdown in previews, but they will work during local preview and Vercel deploy previews

Redirects

This website structures URLs based on the filesystem layout. This means that if a file is moved, removed, or a folder is re-organized, links will break. If a path change is necessary, it can be mitigated using redirects. It's important to note that redirects should only be used to cover for external links -- if you are moving a path which internal links point to, the internal links should also be adjusted to point to the correct page, rather than relying on a redirect.

To add a redirect, head over to the redirects.js file - the format is fairly simple - there's a source and a destination - fill them both in, indicate that it's a permanent redirect or not using the permanent key, and that's it. Let's look at an example:

{
  source: '/foo',
  destination: '/bar',
  permanent: true
}

This redirect rule will send all incoming links to /foo to /bar. For more details on the redirects file format, check out the docs on vercel. All redirects will work both locally and in production exactly the same way, so feel free to test and verify your redirects locally. In the past testing redirects has required a preview deployment -- this is no longer the case. Please note however that if you add a redirect while the local server is running, you will need to restart it in order to see the effects of the redirect.

There is still one caveat though: redirects do not apply to client-side navigation. By default, all links in the navigation and docs sidebar will navigate purely on the client side, which makes navigation through the docs significantly faster, especially for those with low-end devices and/or weak internet connections. In the future, we plan to convert all internal links within docs pages to behave this way as well. This means that if there is a link on this website to a given piece of content that has changed locations in some way, we need to also directly change existing links to the content. This way, if a user clicks a link that navigates on the client side, or if they hit the url directly and the page renders from the server side, either one will work perfectly.

Let's look at an example. Say you have a page called /docs/foo which needs to be moved to /docs/nested/foo. Additionally, this is a page that has been around for a while and we know there are links into /docs/foo.html left over from our previous website structure. First, we move the page, then adjust the docs sidenav, in data/docs-navigation.js. Find the category the page is in, and move it into the appropriate subcategory. Next, we add to _redirects as such. The .html version is covered automatically.

{ source: '/foo', destination: '/nested/foo', permanent: true }

Next, we run a global search for internal links to /foo, and make sure to adjust them to be /nested/foo - this is to ensure that client-side navigation still works correctly. Adding a redirect alone is not enough.

One more example - let's say that content is being moved to an external website. A common example is guides moving to learn.hashicorp.com. In this case, we take all the same steps, except that we need to make a different type of change to the docs-navigation file. If previously the structure looked like:

{
  category: 'docs',
  content: [
    'foo'
  ]
}

If we no longer want the link to be in the side nav, we can simply remove it. If we do still want the link in the side nav, but pointing to an external destination, we need to slightly change the structure as such:

{
  category: 'docs',
  content: [
    { title: 'Foo Title', href: 'https://learn.hashicorp.com/<product>/foo' }
  ]
}

As the majority of items in the side nav are internal links, the structure makes it as easy as possible to represent these links. This alternate syntax is the most concise manner than an external link can be represented. External links can be used anywhere within the docs sidenav.

It's also worth noting that it is possible to do glob-based redirects, for example matching /docs/*, and you may see this pattern in the redirects file. This type of redirect is much higher risk and the behavior is a bit more nuanced, so if you need to add a glob redirect, please reach out to the website maintainers and ask about it first.

Excluding content from Terraform Enterprise

The HCP Terraform documentation is copied over to the Terraform Enterprise documentation every Terraform Enterprise release cycle. If you are adding content to the HCP Terraform documentation about a new feature, ensure you know when/if that feature is coming to Terraform Enterprise. If your new feature is not coming to Terraform Enterprise in the next release, you need to exclude that content from the Terraform Enterprise documentation.

If you are adding content exclusive to either HCP Terraform or Terraform Enterprise, refer to our guidelines for guidance.

Learn more about writing content for Terraform Enterprise.

terraform-docs-common's People

Contributors

aaabdelgany avatar arybolovlev avatar bflad avatar brianmmcclain avatar carolinaborim avatar ctrombley avatar emlanctot avatar gautambaghel avatar glennsarti avatar jarrettspiker avatar jarrodn-au avatar jastr945 avatar jbonhag avatar juliannatetreault avatar ker-an avatar laurapacilio avatar mpminardi avatar mrinalirao avatar netra2104 avatar netramali avatar nfagerlund avatar paulanunda avatar rclark avatar rexredinger avatar ritsok avatar rkoron007 avatar swiftengineer avatar thiskevinwang avatar trujillo-adam avatar uk1288 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-docs-common's Issues

website/docs/cloud-docs/api-docs/team-tokens.mdx does not document GET call

The Team Token API documentation page does not show that you can call GET /teams/:team_id/authentication-token to see if an team has an existing API token, and, if the token does exist, when it was created and by whom.

This appears to be the call app.terraform.io calls when you go to https://app.terraform.io/app/:organization/settings/team/:team_id to display the "Team API Token" section.

Question: What is 'resource-count' in the context of the workspace creation endpoint payload

The workspace creation endpoint has an undocumented 'resource-count' attribute.
This attribute does not appear in the list of attributes, but is included in each of the example payloads.

I can't see how creating a new workspace could/should contain this attribute or how the value would be calculated to pass to it, since at the point of creation, there wouldn't be any resources (at least 'resources' from a Terraform concept - but maybe this is a different type of resource?)

Any advice would be much appreciated - since it's included in both of the examples, I assume it's not a mistake, but happy to submit a PR to remove if it's incorrectly there :)

Many thanks

The archive filename requirements are different between docs and actual behavior

Hi team, I was releasing a terraform provider and I met the following errors.

The doc says

There are 1 or more zip files containing the built provider binary for a single architecture.
The binary name is terraform-provider-{NAME}_v{VERSION}.
The archive name is terraform-provider-{NAME}_{VERSION}_{OS}_{ARCH}.zip.

But when I was doing this, and terraform init throws an error

โ”‚ Error: Failed to install provider
โ”‚
โ”‚ Error while installing azure/azapi v0.1.0: unsuccessful request to
โ”‚ https://github.com/Azure/terraform-provider-azapi/releases/download/v0.1.0/terraform-provider-azapi_v0.1.0_windows_amd64.zip: 404 Not Found
โ•ต

Please notice the difference is v before version v0.1.0. After I renamed the archives by adding v before version, it works.

I think this is kind of strange that these files are not following the same pattern, zip files/binary files have v before version, but checksum file and signature file don't.

https://www.terraform.io/registry/providers/publishing?_ga=2.204875920.1848645224.1649644205-1459696673.1614833669#manually-preparing-a-release

Rework plugin Section Documentation for Provider Concepts (Schema, Resource, Data Source)

Description

Currently, there are terraform-plugin-sdk/v2 documentation pages which describe various Terraform Provider concepts, such as:

  • Schemas
  • Resources
  • Data Sources (turns out we don't have a dedicated page for this ๐Ÿ˜ข )

terraform-plugin-framework, terraform-plugin-go, and terraform-plugin-mux also implement or reference these concepts in some fashion. There is no website documentation which succinctly correlates these concepts to the underlying protocol.

Proposal

Since the concepts themselves are not specific to the implementations and rather than duplicate content across all these pages, it seems ideal to:

  • Create top level plugin development pages that is similar to the existing sdk/v2 page content (minus the sdk/v2 specific pieces) with links to sdk/v2, framework, go, and mux specific pages
    • Additionally, these top level pages should also link or reference the specific protocol RPCs involved (which maybe the protocol documentation needs to be expanded into its own page with references to each RPC)
  • Pare down the sdk/v2 page to just reference links and the sdk/v2 specific content
  • Create a framework page that is similar to the updated sdk/v2 page with framework-specific code
  • When onboarded, create a go page that is similar to the updated sdk/v2 page with go-specific code
  • Handle any necessary mux page changes/references

References

Create workspace docs, wrong field name

The text above the field overview says

By supplying the necessary attributes under a vcs-repository object, you can create a workspace that is configured against a VCS Repository.

but the overview below says vcs-repo, for example data.attributes.vcs-repo.branch, which doesn't work.

Fix table in azure-configuration.mdx

Hi!

I would love to introduce a minor fix specified in in #659 it fixes a table in the documentation.

Please do reach out if I can help facilitate this PR to be merged.

Thank you

Workspace Settings - Local Execution Mode - Explicitly state that team permissions are not gracefully regulated somehow

A customer is not satisfied that within the current iteration of our documentation regarding Execution Modes there's not an explicit statement about team permissions not getting gracefully regulated/upheld when using the local execution mode, and I'm struggling to figure out an eloquent way to do this.

For example:

You are running terraform apply against a workspace in your TFC org, where the team your token is associated to does not have permissions to upload state files, or run applies

If remote execution is selected, you'd get this message when you attempted to execute terraform apply:

PS C:\Users\zisom\Documents\exxon> terraform apply
โ•ท
โ”‚ Error: Insufficient rights to apply changes
โ”‚
โ”‚ The provided credentials have insufficient rights to apply changes. In order to apply changes at least write permissions on the workspace are required.
โ•ต
PS C:\Users\zisom\Documents\exxon> 

If local execution is selected, the apply phase would execute, and when the apply was finished and terraform attempts to upload the new state file you'd see this message:

null_resource.delay (local-exec):                                  [01]: 172.17.176.1
null_resource.delay (local-exec):                                  [02]: fe80::8167:3d5c:2f54:7577
null_resource.delay (local-exec): Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.
null_resource.delay: Creation complete after 2s [id=2000534191006407307]
โ•ท
โ”‚ Error: Failed to save state
โ”‚
โ”‚ Error saving state: Error uploading state: resource not found
โ•ต
โ•ท
โ”‚ Error: Failed to persist state to backend
โ”‚
โ”‚ The error shown above has prevented Terraform from writing the updated state to the configured backend. To allow for recovery, the state has been written to the 
โ”‚ file "errored.tfstate" in the current working directory.
โ”‚
โ”‚ Running "terraform apply" again at this point will create a forked state, making it harder to recover.
โ”‚
โ”‚ To retry writing this state, use the following command:
โ”‚     terraform state push errored.tfstate
โ”‚
โ•ต

Through local execution, team permissions do not regulate the local execution of the binary. A person only would run into a situation with their permissions when there was an api call from the local binary that is not permitted, like in this case, uploading a state file. How can this be expressed within our documentation?

Migrate Provider Metadata Documentation Under Plugin Documentation

Description

The Terraform CLI internals documentation has a page describing Provider Metadata, a lesser-known feature where provider developers who also happen to be module developers can support module-level "provider" configuration.

Since this functionality was introduced, Terraform CLI has it included with 1.0 compatibility promises, so it is not intended to go anywhere for awhile. It is no longer considered an "experimental" feature. Both current major protocol versions support the data and its usable with both terraform-plugin-sdk/v2 and terraform-plugin-framework.

Given that this functionality requires provider implementation and that additional providers may benefit from it, this documentation should likely be promoted to the plugin/ section of the website where each development framework can document the implementation specifics.

Private Registry Documentation - broken link

drift detection documentation typo

Description

The documentation around Drift Detection includes this statement:

Configuration drift occurs when changes are made outside Terrafoto's regular process, 
leading to inconsistencies between the remote objects and your configured infrastructure.

Assuming this is supposed to be Terraform's than Terrafoto's.

Integrations > Custom Framework vs Custom SDK

I'm unable to locate this documentation in the GH repos, although I'm sure it's here somewhere.

I went looking for docs on writing a custom TF provider, and found https://developer.hashicorp.com/terraform/tutorials/providers. In the left side gutter under "Integrations" are two nearly identical looking options for custom providers: "Custom Framework Providers" and "Custom SDK Providers". The description of both only varies in the name/title. It's entirely unclear why both are there and which to use. Screenshots attached for reference.

It's not until I went hunting for the answer that I found another page under "plugins" that explains the difference. It says

SDKv2 is the prior SDK that many existing providers use. It is maintained for Terraform versions 1.x and earlier, but we have stopped most feature development so we can focus on improving the framework.

To alleviate confusion and help developers move to use (or start with) the Plugin Framework, this description/explanation/suggestion above the tutorial TOC should include some form of the above statement making it clear that the SDK is not preferred.

Screenshot 2023-05-08 at 12 59 13
Screenshot 2023-05-08 at 12 59 22

Enterprise Docs' "Edit this page on GitHub" hyperlink is Invalid

The "Edit this page on GitHub" hyperlink on the bottom of every Enterprise doc page is invalid, as it's still referencing (presumably) an old repo. After reading the README of this repo, it does mention the repo for /enterprise is an internal repository, so I can't say for certain if the currently linked repo is deprecated or not as I do not have the needed access to verify.

I'd suggest that if the public is unable to access the docs and modify it themselves via the usual method of submitting a PR, then can we please have some other kind of link so that we can put in a request for changes to be made elsewhere?

Example:
https://developer.hashicorp.com/terraform/enterprise/api-docs/workspaces#show-workspace
image

Terraform Cloud - Org Settings / Security / Authentication not documented?

Terraform Cloud org settings have session timeout settings that do not appear to be documented in any of the terraform cloud docs.

Located in TFC org settings, Authentication (Security subhead)

User Sessions
You can make changes here that will affect the sessions of all users in this organization.

These should be documented.

data "hcp_packer_image" "hashiapp_image" { bucket_name = "hashiapp" channel = "latest" cloud_provider = "aws" region = "us-west-2" } resource "aws_instance" "hashiapp" { ami = data.hcp_packer_image.hashiapp_image.cloud_image_id instance_type = var.instance_type associate_public_ip_address = true subnet_id = aws_subnet.hashiapp.id vpc_security_group_ids = [aws_security_group.hashiapp.id] key_name = aws_key_pair.generated_key.key_name tags = { Name = "hashiapp" } } check "ami_version_check" { data "aws_instance" "hashiapp_current" { instance_tags = { Name = "hashiapp" } } assert { condition = aws_instance.hashiapp.ami == data.hcp_packer_image.hashiapp_image.cloud_image_id error_message = "Must use the latest available AMI, ${data.hcp_packer_image.hashiapp_image.cloud_image_id}." } }

Behavior Changes in Filter for Provider Documentation

Apologies if this is the wrong place to raise this (directions to the right place would be appreciated in this case).

Some time ago, the filter feature of the provider documentation started including results which are seemingly unrelated to the value entered in the filter field.

For example, the below screenshot shows completely unrelated resources showing up when attempting to filter on "aws_instance":

image

Incorrect attribute paths in table for variable set create method

In the variable sets documentation (https://github.com/hashicorp/terraform-website/blob/master/content/cloud-docs/api-docs/variable-sets.mdx) the table that specifies the required attributes doesn't quite line up with the payload below (the payload is correct).

The table lists the following fields:

data.name
data.description.
data.global

They should actually be:

data.attributes.name
data.attributes.description.
data.attributes.global

Expand Terraform Plugin Protocol Section

Use-cases

The current website documentation for Plugin Development discusses the Terraform Plugin Protocol but does not go into detail regarding the relationship between the RPCs that are issued by Terraform core during execution of a Terraform command and the Terraform plugin framework functions that are called as a consequence.

Proposal

In order to provide further clarification for provider developers and practitioners about the relationship and sequencing of RPCs and the functions that are called in the Terraform plugin framework it is proposed that Terraform Plugin Protocol be split into a separate page which adds this detail.

The Terraform plugin framework documentation will be updated to reference the relevant RPC within the new Terraform Plugin Protocol page.

References

Add support for migration in the code generation documentation

As a provider maintainer I got existing provider code. I would like to migrate progressively to the new code generation tool that is offered and based on openapi. Could you add content about how to migrate progressively to this new way of writing code?

How can I organize my code to make this migration as easy as possible? Where should the code generation configuration code live? How can I manage custom logic? How can I handle waiting operation when an operation in ongoing? How can I handle override and validation?

This content could help a lot to migrate to this new code generation phase of terraform plugin development :)

How to Add Google Analytics Tracking to Terraform Provider Registry documentation

Do the markdown files generating the docs on the Terraform Registry for a provider supports Google Analytics Tracking?

Essentially, can we add this tag in the .md files and have the below tracking code added to each pages on the terraform provider registry documentation?

.. raw:: HTML
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-1234ABCD"></script>
    
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'G-1234ABCD');
    </script>

Lacking proper navigation in official documentation

The documentation at https://developer.hashicorp.com/terraform/docs lacks proper navigation.
There are atleast 3 different ways to navigate the documentation, one from top nav, one from side bar and one from within the page (if this page is an index page)

As a first time user to terraform, I'd like to be able to properly read through documentation in a sequential manner ex: Prev, Next at the bottom of each page. The current documentation lacks this and I keep navigating pages repetitively selecting from top nav and side nav loosing my way constantly and get confused and lose interest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.