hdoc-tools 0.57.5 → 0.60.0
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/LICENSE +21 -0
- package/hdoc-build-db.js +24 -0
- package/hdoc-build-embeddings.js +202 -0
- package/hdoc-build.js +42 -0
- package/hdoc-bump.js +123 -123
- package/hdoc-db.js +7 -0
- package/hdoc-help.js +1 -0
- package/hdoc-validate-config.js +6 -1
- package/hdoc-ver.js +43 -43
- package/hdoc.js +5 -2
- package/npm-shrinkwrap.json +996 -3
- package/package.json +6 -2
- package/schemas/hdocbook.schema.json +5 -0
- package/templates/init/_hdocbook/hdocbook.json +1 -0
- package/validateNodeVer.js +17 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hdoc-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Hornbill HDocBook Development Support Tool",
|
|
5
5
|
"main": "hdoc.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"hdoc-db.js",
|
|
12
12
|
"hdoc-build.js",
|
|
13
13
|
"hdoc-build-db.js",
|
|
14
|
+
"hdoc-build-embeddings.js",
|
|
14
15
|
"hdoc-build-onyx.js",
|
|
15
16
|
"hdoc-build-pdf.js",
|
|
16
17
|
"hdoc-bump.js",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"author": "Hornbill Technologies Ltd",
|
|
49
50
|
"license": "ISC",
|
|
50
51
|
"dependencies": {
|
|
52
|
+
"@huggingface/transformers": "3.8.1",
|
|
51
53
|
"@mermaid-js/layout-elk": "0.2.1",
|
|
52
54
|
"american-british-english-translator": "0.2.1",
|
|
53
55
|
"archiver": "8.0.0",
|
|
@@ -59,6 +61,8 @@
|
|
|
59
61
|
"markdown-it-container": "4.0.0",
|
|
60
62
|
"markdown-it-front-matter": "0.2.4",
|
|
61
63
|
"mermaid": "11.15.0",
|
|
62
|
-
"puppeteer": "25.1.0"
|
|
64
|
+
"puppeteer": "25.1.0",
|
|
65
|
+
"turndown": "7.2.1",
|
|
66
|
+
"turndown-plugin-gfm": "1.0.2"
|
|
63
67
|
}
|
|
64
68
|
}
|
|
@@ -50,6 +50,11 @@
|
|
|
50
50
|
"hdocs"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
+
"bookType": {
|
|
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]
|
|
57
|
+
},
|
|
53
58
|
"coverImage": {
|
|
54
59
|
"type": "string",
|
|
55
60
|
"description": "Root-relative path to a cover image used for gallery and social sharing. Optional."
|
package/validateNodeVer.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(() => {
|
|
2
|
-
const vers = process.versions;
|
|
3
|
-
const supportedVersion = 20;
|
|
4
|
-
if (vers?.node) {
|
|
5
|
-
if (Number.parseInt(vers.node, 10) < supportedVersion) {
|
|
6
|
-
console.log("\r\nHornbill HDocBook Tools\r\n");
|
|
7
|
-
console.error(
|
|
8
|
-
`\x1b[31mThis tool requires Node.js version >= ${supportedVersion}.x.\x1b[0m\r\n`,
|
|
9
|
-
);
|
|
10
|
-
process.exit(1);
|
|
11
|
-
}
|
|
12
|
-
} else {
|
|
13
|
-
console.log(
|
|
14
|
-
"\x1b[33mCould not read version of Node.js, continuing...\x1b[0m",
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
})();
|
|
1
|
+
(() => {
|
|
2
|
+
const vers = process.versions;
|
|
3
|
+
const supportedVersion = 20;
|
|
4
|
+
if (vers?.node) {
|
|
5
|
+
if (Number.parseInt(vers.node, 10) < supportedVersion) {
|
|
6
|
+
console.log("\r\nHornbill HDocBook Tools\r\n");
|
|
7
|
+
console.error(
|
|
8
|
+
`\x1b[31mThis tool requires Node.js version >= ${supportedVersion}.x.\x1b[0m\r\n`,
|
|
9
|
+
);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
} else {
|
|
13
|
+
console.log(
|
|
14
|
+
"\x1b[33mCould not read version of Node.js, continuing...\x1b[0m",
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
})();
|