hdoc-tools 0.50.0 → 0.50.1
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-config.js +2 -2
- package/package.json +1 -1
package/hdoc-validate-config.js
CHANGED
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
if (item.items !== undefined) {
|
|
45
45
|
if (!Array.isArray(item.items)) {
|
|
46
46
|
errors.push(`hdocbook.json: "${path}.items" must be an array`);
|
|
47
|
-
} else if (depth >=
|
|
48
|
-
errors.push(`hdocbook.json: "${path}.items" exceeds the maximum navigation nesting depth of
|
|
47
|
+
} else if (depth >= 5) {
|
|
48
|
+
errors.push(`hdocbook.json: "${path}.items" exceeds the maximum navigation nesting depth of 5 levels`);
|
|
49
49
|
} else {
|
|
50
50
|
for (let i = 0; i < item.items.length; i++) {
|
|
51
51
|
validate_nav_item(item.items[i], `${path}.items[${i}]`, errors, depth + 1);
|