hdoc-tools 0.11.6 → 0.11.7

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-ver.js CHANGED
@@ -1,43 +1,43 @@
1
- (function () {
2
- 'use strict';
3
-
4
- const fs = require('fs'),
5
- path = require('path');
6
-
7
- exports.run = function (source_path) {
8
- console.log(`Retrieving book version...\n`);
9
-
10
- // Get document ID
11
- const hdocbook_project_config_path = path.join(source_path, 'hdocbook-project.json');
12
- let hdocbook_project;
13
- try {
14
- hdocbook_project = require(hdocbook_project_config_path);
15
- } catch (e) {
16
- console.log('File not found: hdocbook-project.json:');
17
- console.log(e, '\n');
18
- console.log('hdoc ver needs to be run in the root of a HDoc Book.\n');
19
- process.exit(1);
20
- }
21
- const doc_id = hdocbook_project.docId;
22
-
23
- const book_path = path.join(source_path, doc_id),
24
- hdocbook_path = path.join(book_path, 'hdocbook.json');
25
-
26
- let hdocbook_config;
27
- try {
28
- hdocbook_config = require(hdocbook_path);
29
- } catch (e) {
30
- console.log('File not found: hdocbook.json');
31
- console.log(e, '\n');
32
- console.log('hdoc ver needs to be run in the root of a HDoc Book.\n');
33
- process.exit(1);
34
- }
35
- if (hdocbook_config.version && hdocbook_config.version !== '') {
36
- console.log(`Book version: ${hdocbook_config.version}\n`);
37
- } else {
38
- console.log(`Error - this book has no version defined.\n`);
39
- process.exit(1);
40
- }
41
- };
42
-
1
+ (function () {
2
+ 'use strict';
3
+
4
+ const fs = require('fs'),
5
+ path = require('path');
6
+
7
+ exports.run = function (source_path) {
8
+ console.log(`Retrieving book version...\n`);
9
+
10
+ // Get document ID
11
+ const hdocbook_project_config_path = path.join(source_path, 'hdocbook-project.json');
12
+ let hdocbook_project;
13
+ try {
14
+ hdocbook_project = require(hdocbook_project_config_path);
15
+ } catch (e) {
16
+ console.log('File not found: hdocbook-project.json:');
17
+ console.log(e, '\n');
18
+ console.log('hdoc ver needs to be run in the root of a HDoc Book.\n');
19
+ process.exit(1);
20
+ }
21
+ const doc_id = hdocbook_project.docId;
22
+
23
+ const book_path = path.join(source_path, doc_id),
24
+ hdocbook_path = path.join(book_path, 'hdocbook.json');
25
+
26
+ let hdocbook_config;
27
+ try {
28
+ hdocbook_config = require(hdocbook_path);
29
+ } catch (e) {
30
+ console.log('File not found: hdocbook.json');
31
+ console.log(e, '\n');
32
+ console.log('hdoc ver needs to be run in the root of a HDoc Book.\n');
33
+ process.exit(1);
34
+ }
35
+ if (hdocbook_config.version && hdocbook_config.version !== '') {
36
+ console.log(`Book version: ${hdocbook_config.version}\n`);
37
+ } else {
38
+ console.log(`Error - this book has no version defined.\n`);
39
+ process.exit(1);
40
+ }
41
+ };
42
+
43
43
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.11.6",
3
+ "version": "0.11.7",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {
@@ -1,23 +1,23 @@
1
- <div class="document-header">
2
- <div class="hb-container-horizontal">
3
- <div class="hb-center-v hb-container-expand">
4
- <ul class="ps-0 nav-bar-nav-list noeffects after-fslash overflow-ellipsis">{{breadcrumbs}}</ul>
5
- </div>
6
- <div class="toolbar-right hb-center-v">
7
- <a class="toolbar-action documentation-menu-popper">
8
- <i class="bi bi-three-dots-vertical"></i>
9
- </a>
10
- </div>
11
- </div>
12
-
13
- <h1>{{title}}</h1>
14
-
15
- <div class="hb-container-horizontal">
16
- <div class="hb-center-v hb-container-expand">
17
- <ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
18
- <li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
19
- <li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
20
- </ul>
21
- </div>
22
- </div>
1
+ <div class="document-header">
2
+ <div class="hb-container-horizontal">
3
+ <div class="hb-center-v hb-container-expand">
4
+ <ul class="ps-0 nav-bar-nav-list noeffects after-fslash overflow-ellipsis">{{breadcrumbs}}</ul>
5
+ </div>
6
+ <div class="toolbar-right hb-center-v">
7
+ <a class="toolbar-action documentation-menu-popper">
8
+ <i class="bi bi-three-dots-vertical"></i>
9
+ </a>
10
+ </div>
11
+ </div>
12
+
13
+ <h1>{{title}}</h1>
14
+
15
+ <div class="hb-container-horizontal">
16
+ <div class="hb-center-v hb-container-expand">
17
+ <ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
18
+ <li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
19
+ <li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
20
+ </ul>
21
+ </div>
22
+ </div>
23
23
  </div>
@@ -1,30 +1,30 @@
1
- <div class="document-header">
2
- <div class="hb-container-horizontal">
3
- <div class="hb-center-v hb-container-expand">
4
- <ul class="ps-0 nav-bar-nav-list noeffects after-fslash overflow-ellipsis">{{breadcrumbs}}</ul>
5
- </div>
6
- <div class="toolbar-right hb-center-v">
7
- <a target="_blank" class="toolbar-action" href="{{edit-url}}">
8
- <i class="bi bi-pencil"></i>
9
- </a>
10
- <a class="toolbar-action documentation-menu-popper">
11
- <i class="bi bi-three-dots-vertical"></i>
12
- </a>
13
- </div>
14
- </div>
15
-
16
- <h1>{{title}}</h1>
17
-
18
- <div class="hb-container-horizontal">
19
- <div class="hb-center-v hb-container-expand">
20
- <ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
21
- <li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
22
- <li class="ps-0 mt-0 nav-bar-item">{{last-update}}</li>
23
- <li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
24
- <li class="ps-0 mt-0 nav-bar-item">
25
- <a class="link c-pointer" data-bs-toggle="modal" data-bs-target="#contributersModal">{{contributor-count}} contributors</a>
26
- </li>
27
- </ul>
28
- </div>
29
- </div>
1
+ <div class="document-header">
2
+ <div class="hb-container-horizontal">
3
+ <div class="hb-center-v hb-container-expand">
4
+ <ul class="ps-0 nav-bar-nav-list noeffects after-fslash overflow-ellipsis">{{breadcrumbs}}</ul>
5
+ </div>
6
+ <div class="toolbar-right hb-center-v">
7
+ <a target="_blank" class="toolbar-action" href="{{edit-url}}">
8
+ <i class="bi bi-pencil"></i>
9
+ </a>
10
+ <a class="toolbar-action documentation-menu-popper">
11
+ <i class="bi bi-three-dots-vertical"></i>
12
+ </a>
13
+ </div>
14
+ </div>
15
+
16
+ <h1>{{title}}</h1>
17
+
18
+ <div class="hb-container-horizontal">
19
+ <div class="hb-center-v hb-container-expand">
20
+ <ul class="ps-0 nav-bar-nav-list noeffects after-bullets overflow-ellipsis text-light-2">
21
+ <li class="ps-0 mt-0 nav-bar-item">{{doc-type}}</li>
22
+ <li class="ps-0 mt-0 nav-bar-item">{{last-update}}</li>
23
+ <li class="ps-0 mt-0 nav-bar-item">{{reading-time}} minutes to read</li>
24
+ <li class="ps-0 mt-0 nav-bar-item">
25
+ <a class="link c-pointer" data-bs-toggle="modal" data-bs-target="#contributersModal">{{contributor-count}} contributors</a>
26
+ </li>
27
+ </ul>
28
+ </div>
29
+ </div>
30
30
  </div>
@@ -1,90 +1,90 @@
1
- .custom-block {
2
- border: 1px solid transparent;
3
- border-radius: 8px;
4
- padding: 16px 16px 8px;
5
- line-height: 24px;
6
- font-size: var(--htl-default-font-size);
7
- color: var(--htl-c-text-2);
8
- }
9
-
10
- .custom-block.info {
11
- border-color: var(--htl-custom-block-info-border);
12
- color: var(--htl-custom-block-info-text);
13
- background-color: var(--htl-custom-block-info-bg);
14
- }
15
-
16
- .custom-block.info code {
17
- background-color: var(--htl-custom-block-info-code-bg);
18
- }
19
-
20
- .custom-block.tip {
21
- border-color: var(--htl-custom-block-tip-border);
22
- color: var(--htl-custom-block-tip-text);
23
- background-color: var(--htl-custom-block-tip-bg);
24
- }
25
-
26
- .custom-block.tip code {
27
- background-color: var(--htl-custom-block-tip-code-bg);
28
- }
29
-
30
- .custom-block.warning {
31
- border-color: var(--htl-custom-block-warning-border);
32
- color: var(--htl-custom-block-warning-text);
33
- background-color: var(--htl-custom-block-warning-bg);
34
- }
35
-
36
- .custom-block.warning code {
37
- background-color: var(--htl-custom-block-warning-code-bg);
38
- }
39
-
40
- .custom-block.danger {
41
- border-color: var(--htl-custom-block-danger-border);
42
- color: var(--htl-custom-block-danger-text);
43
- background-color: var(--htl-custom-block-danger-bg);
44
- }
45
-
46
- .custom-block.danger code {
47
- background-color: var(--htl-custom-block-danger-code-bg);
48
- }
49
-
50
- .custom-block.details {
51
- border-color: var(--htl-custom-block-details-border);
52
- color: var(--htl-custom-block-details-text);
53
- background-color: var(--htl-custom-block-details-bg);
54
- }
55
-
56
- .custom-block.details code {
57
- background-color: var(--htl-custom-block-details-code-bg);
58
- }
59
-
60
- .custom-block-title {
61
- font-weight: 700;
62
- }
63
-
64
- .custom-block p + p {
65
- margin: 8px 0;
66
- }
67
-
68
- .custom-block.details summary {
69
- margin: 0 0 8px;
70
- font-weight: 700;
71
- }
72
-
73
- .custom-block.details summary + p {
74
- margin: 8px 0;
75
- }
76
-
77
- .custom-block a {
78
- color: inherit;
79
- font-weight: 600;
80
- text-decoration: underline;
81
- transition: opacity 0.25s;
82
- }
83
-
84
- .custom-block a:hover {
85
- opacity: 0.6;
86
- }
87
-
88
- .custom-block code {
89
- font-size: var(--htl-custom-block-code-font-size);
90
- }
1
+ .custom-block {
2
+ border: 1px solid transparent;
3
+ border-radius: 8px;
4
+ padding: 16px 16px 8px;
5
+ line-height: 24px;
6
+ font-size: var(--htl-default-font-size);
7
+ color: var(--htl-c-text-2);
8
+ }
9
+
10
+ .custom-block.info {
11
+ border-color: var(--htl-custom-block-info-border);
12
+ color: var(--htl-custom-block-info-text);
13
+ background-color: var(--htl-custom-block-info-bg);
14
+ }
15
+
16
+ .custom-block.info code {
17
+ background-color: var(--htl-custom-block-info-code-bg);
18
+ }
19
+
20
+ .custom-block.tip {
21
+ border-color: var(--htl-custom-block-tip-border);
22
+ color: var(--htl-custom-block-tip-text);
23
+ background-color: var(--htl-custom-block-tip-bg);
24
+ }
25
+
26
+ .custom-block.tip code {
27
+ background-color: var(--htl-custom-block-tip-code-bg);
28
+ }
29
+
30
+ .custom-block.warning {
31
+ border-color: var(--htl-custom-block-warning-border);
32
+ color: var(--htl-custom-block-warning-text);
33
+ background-color: var(--htl-custom-block-warning-bg);
34
+ }
35
+
36
+ .custom-block.warning code {
37
+ background-color: var(--htl-custom-block-warning-code-bg);
38
+ }
39
+
40
+ .custom-block.danger {
41
+ border-color: var(--htl-custom-block-danger-border);
42
+ color: var(--htl-custom-block-danger-text);
43
+ background-color: var(--htl-custom-block-danger-bg);
44
+ }
45
+
46
+ .custom-block.danger code {
47
+ background-color: var(--htl-custom-block-danger-code-bg);
48
+ }
49
+
50
+ .custom-block.details {
51
+ border-color: var(--htl-custom-block-details-border);
52
+ color: var(--htl-custom-block-details-text);
53
+ background-color: var(--htl-custom-block-details-bg);
54
+ }
55
+
56
+ .custom-block.details code {
57
+ background-color: var(--htl-custom-block-details-code-bg);
58
+ }
59
+
60
+ .custom-block-title {
61
+ font-weight: 700;
62
+ }
63
+
64
+ .custom-block p + p {
65
+ margin: 8px 0;
66
+ }
67
+
68
+ .custom-block.details summary {
69
+ margin: 0 0 8px;
70
+ font-weight: 700;
71
+ }
72
+
73
+ .custom-block.details summary + p {
74
+ margin: 8px 0;
75
+ }
76
+
77
+ .custom-block a {
78
+ color: inherit;
79
+ font-weight: 600;
80
+ text-decoration: underline;
81
+ transition: opacity 0.25s;
82
+ }
83
+
84
+ .custom-block a:hover {
85
+ opacity: 0.6;
86
+ }
87
+
88
+ .custom-block code {
89
+ font-size: var(--htl-custom-block-code-font-size);
90
+ }