cytopia / cytopia/docker-terraform-docs

Support md file in different directory?

Open
#34 0 comments 1 reaction 1 assignee Claimed by @cytopia View on GitHub
Dominant language
HCL
Stars
67
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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
https://github.com/cytopia/docker-terraform-docs/blob/1bcddf68a9a760b2260a5f3248535ea7b90630fe/data/docker-entrypoint-0.12.sh#L108?

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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.