hdoc-tools 0.9.24 → 0.9.26
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/LICENSE +21 -0
- package/hdoc-module.js +3 -3
- package/hdoc-validate.js +1 -1
- package/hdoc.js +3 -1
- package/package.json +1 -1
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 Hornbill Docs
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/hdoc-module.js
CHANGED
@@ -328,7 +328,7 @@
|
|
328
328
|
} else {
|
329
329
|
bc[nav_b.link] = [{
|
330
330
|
text: parent_a,
|
331
|
-
link: nav_a.items[0].link
|
331
|
+
link: nav_a.items[0].link !== undefined ? nav_a.items[0].link : ''
|
332
332
|
}];
|
333
333
|
}
|
334
334
|
bc[nav_b.link].push({
|
@@ -347,7 +347,7 @@
|
|
347
347
|
} else {
|
348
348
|
bc[nav_c.link] = [{
|
349
349
|
text: parent_a,
|
350
|
-
link: nav_a.items[0].link
|
350
|
+
link: nav_a.items[0].link !== undefined ? nav_a.items[0].link : ''
|
351
351
|
}];
|
352
352
|
bc[nav_c.link].push({
|
353
353
|
text: parent_b,
|
@@ -369,7 +369,7 @@
|
|
369
369
|
} else {
|
370
370
|
bc[nav_d.link] = [{
|
371
371
|
text: parent_a,
|
372
|
-
link: nav_a.items[0].link
|
372
|
+
link: nav_a.items[0].link !== undefined ? nav_a.items[0].link : ''
|
373
373
|
}];
|
374
374
|
bc[nav_d.link].push({
|
375
375
|
text: parent_b,
|
package/hdoc-validate.js
CHANGED
@@ -107,7 +107,7 @@
|
|
107
107
|
if (file_exists) {
|
108
108
|
const true_file = trueCasePathSync(file_name);
|
109
109
|
if (true_file !== file_name) {
|
110
|
-
nav_errors.push(`Navigation path [${key}] does not match filename case [${
|
110
|
+
nav_errors.push(`Navigation path [${key}] for filename [${file_name}] does not match filename case [${true_file}].`);
|
111
111
|
}
|
112
112
|
}
|
113
113
|
|
package/hdoc.js
CHANGED
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
const preRun = require('./validateNodeVer.js'),
|
6
6
|
fs = require('fs'),
|
7
|
-
path = require('path')
|
7
|
+
path = require('path'),
|
8
|
+
{ trueCasePathSync } = require('true-case-path');
|
8
9
|
|
9
10
|
const packageFile = path.join(__dirname, 'package.json');
|
10
11
|
|
@@ -64,6 +65,7 @@
|
|
64
65
|
}
|
65
66
|
}
|
66
67
|
}
|
68
|
+
source_path = trueCasePathSync(source_path);
|
67
69
|
|
68
70
|
console.log('Hornbill HDocBook Tools v' + getHdocPackageVersion(packageFile), '\r\n');
|
69
71
|
console.log(' Server Path:', __dirname);
|