@antora/playbook-builder
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -71,11 +71,3 @@ 'use strict' | ||
} | ||
// FIXME would be nice if camelCaseKeys could exclude a subtree (e.g., asciidoc) | ||
// see https://github.com/sindresorhus/camelcase-keys/issues/23 | ||
let asciidocData | ||
if ('asciidoc' in schema.properties) { | ||
asciidocData = data.asciidoc | ||
delete data.asciidoc | ||
} | ||
const playbook = camelCaseKeys(data, { deep: true }) | ||
if (asciidocData) playbook.asciidoc = asciidocData | ||
const playbook = camelCaseKeys(data, { deep: true, stopPaths: ['asciidoc'] }) | ||
playbook.dir = playbook.playbook ? ospath.dirname((playbook.file = playbook.playbook)) : process.cwd() | ||
@@ -82,0 +74,0 @@ delete playbook.playbook |
@@ -30,2 +30,7 @@ 'use strict' | ||
}, | ||
robots: { | ||
doc: 'Controls generation of robots.txt if site.url is set (allowed values: allow, disallow, or custom string).', | ||
format: String, | ||
default: undefined, | ||
}, | ||
//root: { | ||
@@ -68,2 +73,7 @@ // doc: 'The name of the component to use as the root of the site.', | ||
}, | ||
edit_url: { | ||
doc: 'The default edit URL setting when no specific setting is provided.', | ||
format: 'boolean-or-string', | ||
default: true, | ||
}, | ||
sources: { | ||
@@ -70,0 +80,0 @@ doc: 'The list of git repositories + branch patterns to use.', |
@@ -54,2 +54,10 @@ 'use strict' | ||
convict.addFormat({ | ||
name: 'boolean-or-string', | ||
validate: (val) => { | ||
if (!(val == null || typeof val === 'string' || val instanceof String || typeof val === 'boolean')) { | ||
throw new Error('must be a boolean or string') | ||
} | ||
}, | ||
}) | ||
convict.addFormat({ | ||
name: 'dir-or-virtual-files', | ||
@@ -56,0 +64,0 @@ validate: (val) => { |
{ | ||
"name": "@antora/playbook-builder", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.", | ||
@@ -20,4 +20,4 @@ "license": "MPL-2.0", | ||
"@iarna/toml": "~2.2", | ||
"camelcase-keys": "~6.0", | ||
"convict": "~5.1", | ||
"camelcase-keys": "~6.1", | ||
"convict": "~5.2", | ||
"deep-freeze-node": "~1.1", | ||
@@ -24,0 +24,0 @@ "js-yaml": "~3.13", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14480
395
+ Addedcamelcase-keys@6.1.2(transitive)
+ Addedconvict@5.2.1(transitive)
+ Addedvalidator@11.1.0(transitive)
+ Addedyargs-parser@13.1.2(transitive)
- Removedcamelcase-keys@6.0.1(transitive)
- Removedconvict@5.1.0(transitive)
- Removedvalidator@10.11.0(transitive)
- Removedyargs-parser@13.0.0(transitive)
Updatedcamelcase-keys@~6.1
Updatedconvict@~5.2