hdoc-tools 0.9.34 → 0.9.36
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-build.js +2 -3
- package/hdoc-module.js +0 -1
- package/hdoc-validate.js +1 -4
- package/package.json +1 -1
package/hdoc-build.js
CHANGED
@@ -632,7 +632,6 @@
|
|
632
632
|
|
633
633
|
console.log(`Loading product families...`);
|
634
634
|
const prods = await hdoc.load_product_families();
|
635
|
-
console.log(prods)
|
636
635
|
if (!prods.success) {
|
637
636
|
console.log(`ERROR: Failed to load product families: ${prods.errors}\n`);
|
638
637
|
process.exit(1);
|
@@ -738,7 +737,7 @@
|
|
738
737
|
for (let i = 0; i < md_files.length; i++) {
|
739
738
|
mdPromiseArray.push(md_files[i]);
|
740
739
|
}
|
741
|
-
const chunkSize =
|
740
|
+
const chunkSize = 4;
|
742
741
|
for (let i = 0; i < mdPromiseArray.length; i += chunkSize) {
|
743
742
|
const chunk = mdPromiseArray.slice(i, i + chunkSize);
|
744
743
|
// do whatever
|
@@ -754,7 +753,7 @@
|
|
754
753
|
for (let i = 0; i < static_html_files.length; i++) {
|
755
754
|
htmlPromiseArray.push(static_html_files[i]);
|
756
755
|
}
|
757
|
-
for (let i = 0; i <
|
756
|
+
for (let i = 0; i < htmlPromiseArray.length; i += chunkSize) {
|
758
757
|
const chunk = htmlPromiseArray.slice(i, i + chunkSize);
|
759
758
|
await Promise.all(chunk.map(async (file) => {
|
760
759
|
await transform_static_html(file);
|
package/hdoc-module.js
CHANGED
package/hdoc-validate.js
CHANGED
@@ -319,10 +319,7 @@
|
|
319
319
|
|
320
320
|
exports.run = async function (source_path, doc_id, verbose, hdocbook_config, hdocbook_project, nav_items, prod_families, prods_supported) {
|
321
321
|
console.log(`Performing Validation and Building SEO Link List...`);
|
322
|
-
|
323
|
-
// Load product families
|
324
|
-
await load_product_families();
|
325
|
-
|
322
|
+
|
326
323
|
// Get a list of HTML files in source_path
|
327
324
|
dree.scan(source_path, dreeOptions, fileCallback);
|
328
325
|
|