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
When using recursive: true
allow skipping changes to root README.md
#613
Comments
@blakegong any update on the fix? |
Any update on this or a workaround to skip root README from being updated ? |
Hi! Any updates on this? |
Could one of the project maintainers please review @blakegong 's pull request? |
I'm working around this issue for now by using the output:
file: README.md
mode: inject
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
settings:
hide-empty: true |
For me, it's not work:(
Also, I've tried to add empty .md files to Example:
|
As the PR does not seem to get merged, you can meanwhile use a workaround:
|
The following args work for me: I had a problem where terraform-docs were modifying the root README of my repository. The above args fixed the issue for me. Just as an FYI, my repo structure:
now terraform-docs only updates readme files in modules/ and all modules/, but not the root of the repository. |
What problem are you facing?
When working in a repository used purely for modules it would be useful to be able to skip changes to the root
README.md
.Since all of the modules are in subdirectories we only want to update the README in the subdirectory and not the root (which has no terraform code).
Currently when you run
terraform-docs
in recursive mode it generates the submodule docs correctly but also adds to the root README which makes no sense in this scenario.How could terraform-docs help solve your problem?
Possibly add
skip-root-readme
as an option:The text was updated successfully, but these errors were encountered: