hdoc-tools 0.11.7 → 0.11.9
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-build-db.js +152 -152
- package/hdoc-build-pdf.js +172 -172
- package/hdoc-build.js +7 -2
- package/hdoc-bump.js +108 -108
- package/hdoc-create.js +90 -90
- package/hdoc-db.js +94 -94
- package/hdoc-help.js +49 -49
- package/hdoc-module.js +390 -390
- package/hdoc-serve.js +14 -17
- package/hdoc-validate.js +548 -548
- package/hdoc-ver.js +42 -42
- package/package.json +1 -1
- package/templates/doc-header-non-git.html +22 -22
- package/templates/doc-header.html +29 -29
- package/templates/pdf/css/custom-block.css +90 -90
- package/templates/pdf/css/fonts.css +221 -221
- package/templates/pdf/css/hdocs-pdf.css +246 -246
- package/templates/pdf/css/vars.css +393 -393
- package/templates/pdf/template-footer.html +19 -19
- package/templates/pdf/template-header.html +37 -37
- package/templates/pdf/template.html +20 -20
- package/templates/pdf-header-non-git.html +12 -12
- package/templates/pdf-header.html +16 -16
- package/validateNodeVer.js +12 -12
@@ -1,20 +1,20 @@
|
|
1
|
-
<style>
|
2
|
-
.wrap {
|
3
|
-
width: 100%;
|
4
|
-
text-align: center;
|
5
|
-
display:flex;
|
6
|
-
justify-content:center;
|
7
|
-
margin-right: 40px;
|
8
|
-
margin-left: 40px;
|
9
|
-
}
|
10
|
-
|
11
|
-
.wrap h6 {
|
12
|
-
float: left;
|
13
|
-
font-size: 10px;
|
14
|
-
margin-bottom: 6px;
|
15
|
-
}
|
16
|
-
</style>
|
17
|
-
|
18
|
-
<div class="wrap">
|
19
|
-
<h6><span class="pageNumber"></span> of <span class="totalPages"></span></h6>
|
1
|
+
<style>
|
2
|
+
.wrap {
|
3
|
+
width: 100%;
|
4
|
+
text-align: center;
|
5
|
+
display:flex;
|
6
|
+
justify-content:center;
|
7
|
+
margin-right: 40px;
|
8
|
+
margin-left: 40px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.wrap h6 {
|
12
|
+
float: left;
|
13
|
+
font-size: 10px;
|
14
|
+
margin-bottom: 6px;
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
|
18
|
+
<div class="wrap">
|
19
|
+
<h6><span class="pageNumber"></span> of <span class="totalPages"></span></h6>
|
20
20
|
</div>
|
@@ -1,38 +1,38 @@
|
|
1
|
-
<style>
|
2
|
-
.header {
|
3
|
-
width: 100%;
|
4
|
-
height: 60px;
|
5
|
-
position: relative;
|
6
|
-
margin-left: 28px;
|
7
|
-
margin-right: 28px;
|
8
|
-
margin-bottom: 20px;
|
9
|
-
margin-top: -5px;
|
10
|
-
}
|
11
|
-
|
12
|
-
.header img {
|
13
|
-
width: 140px;
|
14
|
-
margin-right: 5px;
|
15
|
-
margin-top: 6px;
|
16
|
-
margin-bottom: 12px;
|
17
|
-
float: right;
|
18
|
-
}
|
19
|
-
|
20
|
-
.header h3 {
|
21
|
-
font-size: 12px;
|
22
|
-
font-weight: light;
|
23
|
-
margin-left: 5px;
|
24
|
-
float: left;
|
25
|
-
margin-top: 10px;
|
26
|
-
}
|
27
|
-
.header hr {
|
28
|
-
border: none;
|
29
|
-
border-top: 1px solid rgba(60, 60, 60, 0.29);
|
30
|
-
}
|
31
|
-
</style>
|
32
|
-
|
33
|
-
<div class="header">
|
34
|
-
<img src="{{hb_logo}}" />
|
35
|
-
<h3>{{book_title}}</h3>
|
36
|
-
<div style="clear: both;"></div>
|
37
|
-
<hr/>
|
1
|
+
<style>
|
2
|
+
.header {
|
3
|
+
width: 100%;
|
4
|
+
height: 60px;
|
5
|
+
position: relative;
|
6
|
+
margin-left: 28px;
|
7
|
+
margin-right: 28px;
|
8
|
+
margin-bottom: 20px;
|
9
|
+
margin-top: -5px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.header img {
|
13
|
+
width: 140px;
|
14
|
+
margin-right: 5px;
|
15
|
+
margin-top: 6px;
|
16
|
+
margin-bottom: 12px;
|
17
|
+
float: right;
|
18
|
+
}
|
19
|
+
|
20
|
+
.header h3 {
|
21
|
+
font-size: 12px;
|
22
|
+
font-weight: light;
|
23
|
+
margin-left: 5px;
|
24
|
+
float: left;
|
25
|
+
margin-top: 10px;
|
26
|
+
}
|
27
|
+
.header hr {
|
28
|
+
border: none;
|
29
|
+
border-top: 1px solid rgba(60, 60, 60, 0.29);
|
30
|
+
}
|
31
|
+
</style>
|
32
|
+
|
33
|
+
<div class="header">
|
34
|
+
<img src="{{hb_logo}}" />
|
35
|
+
<h3>{{book_title}}</h3>
|
36
|
+
<div style="clear: both;"></div>
|
37
|
+
<hr/>
|
38
38
|
</div>
|
@@ -1,21 +1,21 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
|
4
|
-
<head>
|
5
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" />
|
6
|
-
<link rel="stylesheet"
|
7
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/base16/humanoid-light.min.css">
|
8
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body>
|
12
|
-
{{document_content}}
|
13
|
-
</body>
|
14
|
-
<script type="text/javascript">
|
15
|
-
|
16
|
-
// Using highlightAll method to
|
17
|
-
// highlight the code
|
18
|
-
hljs.highlightAll();
|
19
|
-
</script>
|
20
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" />
|
6
|
+
<link rel="stylesheet"
|
7
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/base16/humanoid-light.min.css">
|
8
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
{{document_content}}
|
13
|
+
</body>
|
14
|
+
<script type="text/javascript">
|
15
|
+
|
16
|
+
// Using highlightAll method to
|
17
|
+
// highlight the code
|
18
|
+
hljs.highlightAll();
|
19
|
+
</script>
|
20
|
+
|
21
21
|
</html>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<div class="document-header">
|
2
|
-
|
3
|
-
<h1>{{title}}</h1>
|
4
|
-
|
5
|
-
<div class="hb-container-horizontal">
|
6
|
-
<div class="hb-center-v hb-container-expand">
|
7
|
-
<ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
|
8
|
-
<li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
|
9
|
-
<li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
</div>
|
1
|
+
<div class="document-header">
|
2
|
+
|
3
|
+
<h1>{{title}}</h1>
|
4
|
+
|
5
|
+
<div class="hb-container-horizontal">
|
6
|
+
<div class="hb-center-v hb-container-expand">
|
7
|
+
<ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
|
8
|
+
<li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
|
9
|
+
<li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
13
|
</div>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<div class="document-header">
|
2
|
-
|
3
|
-
<h1>{{title}}</h1>
|
4
|
-
|
5
|
-
<div class="hb-container-horizontal">
|
6
|
-
<div class="hb-center-v hb-container-expand">
|
7
|
-
<ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
|
8
|
-
<li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
|
9
|
-
<li class="ps-0 mt-0 nav-bar-item">{{last-update}}</li>
|
10
|
-
<li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
|
11
|
-
<li class="ps-0 mt-0 nav-bar-item">
|
12
|
-
<a class="link c-pointer" data-bs-toggle="modal" data-bs-target="#contributersModal">{{contributor-count}} contributors</a>
|
13
|
-
</li>
|
14
|
-
</ul>
|
15
|
-
</div>
|
16
|
-
</div>
|
1
|
+
<div class="document-header">
|
2
|
+
|
3
|
+
<h1>{{title}}</h1>
|
4
|
+
|
5
|
+
<div class="hb-container-horizontal">
|
6
|
+
<div class="hb-center-v hb-container-expand">
|
7
|
+
<ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
|
8
|
+
<li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
|
9
|
+
<li class="ps-0 mt-0 nav-bar-item">{{last-update}}</li>
|
10
|
+
<li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
|
11
|
+
<li class="ps-0 mt-0 nav-bar-item">
|
12
|
+
<a class="link c-pointer" data-bs-toggle="modal" data-bs-target="#contributersModal">{{contributor-count}} contributors</a>
|
13
|
+
</li>
|
14
|
+
</ul>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
17
|
</div>
|
package/validateNodeVer.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
(function() {
|
2
|
-
'use strict';
|
3
|
-
const vers = process.versions;
|
4
|
-
if (vers && vers.node) {
|
5
|
-
if (parseInt(vers.node, 10) < 18) {
|
6
|
-
console.log('\r\nHornbill HDocBook Tools\r\n');
|
7
|
-
console.error('\x1b[31mThis tool requires Node.js version >= 18.x.\x1b[0m\r\n');
|
8
|
-
process.exit(1);
|
9
|
-
}
|
10
|
-
} else {
|
11
|
-
console.log('\x1b[33mCould not read version of Node.js, continuing...\x1b[0m');
|
12
|
-
}
|
1
|
+
(function() {
|
2
|
+
'use strict';
|
3
|
+
const vers = process.versions;
|
4
|
+
if (vers && vers.node) {
|
5
|
+
if (parseInt(vers.node, 10) < 18) {
|
6
|
+
console.log('\r\nHornbill HDocBook Tools\r\n');
|
7
|
+
console.error('\x1b[31mThis tool requires Node.js version >= 18.x.\x1b[0m\r\n');
|
8
|
+
process.exit(1);
|
9
|
+
}
|
10
|
+
} else {
|
11
|
+
console.log('\x1b[33mCould not read version of Node.js, continuing...\x1b[0m');
|
12
|
+
}
|
13
13
|
})();
|