hdoc-tools 0.8.0 → 0.8.2
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 -3
- package/package.json +1 -1
package/hdoc-build.js
CHANGED
|
@@ -298,7 +298,7 @@ const {
|
|
|
298
298
|
|
|
299
299
|
// Now build the index
|
|
300
300
|
console.log('Performing SQlite index creation...\n');
|
|
301
|
-
let db_name = path.join(work_path, docId,
|
|
301
|
+
let db_name = path.join(work_path, docId, 'index.db');
|
|
302
302
|
const db = new Database(db_name);
|
|
303
303
|
console.log(`Database created: ${db_name}`);
|
|
304
304
|
|
|
@@ -322,13 +322,14 @@ const {
|
|
|
322
322
|
];
|
|
323
323
|
hdoc_index.insert_record(db, table_name, index_cols, index_vals, hdocbook_config.docId, index_records[i].index_html.fm_props.title);
|
|
324
324
|
}
|
|
325
|
+
console.log(`\nIndex Build Complete`);
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
try {
|
|
328
329
|
const zip_path = path.join(work_path, docId + '.zip');
|
|
329
330
|
zipper.sync.zip(path.join(work_path, docId)).compress().save(zip_path);
|
|
330
|
-
console.log(`\nZIP Creation Success: ${zip_path}\
|
|
331
|
-
console.log('Build Complete\
|
|
331
|
+
console.log(`\nZIP Creation Success: ${zip_path}\n`);
|
|
332
|
+
console.log('Build Complete\n');
|
|
332
333
|
} catch (e) {
|
|
333
334
|
console.log('\nError creating ZIP: ' + e);
|
|
334
335
|
}
|