-
Notifications
You must be signed in to change notification settings - Fork 24
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
documentation: generate docs from provider schemas #248
Conversation
This pull request has been linked to Shortcut Story #62363: terraform provider: improve documentation. |
1bfe744
to
56c473b
Compare
<a id="nestedatt--instances"></a> | ||
### Nested Schema for `instances` | ||
|
||
Read-Only: | ||
|
||
- `anti_affinity_group_ids` (Set of String) | ||
- `created_at` (String) | ||
- `deploy_target_id` (String) | ||
- `disk_size` (Number) | ||
- `elastic_ip_ids` (Set of String) | ||
- `id` (String) | ||
- `ipv6` (Boolean) | ||
- `ipv6_address` (String) | ||
- `labels` (Map of String) | ||
- `manager_id` (String) | ||
- `manager_type` (String) | ||
- `name` (String) | ||
- `private_network_ids` (Set of String) | ||
- `public_ip_address` (String) | ||
- `reverse_dns` (String) | ||
- `security_group_ids` (Set of String) | ||
- `ssh_key` (String) | ||
- `state` (String) | ||
- `template_id` (String) | ||
- `type` (String) | ||
- `user_data` (String) | ||
- `zone` (String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notice that for a nested list of objects the plugin generating the docs doesn't include the descriptions. This is unfortunately an issue we can't do much about:
hashicorp/terraform-plugin-docs#28 (comment)
92f70e6
to
bdbcdd2
Compare
We make use of tfplugindocs and refacor the codebase so that all documentation files are generated from the schemas in the source code. To ensure that developers don't forget to update the documentation in the future we add a CI step that verifies that the generated documentation matches the docs checked into git.
Additionally we add an indicator to the documentation description of each attribute for which
ForceNew == true
.