@antora/playbook-builder 3.1.13 → 3.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config/schema.js +6 -1
- package/lib/solitary-convict.js +8 -0
- package/package.json +1 -1
package/lib/config/schema.js
CHANGED
|
@@ -86,6 +86,11 @@ module.exports = {
|
|
|
86
86
|
format: 'array-or-string',
|
|
87
87
|
default: undefined,
|
|
88
88
|
},
|
|
89
|
+
worktrees: {
|
|
90
|
+
doc: 'The default worktrees pattern to use when no specific pattern is provided.',
|
|
91
|
+
format: 'boolean-or-array-or-string',
|
|
92
|
+
default: '.',
|
|
93
|
+
},
|
|
89
94
|
},
|
|
90
95
|
ui: {
|
|
91
96
|
bundle: {
|
|
@@ -240,7 +245,7 @@ module.exports = {
|
|
|
240
245
|
log: {
|
|
241
246
|
level: {
|
|
242
247
|
doc: 'Set the minimum log level of messages that get logged.',
|
|
243
|
-
format: ['all', 'debug', 'info', 'warn', 'error', 'fatal', 'silent'],
|
|
248
|
+
format: ['all', 'trace', 'debug', 'info', 'warn', 'error', 'fatal', 'silent'],
|
|
244
249
|
default: 'warn',
|
|
245
250
|
arg: 'log-level',
|
|
246
251
|
env: 'ANTORA_LOG_LEVEL',
|
package/lib/solitary-convict.js
CHANGED
|
@@ -43,6 +43,14 @@ function registerFormats (convict) {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
})
|
|
46
|
+
convict.addFormat({
|
|
47
|
+
name: 'boolean-or-array-or-string',
|
|
48
|
+
validate: (val) => {
|
|
49
|
+
if (!(val == null || typeof val === 'boolean' || val.constructor === String || Array.isArray(val))) {
|
|
50
|
+
throw new Error('must be a boolean, array, string, or null')
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
})
|
|
46
54
|
convict.addFormat({
|
|
47
55
|
name: 'map',
|
|
48
56
|
validate: (val) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antora/playbook-builder",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.15",
|
|
4
4
|
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"author": "OpenDevise Inc. (https://opendevise.com)",
|