hdoc-tools 0.8.27 → 0.8.29
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-db.js +4 -0
- package/hdoc-build.js +3 -0
- package/package.json +1 -1
package/hdoc-build-db.js
CHANGED
@@ -18,12 +18,14 @@
|
|
18
18
|
],
|
19
19
|
hdoc_meta: [
|
20
20
|
'doc_id INTEGER',
|
21
|
+
'book_id',
|
21
22
|
'contributor_count INTEGER UNINDEXED',
|
22
23
|
'edit_url UNINDEXED',
|
23
24
|
'last_commit UNINDEXED'
|
24
25
|
],
|
25
26
|
hdoc_contributors: [
|
26
27
|
'doc_id INTEGER',
|
28
|
+
'book_id',
|
27
29
|
'login',
|
28
30
|
'name',
|
29
31
|
'avatar UNINDEXED',
|
@@ -97,6 +99,7 @@
|
|
97
99
|
// Now add metadata
|
98
100
|
const meta_vals = [
|
99
101
|
parseInt(index_response.row_id, 10),
|
102
|
+
doc_id,
|
100
103
|
index_records[i].metadata.contributor_count,
|
101
104
|
index_records[i].metadata.edit_url,
|
102
105
|
index_records[i].metadata.last_commit
|
@@ -115,6 +118,7 @@
|
|
115
118
|
for (let j = 0; j < index_records[i].contributors.length; j++) {
|
116
119
|
const contrib_vals = [
|
117
120
|
parseInt(index_response.row_id, 10),
|
121
|
+
doc_id,
|
118
122
|
index_records[i].contributors[j].login,
|
119
123
|
index_records[i].contributors[j].name,
|
120
124
|
index_records[i].contributors[j].avatar_url,
|
package/hdoc-build.js
CHANGED
@@ -48,6 +48,9 @@
|
|
48
48
|
verbose = false;
|
49
49
|
|
50
50
|
const pdf_path_excluded = function(relative_path) {
|
51
|
+
if (!hdocbook_project.pdfGeneration || hdocbook_project.pdfGeneration.exclude_paths === undefined) {
|
52
|
+
return false;
|
53
|
+
}
|
51
54
|
if (relative_path.startsWith('/')) {
|
52
55
|
relative_path = relative_path.slice(1, relative_path.length);
|
53
56
|
}
|