hdoc-tools 0.8.36 → 0.8.38
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 +1 -0
- package/hdoc-validate.js +2 -7
- package/package.json +1 -1
package/hdoc-build.js
CHANGED
package/hdoc-validate.js
CHANGED
@@ -41,11 +41,6 @@
|
|
41
41
|
continue;
|
42
42
|
}
|
43
43
|
|
44
|
-
// Skip mailto links
|
45
|
-
if (links[i].startsWith('mailto:')) {
|
46
|
-
continue;
|
47
|
-
}
|
48
|
-
|
49
44
|
try {
|
50
45
|
await axios.get(links[i], { httpsAgent: agent });
|
51
46
|
messages[htmlFile.relativePath].push(`Link is a valid external URL: ${links[i]}`);
|
@@ -176,8 +171,8 @@
|
|
176
171
|
// Get a list of HTML files in source_path
|
177
172
|
dree.scan(source_path, dreeOptions, fileCallback);
|
178
173
|
|
179
|
-
if (hdocbook_project.
|
180
|
-
hdocbook_project.
|
174
|
+
if (hdocbook_project.validation && hdocbook_project.validation.exclude_links && hdocbook_project.validation.exclude_links instanceof Array) {
|
175
|
+
hdocbook_project.validation.exclude_links.forEach(function(excl_link) {
|
181
176
|
exclude_links[excl_link] = true;
|
182
177
|
});
|
183
178
|
}
|