Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support md file in different directory? #34

Open
melcloud opened this issue Feb 7, 2020 · 0 comments
Open

Support md file in different directory? #34

melcloud opened this issue Feb 7, 2020 · 0 comments
Assignees

Comments

@melcloud
Copy link
Contributor

melcloud commented Feb 7, 2020

If I have following tree structure:
/codes
|---src
|--- variables.tf
|---docs
|--- README.md

the recent change on entrypoint script prevents me from replacing section inside README.md.

Can we either revert to have the ENV_FILE environment variable or remove the call on dirname at

DOCS="$(terraform-docs "${@}" "$(dirname "${MY_FILE}")")"
?

The later will allow me to mount /codes as /data, then set /data/src as current working directory. Then tf doc can be currently generated and output to docs/README.md:

docker run --rm -it -v /codes:/data -w /data/src cytopia/docker-terraform-docs terraform-docs-replace md ../docs/README.md

@cytopia cytopia self-assigned this Mar 23, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants