hdoc-tools 0.9.38 → 0.9.39

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.
Files changed (2) hide show
  1. package/hdoc-validate.js +8 -9
  2. package/package.json +1 -1
package/hdoc-validate.js CHANGED
@@ -52,6 +52,7 @@
52
52
  }
53
53
  }
54
54
  }
55
+ return;
55
56
  };
56
57
 
57
58
  const checkNavigation = async function (source_path, flat_nav) {
@@ -377,19 +378,19 @@
377
378
  }
378
379
  }
379
380
 
381
+
380
382
  // Do spellchecking on markdown files
381
383
  let md_files_spellchecked = {};
382
384
  let mdPromiseArray = [];
383
385
  for (let i = 0; i < md_to_validate.length; i++) {
386
+ errors[md_to_validate[i].relativePath] = [];
387
+ messages[md_to_validate[i].relativePath] = [];
388
+ warnings[md_to_validate[i].relativePath] = [];
384
389
  mdPromiseArray.push(md_to_validate[i]);
385
390
  }
386
391
  await Promise.all(mdPromiseArray.map(async (file) => {
387
392
  //await transform_markdown_and_save_html(file);
388
393
  // Initiate maps for errors and verbose messages for markdown file
389
- errors[file.relativePath] = [];
390
- messages[file.relativePath] = [];
391
- warnings[file.relativePath] = [];
392
-
393
394
  await spellcheckContent(file, exclude_spellcheck);
394
395
  md_files_spellchecked[file.relativePath.replace('.' + file.extension, '')] = true;
395
396
  }));
@@ -398,14 +399,12 @@
398
399
  let listContent = '';
399
400
  let htmlPromiseArray = [];
400
401
  for (let i = 0; i < html_to_validate.length; i++) {
402
+ errors[html_to_validate[i].relativePath] = [];
403
+ messages[html_to_validate[i].relativePath] = [];
404
+ warnings[html_to_validate[i].relativePath] = [];
401
405
  htmlPromiseArray.push(html_to_validate[i]);
402
406
  }
403
407
  await Promise.all(mdPromiseArray.map(async (file) => {
404
- // Initiate maps for errors and verbose messages for HTML file
405
- errors[file.relativePath] = [];
406
- messages[file.relativePath] = [];
407
- warnings[file.relativePath] = [];
408
-
409
408
  // Check for British spellings in static HTML content
410
409
  if (!md_files_spellchecked[file.relativePath.replace('.' + file.extension, '')]) {
411
410
  await spellcheckContent(file, exclude_spellcheck);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.9.38",
3
+ "version": "0.9.39",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {