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 +4 -2
- package/hdoc-module.js +10 -15
- package/package.json +1 -1
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
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
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
|
|