hdoc-tools 0.60.1 → 0.62.0

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 (55) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +89 -75
  3. package/hdoc-build-db.js +275 -275
  4. package/hdoc-build-embeddings.js +202 -202
  5. package/hdoc-build-pdf.js +232 -232
  6. package/hdoc-build.js +14 -6
  7. package/hdoc-bump.js +4 -2
  8. package/hdoc-content-routes.js +143 -83
  9. package/hdoc-create.js +110 -108
  10. package/hdoc-db.js +114 -114
  11. package/hdoc-help.js +60 -60
  12. package/hdoc-init.js +103 -68
  13. package/hdoc-install-browser.js +145 -145
  14. package/hdoc-mermaid.js +204 -204
  15. package/hdoc-module.js +1102 -1079
  16. package/hdoc-serve.js +13 -7
  17. package/hdoc-stats.js +9 -9
  18. package/hdoc-validate-config.js +355 -329
  19. package/hdoc-validate-interbook.js +321 -0
  20. package/hdoc-validate.js +1231 -1158
  21. package/hdoc-ver.js +4 -2
  22. package/hdoc.js +12 -11
  23. package/npm-shrinkwrap.json +2 -2
  24. package/package.json +13 -2
  25. package/schemas/hdocbook-project.schema.json +20 -0
  26. package/schemas/hdocbook.schema.json +6 -2
  27. package/templates/doc-header-non-git.html +19 -19
  28. package/templates/doc-header.html +26 -26
  29. package/templates/init/.github/workflows/hdocbuild_onpull.yml +16 -16
  30. package/templates/init/.github/workflows/hdocbuild_onpush.yml +15 -15
  31. package/templates/init/LICENSE +21 -21
  32. package/templates/init/README.md +9 -9
  33. package/templates/init/_hdocbook/index.md +4 -4
  34. package/templates/init/gitignore +8 -8
  35. package/templates/init/resources/README.md +2 -2
  36. package/templates/pdf/css/custom-block.css +90 -90
  37. package/templates/pdf/css/fonts.css +221 -221
  38. package/templates/pdf/css/hdocs-pdf.css +495 -495
  39. package/templates/pdf/css/vars.css +404 -404
  40. package/templates/pdf/template-footer.html +19 -19
  41. package/templates/pdf/template-header.html +37 -37
  42. package/templates/pdf/template.html +20 -20
  43. package/templates/pdf-header-non-git.html +12 -12
  44. package/templates/pdf-header.html +16 -16
  45. package/ui/content/invalid-hdocbook-json.html +6 -6
  46. package/ui/content/invalid-hdocbook-json.md +7 -7
  47. package/ui/css/theme-default/styles/components/content.css +124 -124
  48. package/ui/css/theme-default/styles/components/sidebar.css +182 -182
  49. package/ui/css/theme-default/styles/htldoc.layouts.css +310 -310
  50. package/ui/index.html +419 -419
  51. package/ui/js/doc.hornbill.js +31 -44
  52. package/ui/js/mermaid-theme.json +27 -0
  53. package/hdoc-build-onyx.js +0 -134
  54. package/templates/mermaid-theme.yaml +0 -28
  55. package/templates/pdf/fonts/inter-cyrillic copy.woff2 +0 -0
