hdoc-tools 0.62.2 → 0.62.3
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-init.js +3 -3
- package/hdoc-validate-config.js +1 -1
- package/package.json +1 -1
- package/schemas/hdocbook.schema.json +2 -2
package/hdoc-init.js
CHANGED
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
{
|
|
63
63
|
name: "bookType",
|
|
64
64
|
description:
|
|
65
|
-
"Book Type (0=document, 1=api_ref, 2=db_ref, 3=etl_ref, 4=mcp_ref)",
|
|
65
|
+
"Book Type (0=document, 1=api_ref, 2=db_ref, 3=etl_ref, 4=mcp_ref, 5=content_pack)",
|
|
66
66
|
default: "0",
|
|
67
|
-
validator: /^[0-
|
|
68
|
-
warning: "Book Type must be a number between 0 and
|
|
67
|
+
validator: /^[0-5]$/,
|
|
68
|
+
warning: "Book Type must be a number between 0 and 5.",
|
|
69
69
|
required: true,
|
|
70
70
|
},
|
|
71
71
|
];
|
package/hdoc-validate-config.js
CHANGED
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
if (config.bookType !== undefined && !valid_book_types.includes(config.bookType)) {
|
|
298
|
-
errors.push(`${file}: "bookType" must be an integer, one of: ${valid_book_types.join(', ')} (0=document, 1=api_ref, 2=db_ref, 3=etl_ref, 4=mcp_ref)`);
|
|
298
|
+
errors.push(`${file}: "bookType" must be an integer, one of: ${valid_book_types.join(', ')} (0=document, 1=api_ref, 2=db_ref, 3=etl_ref, 4=mcp_ref, 5=content_pack)`);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
if (config.coverImage !== undefined && typeof config.coverImage !== 'string') {
|
package/package.json
CHANGED
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
},
|
|
53
53
|
"bookType": {
|
|
54
54
|
"type": "integer",
|
|
55
|
-
"description": "The type of content this book contains: 0=document, 1=api_ref, 2=db_ref, 3=etl_ref, 4=mcp_ref. Defaults to 0 when omitted.",
|
|
56
|
-
"enum": [0, 1, 2, 3, 4]
|
|
55
|
+
"description": "The type of content this book contains: 0=document, 1=api_ref, 2=db_ref, 3=etl_ref, 4=mcp_ref, 5=content_pack. Defaults to 0 when omitted.",
|
|
56
|
+
"enum": [0, 1, 2, 3, 4, 5]
|
|
57
57
|
},
|
|
58
58
|
"coverImage": {
|
|
59
59
|
"type": "string",
|