-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: generate docs from code (#645)
Our existing provider docs are prone to errors because we transcribe attribute descriptions, deprecations, etc. back and forth between the code and docs by hand. By generating docs from code, we reduce the overhead of providing accurate, up-to-date docs for our customers. Note that this is a breaking change because, prior to this PR, docs for an Equinix resource or data source were kept in a file named `equinix_<resource>.md`. The [recommendation from Hashicorp](https://developer.hashicorp.com/terraform/registry/providers/docs#typical-structure) is to keep docs in a file named `<resource>.md` (without the `equinix_` prefix), and the `terraform-plugin-docs` tool [strictly follows this recommendation](hashicorp/terraform-plugin-docs#347 (comment)). This means that adopting docs generation would move our existing docs from, e.g. `https://registry.terraform.io/providers/equinix/equinix/latest/docs/resources/equinix_metal_vrf` to `https://registry.terraform.io/providers/equinix/equinix/latest/docs/resources/metal_vrf`. This PR adopts docs generation as follows: - Run `tfplugindocs migrate` to create templates from our existing docs - Run `tfplugindocs generate` to regenerate the docs from the newly-created templates **NOTE** the scope of this PR is to move our docs to align with the HashiCorp's recommended structure & naming conventions and to provide [an example of updating existing templates to automatically generate resource / datasource attribute details](37c4d06). Updating specific templates is the responsibility of each engineering team. Closes #201
- Loading branch information
Showing
278 changed files
with
12,012 additions
and
1,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.