docs: generated module docs

This commit is contained in:
2022-05-26 22:07:16 +02:00
parent 4be687de81
commit d5e9fe017f
8 changed files with 840 additions and 0 deletions

18
scripts/generate-docs.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
for DIR in $(find . -type d); do
if [[ "${DIR}" = "." ]] || [[ $(echo ${DIR} | cut -c1-5) = ".git/" ]]; then
continue;
fi
pushd $DIR
terraform_files=$(find . -maxdepth 1 -type f -iname '*.tf')
if [[ ${#terraform_files} -eq 0 ]]; then
popd
continue
fi
terraform-docs markdown document . > README.md
popd
done