@@ -1,496 +1,496 @@
1
- :root {
2
- --htl-font-family-base: 'Inter var experimental', 'Inter var', 'Inter',
3
- ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
4
- Roboto, 'Helvetica Neue', Helvetica, Arial, 'Noto Sans', sans-serif,
5
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
6
- --htl-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
7
- Consolas, 'Liberation Mono', 'Courier New', monospace;
8
-
9
-
10
- --htl-default-font-size: 14px;
11
- --htl-small-font-size: 12px;
12
- --htl-smallest-font-size: 10px;
13
- --htl-big-font-size: 16px;
14
- --htl-biggest-font-size: 18px;
15
- --htl-massive-font-size: 24px;
16
-
17
- }
18
-
19
- /**
20
- * Component: Custom Block
21
- * -------------------------------------------------------------------------- */
22
-
23
- :root {
24
- --htl-custom-block-code-font-size: var(--htl-default-font-size);
25
-
26
- --htl-custom-block-info-border: rgba(23, 23, 23, 0.5);
27
- --htl-custom-block-info-text: #171717;
28
- --htl-custom-block-info-bg: #d7eaf8;
29
- --htl-custom-block-info-code-bg: var(--htl-c-gray-light-4);
30
-
31
-
32
- --htl-custom-block-tip-border: var(--htl-c-green-dimm-1);
33
- --htl-custom-block-tip-text: var(--htl-c-green-darker);
34
- --htl-custom-block-tip-bg: var(--htl-c-green-dimm-3);
35
- --htl-custom-block-tip-code-bg: var(--htl-custom-block-tip-bg);
36
-
37
- --htl-custom-block-caution-border: var(--htl-c-yellow-dimm-1);
38
- --htl-custom-block-caution-text: var(--htl-c-yellow-darker);
39
- --htl-custom-block-caution-bg: var(--htl-c-yellow-dimm-3);
40
- --htl-custom-block-caution-code-bg: var(--htl-custom-block-caution-bg);
41
-
42
- --htl-custom-block-warning-border: var(--htl-c-red-dimm-1);
43
- --htl-custom-block-warning-text: var(--htl-c-red-darker);
44
- --htl-custom-block-warning-bg: var(--htl-c-red-dimm-3);
45
- --htl-custom-block-warning-code-bg: var(--htl-custom-block-warning-bg);
46
-
47
- --htl-custom-block-details-border: var(--htl-c-divider-light);
48
- --htl-custom-block-details-text: var(--htl-c-text-2);
49
- --htl-custom-block-details-bg: var(--htl-c-white-soft);
50
- --htl-custom-block-details-code-bg: var(---htl-custom-block-details-bg);
51
-
52
- }
53
-
54
-
55
- body {
56
- font-family: var(--htl-font-family-base);
57
- }
58
-
59
- p {
60
- font-size: var(--htl-default-font-size);
61
- }
62
-
63
- li {
64
- font-size: var(--htl-default-font-size);
65
- }
66
-
67
-
68
- /**
69
- * Table
70
- * -------------------------------------------------------------------------- */
71
-
72
- table {
73
- display: block;
74
- border-collapse: collapse;
75
- margin: 20px 0;
76
- font-size: var(--htl-default-font-size);
77
- break-inside: avoid;
78
- /* sets font-size for table and table rows/td/th etc*/
79
- }
80
-
81
- tr {
82
- border-top: 1px solid var(--htl-c-divider);
83
- transition: background-color 0.5s;
84
- }
85
-
86
- tr:nth-child(2n) {
87
- background-color: var(--htl-c-bg-soft);
88
- }
89
-
90
- th,
91
- td {
92
- border: 1px solid var(--htl-c-divider);
93
- padding: 10px 14px;
94
- vertical-align: top;
95
- }
96
-
97
- th {
98
- font-size: var(--htl-default-font-size);
99
- font-weight: 600;
100
- background-color: var(--htl-c-white-soft);
101
- }
102
-
103
- .dark th {
104
- background-color: var(--htl-c-black);
105
- }
106
-
107
- hr {
108
- margin: 16px 0;
109
- border: none;
110
- border-top: 1px solid var(--htl-c-divider-light);
111
- }
112
-
113
- h1 {
114
- margin-top: -10px;
115
- }
116
-
117
- img,
118
- svg {
119
- display: inline-block;
120
- max-height: 750px;
121
- height: auto;
122
- break-inside: avoid;
123
- }
124
-
125
- video,
126
- canvas,
127
- audio,
128
- iframe,
129
- embed,
130
- object {
131
- display: none;
132
- }
133
-
134
- figure {
135
- margin: 0;
136
- }
137
-
138
- img,
139
- video {
140
- max-width: 100%;
141
- max-height: 750px;
142
- height: auto;
143
- break-inside: avoid;
144
- }
145
-
146
- .after-bullets li:not(:last-child)::after {
147
- content: "•";
148
- padding-left: 5px;
149
- padding-right: 5px;
150
- }
151
-
152
- /* top nav bar */
153
- .nav-bar-nav-list {
154
- margin-left: -39px;
155
- margin-top: -20px;
156
- align-items: stretch;
157
- display: flex;
158
- font-size: var(--htl-small-font-size);
159
- }
160
-
161
- .nav-bar-nav-list .nav-bar-item {
162
- flex-shrink: 0;
163
- align-items: center;
164
- display: flex;
165
- font-size: var(--htl-small-font-size);
166
- }
167
-
168
-
169
- .hdoc-alert {
170
- border: 1px solid transparent;
171
- border-radius: 8px;
172
- padding: 16px 16px 8px;
173
- line-height: 24px;
174
- font-size: var(--htl-default-font-size);
175
- color: var(--htl-c-text-2);
176
- margin: 10px 0;
177
- break-inside: avoid;
178
- }
179
-
180
- .hdoc-alert p {
181
- margin: 8 0;
182
- }
183
-
184
- .hdoc-alert .hdoc-alert-title .bi {
185
- margin-right: 5px;
186
-
187
- }
188
-
189
- .hdoc-alert .hdoc-alert-title {
190
- font-weight: 700;
191
- margin: 0;
192
- }
193
-
194
- .hdoc-alert.alert-icon-note {
195
- border-color: var(--htl-custom-block-details-border);
196
- color: var(--htl-custom-block-details-text);
197
- background-color: var(--htl-custom-block-details-bg);
198
- }
199
-
200
- .hdoc-alert.alert-icon-note code {
201
- background-color: var(--htl-custom-block-details-code-bg);
202
- }
203
-
204
- .hdoc-alert.alert-icon-tip {
205
- border-color: var(--htl-custom-block-tip-border);
206
- color: var(--htl-custom-block-tip-text);
207
- background-color: var(--htl-custom-block-tip-bg);
208
- }
209
-
210
- .hdoc-alert.alert-icon-tip code {
211
- background-color: var(--htl-custom-block-tip-code-bg);
212
- }
213
-
214
- .hdoc-alert.alert-icon-important {
215
- border-color: var(--htl-custom-block-important-border);
216
- color: var(--htl-custom-block-important-text);
217
- background-color: var(--htl-custom-block-important-bg);
218
- }
219
-
220
- .hdoc-alert.alert-icon-important code {
221
- background-color: var(--htl-custom-block-important-code-bg);
222
- }
223
-
224
- .hdoc-alert.alert-icon-info {
225
- border-color: var(--htl-custom-block-info-border);
226
- color: var(--htl-custom-block-info-text);
227
- background-color: var(--htl-custom-block-info-bg);
228
- }
229
-
230
- .hdoc-alert.alert-icon-info code {
231
- background-color: var(--htl-custom-block-info-code-bg);
232
- }
233
-
234
- .hdoc-alert.alert-icon-caution {
235
- border-color: var(--htl-custom-block-caution-border);
236
- color: var(--htl-custom-block-caution-text);
237
- background-color: var(--htl-custom-block-caution-bg);
238
- }
239
-
240
- .hdoc-alert.alert-icon-caution code {
241
- background-color: var(--htl-custom-block-caution-code-bg);
242
- }
243
-
244
- .hdoc-alert.alert-icon-warning {
245
- border-color: var(--htl-custom-block-warning-border);
246
- color: var(--htl-custom-block-warning-text);
247
- background-color: var(--htl-custom-block-warning-bg);
248
- }
249
-
250
- .hdoc-alert.alert-icon-warning code {
251
- background-color: var(--htl-custom-block-warning-code-bg);
252
- }
253
-
254
-
255
- /* HTL inline styles */
256
- .badge {
257
- white-space: nowrap;
258
- border-radius: 4px;
259
- padding: 0.1rem 0.5rem;
260
- font-size: 0.8em;
261
- margin-right: 4px;
262
- color: white;
263
- font-weight: unset;
264
- }
265
-
266
- .badge:empty {
267
- display: inline-block;
268
- }
269
-
270
- .badge:after {
271
- border-radius: 4px;
272
- padding: 0.05rem 0.25rem;
273
- }
274
-
275
- .badge.badge-schema:after {
276
- /* MINT */
277
- content: "Schema";
278
- border: solid 1px #34bc9d;
279
- background-color: #46cfb0;
280
- }
281
-
282
- .badge.badge-simple:after {
283
- /* AQUA */
284
- content: "Simple";
285
- border: solid 1px #3bd0d6;
286
- background-color: #4fc2e5;
287
- }
288
-
289
- .badge.badge-complex:after {
290
- /* GRAPEFRUIT */
291
- content: "Complex";
292
- border: solid 1px #da4453;
293
- background-color: #ed5565;
294
- color: white;
295
- }
296
-
297
- .badge.badge-method:after {
298
- /* BLUEJEANS */
299
- content: "Method";
300
- border: solid 1px #4b8ad5;
301
- background-color: #5e96e6;
302
- color: white;
303
- }
304
-
305
- .badge.badge-experimental:after {
306
- content: "Experimental";
307
- border: solid 1px #da4453;
308
- background-color: #ed5565;
309
- }
310
-
311
- .badge.badge-production:after {
312
- content: "In Production";
313
- border: solid 1px #185e0f;
314
- background-color: #3d9719;
315
- }
316
-
317
- .badge.badge-development:after {
318
- content: "In Development";
319
- border: solid 1px #4b8ad5;
320
- background-color: #5e96e6;
321
- }
322
-
323
- .badge.badge-preliminary:after {
324
- content: "Preliminary";
325
- border: solid 1px #bdaa58;
326
- background-color: #ddaf19;
327
- }
328
-
329
- .badge.badge-depreciated:after {
330
- content: "Deprecated";
331
- border: solid 1px #494949;
332
- background-color: #666666;
333
- }
334
-
335
- .badge.badge-info:after {
336
- content: "Info";
337
- white-space: nowrap;
338
- border: solid 1px rgb(48, 121, 0);
339
- background-color: rgb(57, 150, 3);
340
- }
341
-
342
- .badge.badge-warn:after {
343
- content: "Warning";
344
- white-space: nowrap;
345
- border: solid 1px rgb(173, 137, 19);
346
- background-color: rgb(211, 168, 29);
347
- }
348
-
349
- .badge.badge-error:after {
350
- content: "Error";
351
- white-space: nowrap;
352
- border: solid 1px rgb(121, 0, 0);
353
- background-color: rgb(184, 0, 0);
354
- }
355
-
356
- .badge.badge-endpoint-internal:after {
357
- content: "internal";
358
- white-space: nowrap;
359
- border: solid 1px #4A536B;
360
- background-color: #4A536B;
361
- }
362
-
363
- .badge.badge-endpoint-api:after {
364
- content: "api";
365
- white-space: nowrap;
366
- border: solid 1px #1194DE;
367
- background-color: #1194DE;
368
- }
369
-
370
- .badge.badge-user-api:after {
371
- content: "user";
372
- white-space: nowrap;
373
- border: solid 1px #51C17D;
374
- background-color: #51C17D;
375
- }
376
-
377
- .badge.badge-portal-api:after {
378
- content: "portal";
379
- white-space: nowrap;
380
- border: solid 1px #F18929;
381
- background-color: #F18929;
382
- }
383
-
384
- .badge.badge-mobile-api:after {
385
- content: "mobile";
386
- white-space: nowrap;
387
- border: solid 1px #C7004F;
388
- background-color: #C7004F;
389
- }
390
-
391
- .badge.badge-integration-api:after {
392
- content: "integration";
393
- white-space: nowrap;
394
- border: solid 1px #224187;
395
- background-color: #224187;
396
- }
397
-
398
- .badge.badge-http-delete:after {
399
- content: "DELETE";
400
- white-space: nowrap;
401
- border: solid 1px #C7004F;
402
- background-color: #C7004F;
403
- }
404
-
405
- .badge.badge-http-get:after {
406
- content: "GET";
407
- white-space: nowrap;
408
- border: solid 1px rgb(12, 139, 63);
409
- background-color: rgb(12, 139, 63);
410
- }
411
-
412
- .badge.badge-http-head:after {
413
- content: "HEAD";
414
- white-space: nowrap;
415
- border: solid 1px #51C17D;
416
- background-color: #51C17D;
417
- }
418
-
419
- .badge.badge-http-options:after {
420
- content: "OPTIONS";
421
- white-space: nowrap;
422
- border: solid 1px rgb(158, 28, 167);
423
- background-color: rgb(158, 28, 167);
424
- }
425
-
426
- .badge.badge-http-patch:after {
427
- content: "PATCH";
428
- white-space: nowrap;
429
- border: solid 1px #58178c;
430
- background-color: #58178c;
431
- }
432
-
433
- .badge.badge-http-post:after {
434
- content: "POST";
435
- white-space: nowrap;
436
- border: solid 1px #F18229;
437
- background-color: #F18229;
438
- }
439
-
440
- .badge.badge-http-put:after {
441
- content: "PUT";
442
- white-space: nowrap;
443
- border: solid 1px #1194DE;
444
- background-color: #1194DE;
445
- }
446
-
447
- .badge.badge-rest:after {
448
- content: "REST";
449
- white-space: nowrap;
450
- border: solid 1px #00B0E9;
451
- background-color: #00B0E9;
452
- }
453
-
454
- .badge.badge-rpc:after {
455
- content: "RPC";
456
- white-space: nowrap;
457
- border: solid 1px #4A536B;
458
- background-color: #4A536B;
459
- }
460
-
461
- code {
462
- font-size: 0.9em;
463
- }
464
-
465
- /* From Bootstrap 5, text color decorations */
466
- .text-primary {
467
- color: #0d6efd !important;
468
- }
469
-
470
- .text-secondary {
471
- color: #6c757d !important;
472
- }
473
-
474
- .text-success {
475
- color: #198754 !important;
476
- }
477
-
478
- .text-info {
479
- color: #0dcaf0 !important;
480
- }
481
-
482
- .text-warning {
483
- color: #ffc107 !important;
484
- }
485
-
486
- .text-danger {
487
- color: #dc3545 !important;
488
- }
489
-
490
- .text-light {
491
- color: #f8f9fa !important;
492
- }
493
-
494
- .text-dark {
495
- color: #212529 !important;
1
+ :root {
2
+ --htl-font-family-base: 'Inter var experimental', 'Inter var', 'Inter',
3
+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
4
+ Roboto, 'Helvetica Neue', Helvetica, Arial, 'Noto Sans', sans-serif,
5
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
6
+ --htl-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
7
+ Consolas, 'Liberation Mono', 'Courier New', monospace;
8
+
9
+
10
+ --htl-default-font-size: 14px;
11
+ --htl-small-font-size: 12px;
12
+ --htl-smallest-font-size: 10px;
13
+ --htl-big-font-size: 16px;
14
+ --htl-biggest-font-size: 18px;
15
+ --htl-massive-font-size: 24px;
16
+
17
+ }
18
+
19
+ /**
20
+ * Component: Custom Block
21
+ * -------------------------------------------------------------------------- */
22
+
23
+ :root {
24
+ --htl-custom-block-code-font-size: var(--htl-default-font-size);
25
+
26
+ --htl-custom-block-info-border: rgba(23, 23, 23, 0.5);
27
+ --htl-custom-block-info-text: #171717;
28
+ --htl-custom-block-info-bg: #d7eaf8;
29
+ --htl-custom-block-info-code-bg: var(--htl-c-gray-light-4);
30
+
31
+
32
+ --htl-custom-block-tip-border: var(--htl-c-green-dimm-1);
33
+ --htl-custom-block-tip-text: var(--htl-c-green-darker);
34
+ --htl-custom-block-tip-bg: var(--htl-c-green-dimm-3);
35
+ --htl-custom-block-tip-code-bg: var(--htl-custom-block-tip-bg);
36
+
37
+ --htl-custom-block-caution-border: var(--htl-c-yellow-dimm-1);
38
+ --htl-custom-block-caution-text: var(--htl-c-yellow-darker);
39
+ --htl-custom-block-caution-bg: var(--htl-c-yellow-dimm-3);
40
+ --htl-custom-block-caution-code-bg: var(--htl-custom-block-caution-bg);
41
+
42
+ --htl-custom-block-warning-border: var(--htl-c-red-dimm-1);
43
+ --htl-custom-block-warning-text: var(--htl-c-red-darker);
44
+ --htl-custom-block-warning-bg: var(--htl-c-red-dimm-3);
45
+ --htl-custom-block-warning-code-bg: var(--htl-custom-block-warning-bg);
46
+
47
+ --htl-custom-block-details-border: var(--htl-c-divider-light);
48
+ --htl-custom-block-details-text: var(--htl-c-text-2);
49
+ --htl-custom-block-details-bg: var(--htl-c-white-soft);
50
+ --htl-custom-block-details-code-bg: var(---htl-custom-block-details-bg);
51
+
52
+ }
53
+
54
+
55
+ body {
56
+ font-family: var(--htl-font-family-base);
57
+ }
58
+
59
+ p {
60
+ font-size: var(--htl-default-font-size);
61
+ }
62
+
63
+ li {
64
+ font-size: var(--htl-default-font-size);
65
+ }
66
+
67
+
68
+ /**
69
+ * Table
70
+ * -------------------------------------------------------------------------- */
71
+
72
+ table {
73
+ display: block;
74
+ border-collapse: collapse;
75
+ margin: 20px 0;
76
+ font-size: var(--htl-default-font-size);
77
+ break-inside: avoid;
78
+ /* sets font-size for table and table rows/td/th etc*/
79
+ }
80
+
81
+ tr {
82
+ border-top: 1px solid var(--htl-c-divider);
83
+ transition: background-color 0.5s;
84
+ }
85
+
86
+ tr:nth-child(2n) {
87
+ background-color: var(--htl-c-bg-soft);
88
+ }
89
+
90
+ th,
91
+ td {
92
+ border: 1px solid var(--htl-c-divider);
93
+ padding: 10px 14px;
94
+ vertical-align: top;
95
+ }
96
+
97
+ th {
98
+ font-size: var(--htl-default-font-size);
99
+ font-weight: 600;
100
+ background-color: var(--htl-c-white-soft);
101
+ }
102
+
103
+ .dark th {
104
+ background-color: var(--htl-c-black);
105
+ }
106
+
107
+ hr {
108
+ margin: 16px 0;
109
+ border: none;
110
+ border-top: 1px solid var(--htl-c-divider-light);
111
+ }
112
+
113
+ h1 {
114
+ margin-top: -10px;
115
+ }
116
+
117
+ img,
118
+ svg {
119
+ display: inline-block;
120
+ max-height: 750px;
121
+ height: auto;
122
+ break-inside: avoid;
123
+ }
124
+
125
+ video,
126
+ canvas,
127
+ audio,
128
+ iframe,
129
+ embed,
130
+ object {
131
+ display: none;
132
+ }
133
+
134
+ figure {
135
+ margin: 0;
136
+ }
137
+
138
+ img,
139
+ video {
140
+ max-width: 100%;
141
+ max-height: 750px;
142
+ height: auto;
143
+ break-inside: avoid;
144
+ }
145
+
146
+ .after-bullets li:not(:last-child)::after {
147
+ content: "•";
148
+ padding-left: 5px;
149
+ padding-right: 5px;
150
+ }
151
+
152
+ /* top nav bar */
153
+ .nav-bar-nav-list {
154
+ margin-left: -39px;
155
+ margin-top: -20px;
156
+ align-items: stretch;
157
+ display: flex;
158
+ font-size: var(--htl-small-font-size);
159
+ }
160
+
161
+ .nav-bar-nav-list .nav-bar-item {
162
+ flex-shrink: 0;
163
+ align-items: center;
164
+ display: flex;
165
+ font-size: var(--htl-small-font-size);
166
+ }
167
+
168
+
169
+ .hdoc-alert {
170
+ border: 1px solid transparent;
171
+ border-radius: 8px;
172
+ padding: 16px 16px 8px;
173
+ line-height: 24px;
174
+ font-size: var(--htl-default-font-size);
175
+ color: var(--htl-c-text-2);
176
+ margin: 10px 0;
177
+ break-inside: avoid;
178
+ }
179
+
180
+ .hdoc-alert p {
181
+ margin: 8 0;
182
+ }
183
+
184
+ .hdoc-alert .hdoc-alert-title .bi {
185
+ margin-right: 5px;
186
+
187
+ }
188
+
189
+ .hdoc-alert .hdoc-alert-title {
190
+ font-weight: 700;
191
+ margin: 0;
192
+ }
193
+
194
+ .hdoc-alert.alert-icon-note {
195
+ border-color: var(--htl-custom-block-details-border);
196
+ color: var(--htl-custom-block-details-text);
197
+ background-color: var(--htl-custom-block-details-bg);
198
+ }
199
+
200
+ .hdoc-alert.alert-icon-note code {
201
+ background-color: var(--htl-custom-block-details-code-bg);
202
+ }
203
+
204
+ .hdoc-alert.alert-icon-tip {
205
+ border-color: var(--htl-custom-block-tip-border);
206
+ color: var(--htl-custom-block-tip-text);
207
+ background-color: var(--htl-custom-block-tip-bg);
208
+ }
209
+
210
+ .hdoc-alert.alert-icon-tip code {
211
+ background-color: var(--htl-custom-block-tip-code-bg);
212
+ }
213
+
214
+ .hdoc-alert.alert-icon-important {
215
+ border-color: var(--htl-custom-block-important-border);
216
+ color: var(--htl-custom-block-important-text);
217
+ background-color: var(--htl-custom-block-important-bg);
218
+ }
219
+
220
+ .hdoc-alert.alert-icon-important code {
221
+ background-color: var(--htl-custom-block-important-code-bg);
222
+ }
223
+
224
+ .hdoc-alert.alert-icon-info {
225
+ border-color: var(--htl-custom-block-info-border);
226
+ color: var(--htl-custom-block-info-text);
227
+ background-color: var(--htl-custom-block-info-bg);
228
+ }
229
+
230
+ .hdoc-alert.alert-icon-info code {
231
+ background-color: var(--htl-custom-block-info-code-bg);
232
+ }
233
+
234
+ .hdoc-alert.alert-icon-caution {
235
+ border-color: var(--htl-custom-block-caution-border);
236
+ color: var(--htl-custom-block-caution-text);
237
+ background-color: var(--htl-custom-block-caution-bg);
238
+ }
239
+
240
+ .hdoc-alert.alert-icon-caution code {
241
+ background-color: var(--htl-custom-block-caution-code-bg);
242
+ }
243
+
244
+ .hdoc-alert.alert-icon-warning {
245
+ border-color: var(--htl-custom-block-warning-border);
246
+ color: var(--htl-custom-block-warning-text);
247
+ background-color: var(--htl-custom-block-warning-bg);
248
+ }
249
+
250
+ .hdoc-alert.alert-icon-warning code {
251
+ background-color: var(--htl-custom-block-warning-code-bg);
252
+ }
253
+
254
+
255
+ /* HTL inline styles */
256
+ .badge {
257
+ white-space: nowrap;
258
+ border-radius: 4px;
259
+ padding: 0.1rem 0.5rem;
260
+ font-size: 0.8em;
261
+ margin-right: 4px;
262
+ color: white;
263
+ font-weight: unset;
264
+ }
265
+
266
+ .badge:empty {
267
+ display: inline-block;
268
+ }
269
+
270
+ .badge:after {
271
+ border-radius: 4px;
272
+ padding: 0.05rem 0.25rem;
273
+ }
274
+
275
+ .badge.badge-schema:after {
276
+ /* MINT */
277
+ content: "Schema";
278
+ border: solid 1px #34bc9d;
279
+ background-color: #46cfb0;
280
+ }
281
+
282
+ .badge.badge-simple:after {
283
+ /* AQUA */
284
+ content: "Simple";
285
+ border: solid 1px #3bd0d6;
286
+ background-color: #4fc2e5;
287
+ }
288
+
289
+ .badge.badge-complex:after {
290
+ /* GRAPEFRUIT */
291
+ content: "Complex";
292
+ border: solid 1px #da4453;
293
+ background-color: #ed5565;
294
+ color: white;
295
+ }
296
+
297
+ .badge.badge-method:after {
298
+ /* BLUEJEANS */
299
+ content: "Method";
300
+ border: solid 1px #4b8ad5;
301
+ background-color: #5e96e6;
302
+ color: white;
303
+ }
304
+
305
+ .badge.badge-experimental:after {
306
+ content: "Experimental";
307
+ border: solid 1px #da4453;
308
+ background-color: #ed5565;
309
+ }
310
+
311
+ .badge.badge-production:after {
312
+ content: "In Production";
313
+ border: solid 1px #185e0f;
314
+ background-color: #3d9719;
315
+ }
316
+
317
+ .badge.badge-development:after {
318
+ content: "In Development";
319
+ border: solid 1px #4b8ad5;
320
+ background-color: #5e96e6;
321
+ }
322
+
323
+ .badge.badge-preliminary:after {
324
+ content: "Preliminary";
325
+ border: solid 1px #bdaa58;
326
+ background-color: #ddaf19;
327
+ }
328
+
329
+ .badge.badge-depreciated:after {
330
+ content: "Deprecated";
331
+ border: solid 1px #494949;
332
+ background-color: #666666;
333
+ }
334
+
335
+ .badge.badge-info:after {
336
+ content: "Info";
337
+ white-space: nowrap;
338
+ border: solid 1px rgb(48, 121, 0);
339
+ background-color: rgb(57, 150, 3);
340
+ }
341
+
342
+ .badge.badge-warn:after {
343
+ content: "Warning";
344
+ white-space: nowrap;
345
+ border: solid 1px rgb(173, 137, 19);
346
+ background-color: rgb(211, 168, 29);
347
+ }
348
+
349
+ .badge.badge-error:after {
350
+ content: "Error";
351
+ white-space: nowrap;
352
+ border: solid 1px rgb(121, 0, 0);
353
+ background-color: rgb(184, 0, 0);
354
+ }
355
+
356
+ .badge.badge-endpoint-internal:after {
357
+ content: "internal";
358
+ white-space: nowrap;
359
+ border: solid 1px #4A536B;
360
+ background-color: #4A536B;
361
+ }
362
+
363
+ .badge.badge-endpoint-api:after {
364
+ content: "api";
365
+ white-space: nowrap;
366
+ border: solid 1px #1194DE;
367
+ background-color: #1194DE;
368
+ }
369
+
370
+ .badge.badge-user-api:after {
371
+ content: "user";
372
+ white-space: nowrap;
373
+ border: solid 1px #51C17D;
374
+ background-color: #51C17D;
375
+ }
376
+
377
+ .badge.badge-portal-api:after {
378
+ content: "portal";
379
+ white-space: nowrap;
380
+ border: solid 1px #F18929;
381
+ background-color: #F18929;
382
+ }
383
+
384
+ .badge.badge-mobile-api:after {
385
+ content: "mobile";
386
+ white-space: nowrap;
387
+ border: solid 1px #C7004F;
388
+ background-color: #C7004F;
389
+ }
390
+
391
+ .badge.badge-integration-api:after {
392
+ content: "integration";
393
+ white-space: nowrap;
394
+ border: solid 1px #224187;
395
+ background-color: #224187;
396
+ }
397
+
398
+ .badge.badge-http-delete:after {
399
+ content: "DELETE";
400
+ white-space: nowrap;
401
+ border: solid 1px #C7004F;
402
+ background-color: #C7004F;
403
+ }
404
+
405
+ .badge.badge-http-get:after {
406
+ content: "GET";
407
+ white-space: nowrap;
408
+ border: solid 1px rgb(12, 139, 63);
409
+ background-color: rgb(12, 139, 63);
410
+ }
411
+
412
+ .badge.badge-http-head:after {
413
+ content: "HEAD";
414
+ white-space: nowrap;
415
+ border: solid 1px #51C17D;
416
+ background-color: #51C17D;
417
+ }
418
+
419
+ .badge.badge-http-options:after {
420
+ content: "OPTIONS";
421
+ white-space: nowrap;
422
+ border: solid 1px rgb(158, 28, 167);
423
+ background-color: rgb(158, 28, 167);
424
+ }
425
+
426
+ .badge.badge-http-patch:after {
427
+ content: "PATCH";
428
+ white-space: nowrap;
429
+ border: solid 1px #58178c;
430
+ background-color: #58178c;
431
+ }
432
+
433
+ .badge.badge-http-post:after {
434
+ content: "POST";
435
+ white-space: nowrap;
436
+ border: solid 1px #F18229;
437
+ background-color: #F18229;
438
+ }
439
+
440
+ .badge.badge-http-put:after {
441
+ content: "PUT";
442
+ white-space: nowrap;
443
+ border: solid 1px #1194DE;
444
+ background-color: #1194DE;
445
+ }
446
+
447
+ .badge.badge-rest:after {
448
+ content: "REST";
449
+ white-space: nowrap;
450
+ border: solid 1px #00B0E9;
451
+ background-color: #00B0E9;
452
+ }
453
+
454
+ .badge.badge-rpc:after {
455
+ content: "RPC";
456
+ white-space: nowrap;
457
+ border: solid 1px #4A536B;
458
+ background-color: #4A536B;
459
+ }
460
+
461
+ code {
462
+ font-size: 0.9em;
463
+ }
464
+
465
+ /* From Bootstrap 5, text color decorations */
466
+ .text-primary {
467
+ color: #0d6efd !important;
468
+ }
469
+
470
+ .text-secondary {
471
+ color: #6c757d !important;
472
+ }
473
+
474
+ .text-success {
475
+ color: #198754 !important;
476
+ }
477
+
478
+ .text-info {
479
+ color: #0dcaf0 !important;
480
+ }
481
+
482
+ .text-warning {
483
+ color: #ffc107 !important;
484
+ }
485
+
486
+ .text-danger {
487
+ color: #dc3545 !important;
488
+ }
489
+
490
+ .text-light {
491
+ color: #f8f9fa !important;
492
+ }
493
+
494
+ .text-dark {
495
+ color: #212529 !important;
496
496
  }