-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.terraform-docs.yml
70 lines (61 loc) · 1.28 KB
/
.terraform-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
formatter: markdown table
header-from: main.tf
# yamllint disable rule:line-length
content: |-
# Repospace Terraform Module
A helper module to create a standard repospace in Terraform Cloud and Github Enterprise.
## Table of Contents
- [Overview][1]
- [Example Input][2]
- [Requirements][3]
- [Inputs][4]
- [Outputs][5]
- [Modules][6]
- [Resources][7]
## Overview
{{ .Header }}
## Example Input
```terraform
{{- if .Module.RequiredInputs }}
#
# REQUIRED VARIABLES
#
{{- range .Module.RequiredInputs }}
# TODO: update "{{ .Name }}" value
{{ .Name }} = null
{{- end }}
{{- end }}
{{- if .Module.OptionalInputs }}
#
# OPTIONAL VARIABLES
#
{{- range .Module.OptionalInputs }}
{{ .Name }} = {{ .GetValue | printf "%s" }}
{{- end }}
{{- end }}
```
{{ .Requirements }}{{"\n"}}
{{ .Inputs }}{{"\n"}}
{{ .Outputs }}{{"\n"}}
{{ .Modules }}{{"\n"}}
{{ .Resources }}{{"\n"}}
[1]: #overview
[2]: #example-input
[3]: #requirements
[4]: #inputs
[5]: #outputs
[6]: #modules
[7]: #resources
# yamllint enable rule:line-length
sort:
enabled: true
output:
file: README.md
mode: replace
template: |-
{{ .Content }}{{"\n"}}
settings:
indent: 2
read-comments: false
hide-empty: false