hdoc-tools 0.19.6 → 0.19.8

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 CHANGED
@@ -1355,10 +1355,12 @@
1355
1355
  // Output to console
1356
1356
  console.log(`\n MD files found: ${conversion_attempted}`);
1357
1357
  console.log(`Successfully converted to HTML: ${conversion_success}`);
1358
- console.error(` Failed to convert: ${conversion_failed}\n`);
1358
+ if (conversion_failed > 0) console.error(` Failed to convert: ${conversion_failed}\n`);
1359
+ else console.log(` Failed to convert: ${conversion_failed}\n`);
1359
1360
  console.log(` Includes Found: ${includes_found}`);
1360
1361
  console.log(` Includes Success: ${includes_success}`);
1361
- console.error(` Includes Failed: ${includes_failed}\n`);
1362
+ if (includes_failed > 0) console.error(` Includes Failed: ${includes_failed}\n`);
1363
+ else console.log(` Includes Failed: ${includes_failed}\n`);
1362
1364
  console.log(
1363
1365
  ` Static HTML Files Found: ${static_html_files.length}\n`
1364
1366
  );
package/hdoc-module.js CHANGED
@@ -631,21 +631,16 @@
631
631
  if (parentLinks.length > 0) {
632
632
  if (parentLinks[0].link === undefined || parentLinks[0].link === "")
633
633
  parentlink = false;
634
- if (
635
- parentLinks[1] &&
636
- parentLinks[1].link === undefined &&
637
- items.length > 0 &&
638
- items[0].link
639
- ) {
640
- parentLinks[1].link = items[0].link;
641
- }
642
- if (
643
- parentLinks[2] &&
644
- parentLinks[2].link === undefined &&
645
- items.length > 0 &&
646
- items[0].link
647
- ) {
648
- parentLinks[2].link = items[0].link;
634
+
635
+ for (let i = 1; i < 10; i++) {
636
+ if (
637
+ parentLinks[i] &&
638
+ parentLinks[i].link === undefined &&
639
+ items.length > 0 &&
640
+ items[0].link
641
+ ) {
642
+ parentLinks[i].link = items[0].link;
643
+ }
649
644
  }
650
645
  }
651
646
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.19.6",
3
+ "version": "0.19.8",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {