hdoc-tools 0.8.41 → 0.8.43
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-module.js
CHANGED
@@ -256,6 +256,7 @@
|
|
256
256
|
response.success = true;
|
257
257
|
let commits = github_response.data;
|
258
258
|
commits.forEach(function(commit){
|
259
|
+
console.log(commit)
|
259
260
|
if (commit.committer && commit.committer.type && commit.committer.type.toLowerCase() === 'user' && commit.committer.login.toLowerCase() !== 'web-flow') {
|
260
261
|
if (!contributors[commit.committer.id]) {
|
261
262
|
response.contributor_count++;
|
package/hdoc-serve.js
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
let docId;
|
15
15
|
let hdocbook_config;
|
16
16
|
|
17
|
-
exports.run = function (ui_path, source_path, md) {
|
17
|
+
exports.run = async function (ui_path, source_path, md) {
|
18
18
|
|
19
19
|
for (let x = 0; x < process.argv.length; x++) {
|
20
20
|
// First two arguments are command, and script
|
@@ -69,7 +69,7 @@
|
|
69
69
|
res.send(JSON.stringify(library, null, 3));
|
70
70
|
});
|
71
71
|
|
72
|
-
function transform_markdown_and_send_html(req, res, file_path) {
|
72
|
+
async function transform_markdown_and_send_html(req, res, file_path) {
|
73
73
|
|
74
74
|
if (fs.existsSync(file_path)) {
|
75
75
|
// we have a markdown representation of the requested HTML file, transform and return
|
@@ -79,9 +79,9 @@
|
|
79
79
|
let md_txt = hdoc.expand_variables(fs.readFileSync(file_path).toString(), docId);
|
80
80
|
|
81
81
|
// Pull in external includes
|
82
|
-
const includes_processed = hdoc.process_includes(file_path, md_txt);
|
82
|
+
const includes_processed = await hdoc.process_includes(file_path, md_txt);
|
83
83
|
md_txt = includes_processed.body;
|
84
|
-
if (includes_processed.errors.length > 0) {
|
84
|
+
if (includes_processed.errors && includes_processed.errors.length > 0) {
|
85
85
|
console.error(`Error(s) when processing includes in ${file_path}`);
|
86
86
|
for (let i = 0; i < includes_processed.errors.length; i++) {
|
87
87
|
console.error(includes_processed.errors[i]);
|
package/package.json
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
name: HDocBuildPush
|
2
|
+
on:
|
3
|
+
# Triggers the workflow on push requests
|
4
|
+
push:
|
5
|
+
paths-ignore:
|
6
|
+
- '.github/**'
|
7
|
+
|
8
|
+
# Allows us to run this workflow manually from the Actions tab
|
9
|
+
workflow_dispatch:
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
run-shared-push-validation:
|
13
|
+
uses: Hornbill-Docs/hdoc-library/.github/workflows/hdocbuild_shared_push.yml@8c43ee2385d364537ecee64b9860869efc73766c
|