@@ -107,8 +107,8 @@ settings:
107
107
- ` sections.hide-all` and `sections.hide`
108
108
- ` sections.show-all` and `sections.show`
109
109
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`.
112
112
113
113
# # Version
114
114
@@ -189,6 +189,9 @@ The following options are supported and can be used for `sections.show` and
189
189
- ` requirements`
190
190
- ` resources` (since `v0.11.0`)
191
191
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
+
192
195
# # Output
193
196
194
197
Since `v0.12.0`
@@ -301,3 +304,20 @@ The following sort types are supported:
301
304
- `name` (default) : name of items
302
305
- `required` : by name of inputs AND show required ones first
303
306
- `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