Skip to content
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

Merged
merged 68 commits into from
Mar 8, 2023

Conversation

sauterp
Copy link
Member

@sauterp sauterp commented Feb 23, 2023

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.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #62363: terraform provider: improve documentation.

@sauterp sauterp force-pushed the sauterp/sc-62363/improve-docs branch from 1bfe744 to 56c473b Compare February 23, 2023 15:32
Comment on lines +70 to +96
<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)
Copy link
Member Author

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)

docs/index.md Outdated Show resolved Hide resolved
@sauterp sauterp force-pushed the sauterp/sc-62363/improve-docs branch from 92f70e6 to bdbcdd2 Compare March 2, 2023 12:13
@sauterp sauterp merged commit 7c7da06 into master Mar 8, 2023
@sauterp sauterp deleted the sauterp/sc-62363/improve-docs branch March 8, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants