Skip to content

Add an option to use a custom path for README.md using terraform_docs #132

@achaussier

Description

@achaussier

Hello,

First, thanks for this useful project !

Can it be possible to add a custom path for README.md when using terraform_docs hook ?

This use case can appears when Terraform files are in a subfolder, but the repository only host a single module, ex:

.
├── .gitignore
├── .gitlab-ci.yml
├── .pre-commit-config.yaml
├── README.md
└── src
    ├── main.tf
    ├── outputs.tf
    └── variables.tf

My different tries tends to use a dedicated README.md in the .tf files folder and reference it using a link inside the top level README.md file, but I foud the result less readable.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    estimate/1dayNeed 1 work day to be donefeatureNew feature or requesthook/terraform_docsBash hookstaleDenotes an issue or PR has remained open with no activity and has become stale.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions