Skip to content

Commit 61e48c3

Browse files
committed
config: adds files for document generation
1 parent 2274e3a commit 61e48c3

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.terraform-docs-example.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
formatter: "markdown table"
2+
3+
header-from: ../../example.header.md
4+
footer-from: ""
5+
6+
recursive:
7+
enabled: true
8+
path: examples
9+
include-main: false
10+
11+
output:
12+
file: "README.md"
13+
mode: replace
14+
template: |-
15+
<!-- BEGIN_TF_DOCS -->
16+
{{ .Content }}
17+
<!-- END_TF_DOCS -->
18+
{{- printf "\n" -}}
19+
20+
sort:
21+
enabled: true
22+
by: name
23+
24+
settings:
25+
anchor: true
26+
color: true
27+
default: true
28+
description: false
29+
escape: true
30+
hide-empty: false
31+
html: true
32+
indent: 2
33+
lockfile: true
34+
read-comments: true
35+
required: true
36+
sensitive: true
37+
type: true

example.header.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Usage
2+
3+
To run this example you need to execute:
4+
5+
```bash
6+
$ terraform init
7+
$ terraform plan
8+
$ terraform apply
9+
```
10+
11+
Note that this example may create resources which may cost money. Run `terraform destroy` when you don't need these resources.

0 commit comments

Comments
 (0)