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

GH workflow for docs generation #55

Closed
serdardalgic opened this issue Nov 15, 2022 · 1 comment
Closed

GH workflow for docs generation #55

serdardalgic opened this issue Nov 15, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Comments

@serdardalgic
Copy link
Contributor

Now we're generating the docs of the terraform repository by running go generate command manually.

https://github.com/EnterpriseDB/terraform-provider-biganimal/blob/main/main.go#L18 here is the go:generate definition that runs the tfplugindocs on the existing command, and it generated the examples and docs directories.

Ideally, we can have a GH workflow that would generate the docs automatically. Until we reach this point, a workflow that would show the diff, if the docs are not correctly generated would also be fine.

Either instead of tfplugindocs or in combination with tfplugindocs, https://terraform-docs.io/how-to/github-action/ this GH action may also be used. Please investigate further.

If you have an alternative solution suggestion, feel free to mention in this issue.

@serdardalgic serdardalgic added enhancement New feature or request github_actions Pull requests that update GitHub Actions code labels Nov 15, 2022
@serdardalgic serdardalgic added the documentation Improvements or additions to documentation label Nov 29, 2022
@YanniHu1996 YanniHu1996 reopened this Mar 20, 2023
@serdardalgic
Copy link
Contributor Author

We've added go generate to our pre-commit hooks, so that tfplugindocs generate command would run and tell the PR owner if there are problems related to documentation generation.

I'm closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

No branches or pull requests

2 participants