hdoc-tools 0.8.23 → 0.8.24

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.
Files changed (37) hide show
  1. package/hdoc-build-pdf.js +169 -0
  2. package/hdoc-build.js +38 -8
  3. package/hdoc-init.js +0 -1
  4. package/hdoc-validate.js +0 -2
  5. package/hdoc.js +1 -1
  6. package/package.json +4 -2
  7. package/templates/pdf/css/custom-block.css +90 -0
  8. package/templates/pdf/css/fonts.css +221 -0
  9. package/templates/pdf/css/hdocs-pdf.css +242 -0
  10. package/templates/pdf/css/vars.css +393 -0
  11. package/templates/pdf/fonts/inter-cyrillic copy.woff2 +0 -0
  12. package/templates/pdf/fonts/inter-cyrillic-ext.woff2 +0 -0
  13. package/templates/pdf/fonts/inter-cyrillic.woff2 +0 -0
  14. package/templates/pdf/fonts/inter-greek-ext.woff2 +0 -0
  15. package/templates/pdf/fonts/inter-greek.woff2 +0 -0
  16. package/templates/pdf/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
  17. package/templates/pdf/fonts/inter-italic-cyrillic.woff2 +0 -0
  18. package/templates/pdf/fonts/inter-italic-greek-ext.woff2 +0 -0
  19. package/templates/pdf/fonts/inter-italic-greek.woff2 +0 -0
  20. package/templates/pdf/fonts/inter-italic-latin-ext.woff2 +0 -0
  21. package/templates/pdf/fonts/inter-italic-latin.woff2 +0 -0
  22. package/templates/pdf/fonts/inter-italic-vietnamese.woff2 +0 -0
  23. package/templates/pdf/fonts/inter-latin-ext.woff2 +0 -0
  24. package/templates/pdf/fonts/inter-latin.woff2 +0 -0
  25. package/templates/pdf/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
  26. package/templates/pdf/fonts/inter-roman-cyrillic.woff2 +0 -0
  27. package/templates/pdf/fonts/inter-roman-greek-ext.woff2 +0 -0
  28. package/templates/pdf/fonts/inter-roman-greek.woff2 +0 -0
  29. package/templates/pdf/fonts/inter-roman-latin-ext.woff2 +0 -0
  30. package/templates/pdf/fonts/inter-roman-latin.woff2 +0 -0
  31. package/templates/pdf/fonts/inter-roman-vietnamese.woff2 +0 -0
  32. package/templates/pdf/fonts/inter-vietnamese.woff2 +0 -0
  33. package/templates/pdf/images/hornbill-logo-full.svg +92 -0
  34. package/templates/pdf/template-footer.html +19 -0
  35. package/templates/pdf/template.html +13 -0
  36. package/templates/pdf-header-non-git.html +13 -0
  37. package/templates/pdf-header.html +17 -0
@@ -0,0 +1,92 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 2053.3 283.5" style="enable-background:new 0 0 2053.3 283.5;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#224287;}
7
+ .st1{fill:#5CB77C;}
8
+ .st2{fill:#2991D0;}
9
+ .st3{fill:#C71051;}
10
+ .st4{fill:#F2892B;}
11
+ </style>
12
+ <g>
13
+ <g>
14
+ <path class="st0" d="M358.4,234.7V48.2c0-3.6,2-5.6,5.6-5.6h16.2c3.6,0,5.6,2,5.6,5.6v78.7h126.6V48.2c0-3.6,2-5.6,5.6-5.6h16.5
15
+ c3.6,0,5.6,2,5.6,5.6v186.5c0,3.6-2,5.6-5.6,5.6H518c-3.6,0-5.6-2-5.6-5.6v-82.3H385.9v82.3c0,3.6-2,5.6-5.6,5.6H364
16
+ C360.4,240.3,358.4,238.3,358.4,234.7z"/>
17
+ <path class="st0" d="M599.8,172.3v-61.3c0-43.7,18.2-68.3,66.4-68.3h70.3c48.2,0,66.4,24.6,66.4,68.3v61.3c0,43.4-18.2,68-66.4,68
18
+ h-70.3C618,240.3,599.8,215.7,599.8,172.3z M736.4,213.7c28.3,0,38.9-9,38.9-40.6v-63c0-31.9-10.4-40.9-38.9-40.9h-70.3
19
+ c-28.3,0-38.9,9-38.9,40.9v63c0,31.6,10.9,40.6,38.9,40.6H736.4z"/>
20
+ <path class="st0" d="M1003,178.7l38.4,54.9c2.5,3.6,0.8,6.7-3.6,6.7h-19.3c-2.8,0-5-1.1-6.7-3.6l-37.5-55.2h-84.3v53.2
21
+ c0,3.6-2,5.6-5.6,5.6H868c-3.6,0-5.6-2-5.6-5.6V48.2c0-3.6,2-5.6,5.6-5.6h101.4c58.8,0,78.4,21.6,78.4,68.3v3.4
22
+ C1047.8,150.1,1036.6,171.7,1003,178.7z M1020.1,111.2c0-34.4-12.9-42-52.4-42h-77.8v86h77.8c39.2,0,52.4-7.3,52.4-41.2V111.2z"/>
23
+ <path class="st0" d="M1105.2,234.7V48.2c0-3.6,2-5.6,5.6-5.6h17.6c2.8,0,5.3,1.1,7,3.4l127.4,154.3v-152c0-3.6,2-5.6,5.6-5.6h16.2
24
+ c3.6,0,5.6,2,5.6,5.6v186.5c0,3.6-2,5.6-5.6,5.6h-18.2c-2.8,0-5.3-1.1-7-3.4L1132.6,83.5v151.2c0,3.6-2,5.6-5.6,5.6h-16.2
25
+ C1107.2,240.3,1105.2,238.3,1105.2,234.7z"/>
26
+ <path class="st0" d="M1353.6,234.7V48.2c0-3.6,2-5.6,5.6-5.6h107.2c47.3,0,66.4,17.1,66.6,53.2v2.8c0,27.4-12.9,36.4-24.4,42
27
+ c11.8,5.6,25.8,16.5,25.8,45.1v2.5c0,35.8-18.8,52.1-66.1,52.1h-109.2C1355.5,240.3,1353.6,238.3,1353.6,234.7z M1472,128.3
28
+ c21.3,0,32.8-5.9,32.8-26.3v-3.9c0-21.6-12-28.8-39.8-28.8h-84v59.1H1472z M1467,214c27.4,0,39.5-6.7,39.5-28.3v-3.6
29
+ c0-21-11.8-29.4-33.6-29.4H1381V214H1467z"/>
30
+ <path class="st0" d="M1592.7,234.7V48.2c0-3.6,2-5.6,5.6-5.6h16.2c3.6,0,5.6,2,5.6,5.6v186.5c0,3.6-2,5.6-5.6,5.6h-16.2
31
+ C1594.6,240.3,1592.7,238.3,1592.7,234.7z"/>
32
+ <path class="st0" d="M1683.4,234.7V48.2c0-3.6,2-5.6,5.6-5.6h16.2c3.6,0,5.6,2,5.6,5.6v165.5h127.4c3.6,0,5.6,2,5.6,5.6v15.4
33
+ c0,3.6-2,5.6-5.6,5.6H1689C1685.4,240.3,1683.4,238.3,1683.4,234.7z"/>
34
+ <path class="st0" d="M1892.8,234.7V48.2c0-3.6,2-5.6,5.6-5.6h16.2c3.6,0,5.6,2,5.6,5.6v165.5h127.4c3.6,0,5.6,2,5.6,5.6v15.4
35
+ c0,3.6-2,5.6-5.6,5.6h-149.2C1894.8,240.3,1892.8,238.3,1892.8,234.7z"/>
36
+ </g>
37
+ <g>
38
+ <g>
39
+ <g>
40
+ <path class="st1" d="M185.1,251.3c0,0,0,0.1,0,0.1C185.1,251.3,185.1,251.3,185.1,251.3z"/>
41
+ </g>
42
+ <g>
43
+ <path class="st1" d="M187.4,246.9c0.1-0.2,0.3-0.4,0.4-0.6C187.7,246.5,187.5,246.7,187.4,246.9z"/>
44
+ </g>
45
+ <g>
46
+ <path class="st1" d="M186.5,248.5c-0.1,0.2-0.2,0.4-0.3,0.6C186.2,248.9,186.3,248.7,186.5,248.5z"/>
47
+ </g>
48
+ </g>
49
+ </g>
50
+ <g>
51
+ <path class="st2" d="M111.3,35.1c-4.6,5.4-10.6,9.2-16.9,10.6c-6.2,1.4-12.2,0.3-16.9-2.9c-12.2,16.7-22.2,59.9-10.6,97.6
52
+ c0.4,1.4,2.3,1.5,3,0.2c0,0,5.5-99.8,113.2-93c1.4,0.1,2.2-1.5,1.4-2.6c-25.9-33.3-62.6-29.5-65.6-29.5
53
+ C118.8,22.2,116.2,29.2,111.3,35.1z"/>
54
+ <ellipse transform="matrix(0.7049 -0.7093 0.7093 0.7049 12.0913 71.5212)" class="st2" cx="92" cy="21.2" rx="23.8" ry="18.2"/>
55
+ </g>
56
+ <g>
57
+ <g>
58
+ <path class="st3" d="M23.8,173.1c0,0-0.1,0-0.1,0C23.8,173.1,23.8,173.1,23.8,173.1z"/>
59
+ <path class="st3" d="M28.2,175.5c0.2,0.1,0.4,0.3,0.6,0.4C28.6,175.7,28.4,175.6,28.2,175.5z"/>
60
+ <path class="st4" d="M35.1,172.6c5.4,4.6,9.2,10.6,10.6,16.9c1.4,6.2,0.3,12.2-2.9,16.9c16.7,12.2,59.9,22.2,97.6,10.6
61
+ c1.4-0.4,1.5-2.3,0.2-3c0,0-99.8-5.5-93-113.2c0.1-1.4-1.5-2.2-2.6-1.4c-33.3,25.9-29.5,62.6-29.5,65.6
62
+ C22.2,165,29.2,167.7,35.1,172.6z"/>
63
+ <path class="st3" d="M26.6,174.5c-0.2-0.1-0.4-0.2-0.6-0.4C26.2,174.3,26.4,174.4,26.6,174.5z"/>
64
+ </g>
65
+
66
+ <ellipse transform="matrix(0.7049 -0.7093 0.7093 0.7049 -129.8393 71.6899)" class="st4" cx="21.2" cy="191.9" rx="18.2" ry="23.8"/>
67
+ </g>
68
+ <g>
69
+ <g>
70
+ <path class="st1" d="M173.2,248.4c4.6-5.4,10.6-9.2,16.9-10.6c6.2-1.4,12.2-0.3,16.9,2.9c12.2-16.7,22.2-59.9,10.6-97.6
71
+ c-0.4-1.4-2.3-1.5-3-0.2c0,0-5.5,99.8-113.2,93c-1.4-0.1-2.2,1.5-1.4,2.6c25.9,33.3,62.6,29.5,65.6,29.5
72
+ C165.6,261.3,168.2,254.2,173.2,248.4z"/>
73
+ </g>
74
+ <g>
75
+
76
+ <ellipse transform="matrix(0.7049 -0.7093 0.7093 0.7049 -129.2198 213.9002)" class="st1" cx="192.4" cy="262.2" rx="23.8" ry="18.2"/>
77
+ </g>
78
+ </g>
79
+ <g>
80
+ <g>
81
+ <path class="st3" d="M259.6,110c0,0,0.1,0,0.1,0C259.7,110.1,259.7,110.1,259.6,110z"/>
82
+ <path class="st3" d="M255.2,107.7c-0.2-0.1-0.4-0.3-0.6-0.4C254.8,107.4,255,107.6,255.2,107.7z"/>
83
+ <path class="st3" d="M248.4,110.6c-5.4-4.6-9.2-10.6-10.6-16.9c-1.4-6.2-0.3-12.2,2.9-16.9c-16.7-12.2-59.9-22.2-97.6-10.6
84
+ c-1.4,0.4-1.5,2.3-0.2,3c0,0,99.8,5.5,93,113.2c-0.1,1.4,1.5,2.2,2.6,1.4c33.3-25.9,29.5-62.6,29.5-65.6
85
+ C261.3,118.1,254.2,115.5,248.4,110.6z"/>
86
+ <path class="st3" d="M256.8,108.7c0.2,0.1,0.4,0.2,0.6,0.4C257.2,108.9,257,108.8,256.8,108.7z"/>
87
+ </g>
88
+
89
+ <ellipse transform="matrix(0.7049 -0.7093 0.7093 0.7049 12.6367 212.9606)" class="st3" cx="262.2" cy="91.3" rx="18.2" ry="23.8"/>
90
+ </g>
91
+ </g>
92
+ </svg>
@@ -0,0 +1,19 @@
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
+ }
15
+ </style>
16
+
17
+ <div class="wrap">
18
+ <h6><span class="pageNumber"></span> of <span class="totalPages"></span></h6>
19
+ </div>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" /></head>
4
+ <body>
5
+ <div class="header">
6
+ <img src="{{hb_logo}}" />
7
+ <h3>{{book_title}}</h3>
8
+ <div style="clear: both;"></div>
9
+ </div>
10
+ <hr>
11
+ {{document_content}}
12
+ </body>
13
+ </html>
@@ -0,0 +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>
13
+ </div>
@@ -0,0 +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>
17
+ </div>