Skip to content

Commit 32c1e63

Browse files
authored
Merge pull request #89 from mineiros-io/kassianh/feat/terradoc
feat: add terradoc
2 parents 332f59f + 0091750 commit 32c1e63

File tree

4 files changed

+1820
-344
lines changed

4 files changed

+1820
-344
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/mineiros-io/pre-commit-hooks
3-
rev: v0.2.3
3+
rev: v0.3.1
44
hooks:
55
- id: terraform-fmt
66
- id: terraform-validate
77
exclude: ^examples|.terraform/
88
- id: tflint
9-
- id: gofmt
10-
- id: goimports
119
- id: golangci-lint
1210
- id: phony-targets
1311
- id: markdown-link-check
12+
args: ['-p'] # When adding the -p flag, markdown-link-check will always with an exit code 0, even if dead links are found
13+
verbose: true # Forces the output of the hook to be printed even when the hook passes.

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ help:
108108
} \
109109
{ lastLine = $$0 }' $(MAKEFILE_LIST)
110110

111+
## Generate README.md with Terradoc
112+
.PHONY: terradoc
113+
terradoc:
114+
$(call quiet-command,terradoc -o README.md README.tfdoc.hcl)
115+
111116
# define helper functions
112117
DOCKER_FLAGS += ${DOCKER_RUN_FLAGS}
113118
DOCKER_RUN_CMD = docker run ${DOCKER_FLAGS} ${BUILD_TOOLS_DOCKER_IMAGE}

0 commit comments

Comments
 (0)