Skip to content

Commit 7327de1

Browse files
authored
Clarify deprecated settings in the docs (#499)
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent 90ccb84 commit 7327de1

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

docs/user-guide/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ settings:
107107
- `sections.hide-all` and `sections.hide`
108108
- `sections.show-all` and `sections.show`
109109

110-
**Note:** As of `v0.13.0`, `sections.hide-all` and `settings.show-all` are deprecated
111-
and removed in favor of explicit use of `settings.hide` and `settings.show`.
110+
**Note:** As of `v0.13.0`, `sections.hide-all` and `sections.show-all` are deprecated
111+
and removed in favor of explicit use of `sections.hide` and `sections.show`.
112112

113113
## Version
114114

@@ -189,6 +189,9 @@ The following options are supported and can be used for `sections.show` and
189189
- `requirements`
190190
- `resources` (since `v0.11.0`)
191191

192+
**Note:** As of `v0.13.0`, `sections.hide-all` and `sections.show-all` are deprecated
193+
and removed in favor of explicit use of `sections.hide` and `sections.show`.
194+
192195
## Output
193196

194197
Since `v0.12.0`
@@ -301,3 +304,20 @@ The following sort types are supported:
301304
- `name` (default): name of items
302305
- `required`: by name of inputs AND show required ones first
303306
- `type`: type of inputs
307+
308+
**Note:** As of `v0.13.0`, `sort.by` is converted from `list` to `string`.
309+
310+
```yaml
311+
sort:
312+
enabled: true
313+
by: required # this now only accepts string
314+
```
315+
316+
The following error is an indicator that `.terraform-docs.yml` still uses
317+
list for `sort.by`.
318+
319+
```text
320+
Error: unable to decode config, 1 error(s) decoding:
321+
322+
* 'sort.by' expected type 'string', got unconvertible type '[]interface {}'
323+
```

0 commit comments

Comments
 (0)