hdoc-tools 0.9.55 → 0.9.56
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/hdoc-validate.js +3 -2
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
@@ -384,11 +384,12 @@
|
|
384
384
|
// Check URL exists
|
385
385
|
if (!hdocbook_config.publicSource.startsWith('https://github.com') && !hdocbook_config.publicSource.startsWith('https://api.github.com')) {
|
386
386
|
meta_errors.push(`Value for publicSource in book metadata is not a recognised GitHub URL: ${hdocbook_config.publicSource}`);
|
387
|
-
} else {
|
388
|
-
//
|
389
387
|
}
|
390
388
|
}
|
389
|
+
}
|
391
390
|
|
391
|
+
if (!hdocbook_config.audience || !(hdocbook_config.audience instanceof Array) || hdocbook_config.audience.length === 0) {
|
392
|
+
meta_errors.push(`Property audience of type array in book metadata is mandatory.`);
|
392
393
|
}
|
393
394
|
|
394
395
|
// Check navigation spellings
|