-
Notifications
You must be signed in to change notification settings - Fork 535
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
Allow recursive runs to exclude subpaths and/or the top-level path #661
Labels
Comments
sub optimal, but just .gitignore those files |
As an addition I would like to specify which submodules to exclude from doc generation completely during a recursive generation |
As mentioned in #613:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem are you facing?
We currently have X repositories with Y modules in them (and the modules themselves pull "real" modules via a private module registry in gitlab). I want to force README generation in each module via pre-commit, but I want to leave the repo root README alone (since there's no tf files in there anyways), but I only want to have one unified terraform-docs.yml in each repository.
Currently, if I run
terraform-docs -c .terraform-docs.yml .
in the repo root, my main README gets modified alongside the module README files. If I start one level deeper with e.g.terraform-docs -c .terraform-docs.yml subscriptions
, then I get a README in subscriptions, which I also don't want.Example repo structure:
How could terraform-docs help solve your problem?
I have two ideas for a solution:
recursive
tree or a global .terraform-docs-ignore file in the repo rootFor my specific use case I don't have a strong preference either way, since I only want to exclude a single location (the top level), but a more flexible approach would maybe be advised for people who want to ignore more than one path.
Kind Regards
The text was updated successfully, but these errors were encountered: