hdoc-tools 0.1.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 (79) hide show
  1. package/custom_modules/tips.js +69 -0
  2. package/hdoc-build.js +5 -0
  3. package/hdoc-serve.js +366 -0
  4. package/hdoc.js +86 -0
  5. package/package.json +29 -0
  6. package/ui/css/images/hornbill-logo-full.svg +92 -0
  7. package/ui/css/theme-default/fonts/inter-cyrillic-ext.woff2 +0 -0
  8. package/ui/css/theme-default/fonts/inter-cyrillic.woff2 +0 -0
  9. package/ui/css/theme-default/fonts/inter-greek-ext.woff2 +0 -0
  10. package/ui/css/theme-default/fonts/inter-greek.woff2 +0 -0
  11. package/ui/css/theme-default/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
  12. package/ui/css/theme-default/fonts/inter-italic-cyrillic.woff2 +0 -0
  13. package/ui/css/theme-default/fonts/inter-italic-greek-ext.woff2 +0 -0
  14. package/ui/css/theme-default/fonts/inter-italic-greek.woff2 +0 -0
  15. package/ui/css/theme-default/fonts/inter-italic-latin-ext.woff2 +0 -0
  16. package/ui/css/theme-default/fonts/inter-italic-latin.woff2 +0 -0
  17. package/ui/css/theme-default/fonts/inter-italic-vietnamese.woff2 +0 -0
  18. package/ui/css/theme-default/fonts/inter-latin-ext.woff2 +0 -0
  19. package/ui/css/theme-default/fonts/inter-latin.woff2 +0 -0
  20. package/ui/css/theme-default/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
  21. package/ui/css/theme-default/fonts/inter-roman-cyrillic.woff2 +0 -0
  22. package/ui/css/theme-default/fonts/inter-roman-greek-ext.woff2 +0 -0
  23. package/ui/css/theme-default/fonts/inter-roman-greek.woff2 +0 -0
  24. package/ui/css/theme-default/fonts/inter-roman-latin-ext.woff2 +0 -0
  25. package/ui/css/theme-default/fonts/inter-roman-latin.woff2 +0 -0
  26. package/ui/css/theme-default/fonts/inter-roman-vietnamese.woff2 +0 -0
  27. package/ui/css/theme-default/fonts/inter-vietnamese.woff2 +0 -0
  28. package/ui/css/theme-default/styles/base.css +225 -0
  29. package/ui/css/theme-default/styles/components/content.css +82 -0
  30. package/ui/css/theme-default/styles/components/custom-block.css +90 -0
  31. package/ui/css/theme-default/styles/components/htl-doc.css +711 -0
  32. package/ui/css/theme-default/styles/components/sidebar.css +178 -0
  33. package/ui/css/theme-default/styles/fonts.css +221 -0
  34. package/ui/css/theme-default/styles/htldoc.layouts.css +244 -0
  35. package/ui/css/theme-default/styles/vars.css +393 -0
  36. package/ui/index.html +230 -0
  37. package/ui/js/doc.hornbill.js +485 -0
  38. package/ui/js/highlightjs/LICENSE +24 -0
  39. package/ui/js/highlightjs/highlight.pack.js +2 -0
  40. package/ui/js/highlightjs/styles/brown-paper.css +64 -0
  41. package/ui/js/highlightjs/styles/brown-papersq.png +0 -0
  42. package/ui/js/highlightjs/styles/codepen-embed.css +60 -0
  43. package/ui/js/highlightjs/styles/color-brewer.css +71 -0
  44. package/ui/js/highlightjs/styles/darcula.css +77 -0
  45. package/ui/js/highlightjs/styles/dark.css +63 -0
  46. package/ui/js/highlightjs/styles/darkula.css +6 -0
  47. package/ui/js/highlightjs/styles/default.css +99 -0
  48. package/ui/js/highlightjs/styles/dracula.css +76 -0
  49. package/ui/js/highlightjs/styles/far.css +71 -0
  50. package/ui/js/highlightjs/styles/foundation.css +88 -0
  51. package/ui/js/highlightjs/styles/github-gist.css +71 -0
  52. package/ui/js/highlightjs/styles/github-mm.css +71 -0
  53. package/ui/js/highlightjs/styles/github.css +99 -0
  54. package/ui/js/highlightjs/styles/googlecode.css +89 -0
  55. package/ui/js/highlightjs/styles/grayscale.css +101 -0
  56. package/ui/js/highlightjs/styles/idea.css +97 -0
  57. package/ui/js/highlightjs/styles/ir-black.css +73 -0
  58. package/ui/js/highlightjs/styles/kavadocs.css +71 -0
  59. package/ui/js/highlightjs/styles/kavadocsdark.css +120 -0
  60. package/ui/js/highlightjs/styles/kimbie.dark.css +74 -0
  61. package/ui/js/highlightjs/styles/kimbie.light.css +74 -0
  62. package/ui/js/highlightjs/styles/magula.css +70 -0
  63. package/ui/js/highlightjs/styles/mono-blue.css +59 -0
  64. package/ui/js/highlightjs/styles/monokai-sublime.css +83 -0
  65. package/ui/js/highlightjs/styles/monokai.css +70 -0
  66. package/ui/js/highlightjs/styles/obsidian.css +88 -0
  67. package/ui/js/highlightjs/styles/paraiso-dark.css +72 -0
  68. package/ui/js/highlightjs/styles/paraiso-light.css +72 -0
  69. package/ui/js/highlightjs/styles/railscasts.css +106 -0
  70. package/ui/js/highlightjs/styles/rainbow.css +85 -0
  71. package/ui/js/highlightjs/styles/solarized-dark.css +84 -0
  72. package/ui/js/highlightjs/styles/solarized-light.css +84 -0
  73. package/ui/js/highlightjs/styles/sunburst.css +102 -0
  74. package/ui/js/highlightjs/styles/twilight.css +97 -0
  75. package/ui/js/highlightjs/styles/vs.css +68 -0
  76. package/ui/js/highlightjs/styles/vs2015.css +117 -0
  77. package/ui/js/highlightjs/styles/xcode.css +104 -0
  78. package/ui/js/highlightjs/styles/zenburn.css +80 -0
  79. package/ui/js/highlightjs-badge.js +443 -0
@@ -0,0 +1,225 @@
1
+ *,
2
+ ::before,
3
+ ::after {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html {
8
+ line-height: 1.4;
9
+ font-size: var(--htl-default-font-size);
10
+ -webkit-text-size-adjust: 100%;
11
+ }
12
+
13
+ html.dark {
14
+ color-scheme: dark;
15
+ }
16
+
17
+ body {
18
+ margin: 0;
19
+ width: 100%;
20
+ min-width: 320px;
21
+ min-height: 100vh;
22
+ line-height: 24px;
23
+ font-family: var(--htl-font-family-base);
24
+ font-size: var(--htl-default-font-size);
25
+ font-weight: 400;
26
+ color: var(--htl-c-text-1);
27
+ background-color: var(--htl-c-bg);
28
+ direction: ltr;
29
+ font-synthesis: style;
30
+ text-rendering: optimizeLegibility;
31
+ -webkit-font-smoothing: antialiased;
32
+ -moz-osx-font-smoothing: grayscale;
33
+ }
34
+
35
+ main {
36
+ display: block;
37
+ }
38
+
39
+ h1,
40
+ h2,
41
+ h3,
42
+ h4,
43
+ h5,
44
+ h6 {
45
+ margin: 0;
46
+ line-height: normal;
47
+ /*font-size: var(--htl-default-font-size);*/
48
+ font-weight: 400;
49
+ }
50
+
51
+ p {
52
+ margin: 0;
53
+ }
54
+
55
+ strong,
56
+ b {
57
+ font-weight: 600;
58
+ }
59
+
60
+ /**
61
+ * Avoid 300ms click delay on touch devices that support the `touch-action`
62
+ * CSS property.
63
+ *
64
+ * In particular, unlike most other browsers, IE11+Edge on Windows 10 on
65
+ * touch devices and IE Mobile 10-11 DON'T remove the click delay when
66
+ * `<meta name="viewport" content="width=device-width">` is present.
67
+ * However, they DO support removing the click delay via
68
+ * `touch-action: manipulation`.
69
+ *
70
+ * See:
71
+ * - http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
72
+ * - http://caniuse.com/#feat=css-touch-action
73
+ * - http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
74
+ */
75
+ a,
76
+ area,
77
+ button,
78
+ [role='button'],
79
+ input,
80
+ label,
81
+ select,
82
+ summary,
83
+ textarea {
84
+ touch-action: manipulation;
85
+ }
86
+
87
+ a {
88
+ color: inherit;
89
+ text-decoration: inherit;
90
+ }
91
+
92
+ ol,
93
+ ul {
94
+ list-style: none;
95
+ margin: 0;
96
+ padding: 0;
97
+ }
98
+
99
+ blockquote {
100
+ margin: 0;
101
+ }
102
+
103
+ pre,
104
+ code,
105
+ kbd,
106
+ samp {
107
+ font-family: var(--htl-font-family-mono);
108
+ }
109
+
110
+ img,
111
+ svg,
112
+ video,
113
+ canvas,
114
+ audio,
115
+ iframe,
116
+ embed,
117
+ object {
118
+ display: block;
119
+ }
120
+
121
+ figure {
122
+ margin: 0;
123
+ }
124
+
125
+ img,
126
+ video {
127
+ max-width: 100%;
128
+ height: auto;
129
+ }
130
+
131
+ button,
132
+ input,
133
+ optgroup,
134
+ select,
135
+ textarea {
136
+ border: 0;
137
+ padding: 0;
138
+ line-height: inherit;
139
+ color: inherit;
140
+ }
141
+
142
+ button {
143
+ padding: 0;
144
+ font-family: inherit;
145
+ background-color: transparent;
146
+ background-image: none;
147
+ }
148
+
149
+ button:enabled,
150
+ [role='button']:enabled {
151
+ cursor: pointer;
152
+ }
153
+
154
+ button:focus,
155
+ button:focus-visible {
156
+ outline: 1px dotted;
157
+ outline: 4px auto -webkit-focus-ring-color;
158
+ }
159
+
160
+ button:focus:not(:focus-visible) {
161
+ outline: none !important;
162
+ }
163
+
164
+ input:focus,
165
+ textarea:focus,
166
+ select:focus {
167
+ outline: none;
168
+ }
169
+
170
+ table {
171
+ border-collapse: collapse;
172
+ }
173
+
174
+ input {
175
+ background-color: transparent;
176
+ }
177
+
178
+ input:-ms-input-placeholder,
179
+ textarea:-ms-input-placeholder {
180
+ color: var(--htl-c-text-3);
181
+ }
182
+
183
+ input::-ms-input-placeholder,
184
+ textarea::-ms-input-placeholder {
185
+ color: var(--htl-c-text-3);
186
+ }
187
+
188
+ input::placeholder,
189
+ textarea::placeholder {
190
+ color: var(--htl-c-text-3);
191
+ }
192
+
193
+ input::-webkit-outer-spin-button,
194
+ input::-webkit-inner-spin-button {
195
+ -webkit-appearance: none;
196
+ margin: 0;
197
+ }
198
+
199
+ input[type='number'] {
200
+ -moz-appearance: textfield;
201
+ }
202
+
203
+ textarea {
204
+ resize: vertical;
205
+ }
206
+
207
+ select {
208
+ -webkit-appearance: none;
209
+ }
210
+
211
+ fieldset {
212
+ margin: 0;
213
+ padding: 0;
214
+ }
215
+
216
+ h1,
217
+ h2,
218
+ h3,
219
+ h4,
220
+ h5,
221
+ h6,
222
+ p {
223
+ overflow-wrap: break-word;
224
+ }
225
+
@@ -0,0 +1,82 @@
1
+ /* base doc content classes*/
2
+ .DocContent .content-wrapper
3
+ {
4
+ padding: 20px 0px;
5
+ margin: 0 0;
6
+ overflow: initial;
7
+ max-width:1500px;
8
+ }
9
+
10
+ .DocContent .injected-document-container
11
+ {
12
+ padding: 0 40px;
13
+ position:relative;
14
+ }
15
+
16
+ .DocContent .injected-document-content
17
+ {
18
+ width: 100%;
19
+ }
20
+
21
+ .DocContent .injected-document-toc
22
+ {
23
+ height: fit-content;
24
+ display:none;
25
+ margin:0 0 0 50px;
26
+ width:400px;
27
+ }
28
+
29
+ .DocContent .injected-document-toc .H2{
30
+
31
+ }
32
+ .DocContent .injected-document-toc .H3{
33
+ padding-left:10px;
34
+
35
+ }
36
+
37
+
38
+
39
+ @media (min-width: 1000px) {
40
+
41
+ .DocContent .injected-document-content
42
+ {
43
+ /*width: 900px;*/
44
+ }
45
+ }
46
+
47
+
48
+ /* style overrides to apply on screens that are 1790px and wider */
49
+ @media (min-width: 1500px) {
50
+
51
+ .DocContent .injected-document-toc
52
+ {
53
+ display:inline-block;
54
+ }
55
+ }
56
+
57
+ /* style overrides to apply on screens that are 1920px and wider */
58
+ @media (min-width: 1790px) {
59
+
60
+ .DocContent .content-wrapper
61
+ {
62
+ /*margin-left: 20px*/
63
+ }
64
+ }
65
+
66
+
67
+
68
+ /* LAYOUT MODS */
69
+
70
+ /* table-list*/
71
+ .DocContent.document-full .injected-document-content
72
+ {
73
+ /* take up max width - overrides max-width set in [.DocContent .injected-document-content] */
74
+ max-width:100%;
75
+ }
76
+
77
+ .DocContent.document-full .injected-document-content table
78
+ {
79
+ /* make all tables 100% */
80
+ width:100%;
81
+ display:table;
82
+ }
@@ -0,0 +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
+ }