hdoc-tools 0.19.5 → 0.19.7
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-create.js +1 -1
- package/hdoc-module.js +10 -15
- package/package.json +1 -1
package/hdoc-create.js
CHANGED
@@ -47,7 +47,7 @@
|
|
47
47
|
for (const navkey in nav_paths[key]) {
|
48
48
|
if (nav_paths[key].hasOwnProperty(navkey)) {
|
49
49
|
for (let i = 0; i < nav_paths[key][navkey].length; i++) {
|
50
|
-
if (!processed_links[nav_paths[key][navkey][i].link]) {
|
50
|
+
if (nav_paths[key][navkey][i].link && !processed_links[nav_paths[key][navkey][i].link]) {
|
51
51
|
nav_paths[key][navkey][i].path = path.join(source_path, nav_paths[key][navkey][i].link);
|
52
52
|
await add_doc(nav_paths[key][navkey][i]);
|
53
53
|
}
|
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
|
|