hdoc-tools 0.7.14 → 0.7.15

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
@@ -123,7 +123,7 @@
123
123
  console.log(` Failed to convert: ${conversion_failed}`);
124
124
 
125
125
  console.log(`\r\nValidating paths in generated HTML files`);
126
- const validation_success = validate.run(work_path, verbose);
126
+ const validation_success = validate.run(work_path, docId, verbose);
127
127
  if (!validation_success) {
128
128
  process.exit(1);
129
129
  }
package/hdoc-validate.js CHANGED
@@ -90,7 +90,7 @@ const parseLinkDestination = require('markdown-it/lib/helpers/parse_link_destina
90
90
  };
91
91
 
92
92
 
93
- exports.run = function (source_path, verbose) {
93
+ exports.run = function (source_path, doc_id, verbose) {
94
94
  // Get a list of HTML files in source_path
95
95
  dree.scan(source_path, dreeOptions, fileCallback);
96
96
 
@@ -116,7 +116,7 @@ const parseLinkDestination = require('markdown-it/lib/helpers/parse_link_destina
116
116
  }
117
117
  try {
118
118
  // Write list
119
- const listFile = path.join(source_path, 'list.txt');
119
+ const listFile = path.join(source_path, doc_id, 'list.txt');
120
120
  fs.writeFileSync(listFile, listContent);
121
121
  console.log(`${listFile} created successfully`);
122
122
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {