isodoc 3.0.3 → 3.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.
- checksums.yaml +4 -4
- data/isodoc.gemspec +12 -2
- data/lib/isodoc/base_style/all.css +448 -0
- data/lib/isodoc/base_style/blocks.css +0 -0
- data/lib/isodoc/base_style/coverpage.css +0 -0
- data/lib/isodoc/base_style/nav.css +0 -0
- data/lib/isodoc/base_style/reset.css +312 -0
- data/lib/isodoc/gem_tasks.rb +10 -2
- data/lib/isodoc/version.rb +1 -1
- metadata +21 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a3a3be88ed08f8f5025c255a596b63685e4361411265eb024d0e9473f94fcca
|
4
|
+
data.tar.gz: 0e821ce48e0d212e638ee5fe70298ea7ea47780d057255d67e708cecd02f3319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab31e514116f9dc989eae235a933062dfdd05418076b2d353e21d51d4a1767a4038e66946aa09d4a8e6616b8b0750bca340f92570b02d3320a63f14b8cc3c701
|
7
|
+
data.tar.gz: 7373511670a6a8314374ab368bce30e23fcc5c0088adb53ae43fe85b70b87198347a141fd91127a200dcad2baa01492af476507e561c25785cb232a680876068
|
data/isodoc.gemspec
CHANGED
@@ -37,13 +37,13 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency "mn2pdf", ">= 2.13"
|
38
38
|
spec.add_dependency "mn-requirements", "~> 0.5.0"
|
39
39
|
|
40
|
+
spec.add_dependency "nokogiri", "<= 1.16.8"
|
40
41
|
spec.add_dependency "relaton-render", "~> 0.9.0"
|
41
42
|
spec.add_dependency "roman-numerals"
|
42
43
|
spec.add_dependency "rouge", "~> 4.0"
|
43
44
|
spec.add_dependency "thread_safe"
|
44
45
|
spec.add_dependency "twitter_cldr", ">= 6.6.0"
|
45
46
|
spec.add_dependency "uuidtools"
|
46
|
-
spec.add_dependency "nokogiri", "<= 1.16.8"
|
47
47
|
|
48
48
|
spec.add_development_dependency "bigdecimal"
|
49
49
|
spec.add_development_dependency "debug"
|
@@ -53,7 +53,17 @@ Gem::Specification.new do |spec|
|
|
53
53
|
spec.add_development_dependency "rake", "~> 13.0"
|
54
54
|
spec.add_development_dependency "rspec", "~> 3.6"
|
55
55
|
spec.add_development_dependency "rubocop", "~> 1.5.2"
|
56
|
-
|
56
|
+
=begin
|
57
|
+
if RUBY_VERSION.start_with?("3.1")
|
58
|
+
spec.add_development_dependency "sassc-embedded", "1.54.0"
|
59
|
+
spec.add_development_dependency "sass-embedded", "1.54.2"
|
60
|
+
else
|
61
|
+
spec.add_development_dependency "sassc-embedded", "~> 1"
|
62
|
+
spec.add_development_dependency "sass-embedded", "~> 1"
|
63
|
+
end
|
64
|
+
#spec.add_development_dependency "sassc-embedded", "~> 1"
|
65
|
+
=end
|
66
|
+
#spec.add_development_dependency "sassc"
|
57
67
|
spec.add_development_dependency "sassc-embedded", "~> 1"
|
58
68
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
59
69
|
spec.add_development_dependency "timecop", "~> 0.9"
|
@@ -0,0 +1,448 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
html, body, div, span, applet, object, iframe,
|
3
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
4
|
+
a, abbr, acronym, address, big, cite, code,
|
5
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
6
|
+
small, strike, strong, sub, sup, tt, var,
|
7
|
+
b, u, i, center,
|
8
|
+
ol, ul, li,
|
9
|
+
fieldset, form, label, legend,
|
10
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
11
|
+
article, aside, canvas, details, embed,
|
12
|
+
figure, figcaption, footer, header, hgroup,
|
13
|
+
menu, output, ruby, section, summary,
|
14
|
+
time, mark, audio, video {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
html, body, div, span, applet, object, iframe,
|
20
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
21
|
+
a, abbr, acronym, address, big, cite, code,
|
22
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
23
|
+
small, strike, strong, sub, sup, tt, var,
|
24
|
+
b, u, i, center,
|
25
|
+
dl, dt, dd, ol, ul, li,
|
26
|
+
fieldset, form, label, legend,
|
27
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
28
|
+
article, aside, canvas, details, embed,
|
29
|
+
figure, figcaption, footer, header, hgroup,
|
30
|
+
menu, nav, output, ruby, section, summary,
|
31
|
+
time, mark, audio, video {
|
32
|
+
border: 0;
|
33
|
+
font-size: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
html, body, div, span, applet, object, iframe,
|
37
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
38
|
+
a, abbr, acronym, address, big, cite, code,
|
39
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
40
|
+
small, strike, strong, tt, var,
|
41
|
+
b, u, i, center,
|
42
|
+
dl, dd, ol, ul, li,
|
43
|
+
fieldset, form, label, legend,
|
44
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
45
|
+
article, aside, canvas, details, embed,
|
46
|
+
figure, figcaption, footer, header, hgroup,
|
47
|
+
menu, nav, output, ruby, section, summary,
|
48
|
+
time, mark, audio, video {
|
49
|
+
vertical-align: baseline;
|
50
|
+
}
|
51
|
+
|
52
|
+
html, body, div, span, applet, object, iframe,
|
53
|
+
p, blockquote,
|
54
|
+
a, abbr, acronym, address, big, cite,
|
55
|
+
del, dfn, em, img, ins, q, s,
|
56
|
+
small, strike, strong, sub, sup, var,
|
57
|
+
b, u, i, center,
|
58
|
+
dl, dt, dd, ol, ul, li,
|
59
|
+
fieldset, form, label, legend,
|
60
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
61
|
+
article, aside, canvas, details, embed,
|
62
|
+
figure, figcaption, footer, header, hgroup,
|
63
|
+
menu, nav, output, ruby, section, summary,
|
64
|
+
time, mark, audio, video {
|
65
|
+
font-family: {{bodyfont}};
|
66
|
+
}
|
67
|
+
|
68
|
+
code, pre, tt, kbd, samp {
|
69
|
+
font-family: {{monospacefont}};
|
70
|
+
font-variant-ligatures: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
code *, pre *, tt *, kbd *, samp * {
|
74
|
+
font-family: {{monospacefont}} !important;
|
75
|
+
font-variant-ligatures: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
p code, dt code, li code, label code, legend code, caption code, th code, td code,
|
79
|
+
p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
|
80
|
+
p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
81
|
+
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
82
|
+
font-size: {{monospacefontsize}};
|
83
|
+
}
|
84
|
+
|
85
|
+
sub, sup {
|
86
|
+
font-size: 0.75em;
|
87
|
+
}
|
88
|
+
|
89
|
+
article, aside, details, figcaption, figure,
|
90
|
+
footer, header, hgroup, menu, nav, section {
|
91
|
+
display: block;
|
92
|
+
}
|
93
|
+
|
94
|
+
table {
|
95
|
+
border-collapse: collapse;
|
96
|
+
border-spacing: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
h1, h2, h3, h4, h5, h6 {
|
100
|
+
font-family: {{headerfont}};
|
101
|
+
}
|
102
|
+
|
103
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
104
|
+
font-family: {{headerfont}};
|
105
|
+
}
|
106
|
+
|
107
|
+
blockquote, q {
|
108
|
+
quotes: none;
|
109
|
+
}
|
110
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
111
|
+
content: "";
|
112
|
+
content: none;
|
113
|
+
}
|
114
|
+
|
115
|
+
.h2Annex {
|
116
|
+
font-family: {{headerfont}};
|
117
|
+
}
|
118
|
+
|
119
|
+
dl {
|
120
|
+
display: grid;
|
121
|
+
grid-template-columns: max-content auto;
|
122
|
+
}
|
123
|
+
dl dt p, dl dd p {
|
124
|
+
margin-top: 0;
|
125
|
+
}
|
126
|
+
dl dt {
|
127
|
+
grid-column-start: 1;
|
128
|
+
}
|
129
|
+
dl dd {
|
130
|
+
grid-column-start: 2;
|
131
|
+
}
|
132
|
+
|
133
|
+
b, strong {
|
134
|
+
font-weight: bold;
|
135
|
+
}
|
136
|
+
|
137
|
+
div.document-stage-band, div.document-type-band {
|
138
|
+
background-color: #333333;
|
139
|
+
}
|
140
|
+
|
141
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
142
|
+
content: ", ";
|
143
|
+
vertical-align: super;
|
144
|
+
}
|
145
|
+
|
146
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
147
|
+
content: ", ";
|
148
|
+
vertical-align: super;
|
149
|
+
}
|
150
|
+
|
151
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
152
|
+
a.FootnoteRef, span.FootnoteRef {
|
153
|
+
vertical-align: super;
|
154
|
+
}
|
155
|
+
|
156
|
+
.addition {
|
157
|
+
color: blue;
|
158
|
+
}
|
159
|
+
|
160
|
+
.deletion {
|
161
|
+
color: red;
|
162
|
+
text-decoration: line-through;
|
163
|
+
}
|
164
|
+
|
165
|
+
ruby {
|
166
|
+
ruby-position: over;
|
167
|
+
-webkit-ruby-position: before;
|
168
|
+
}
|
169
|
+
|
170
|
+
ruby ruby {
|
171
|
+
ruby-position: under;
|
172
|
+
-webkit-ruby-position: after;
|
173
|
+
}
|
174
|
+
|
175
|
+
/* code highlighting with line numbers */
|
176
|
+
table.rouge-line-table td.rouge-gutter {
|
177
|
+
-moz-user-select: none;
|
178
|
+
-ms-user-select: none;
|
179
|
+
-webkit-user-select: none;
|
180
|
+
user-select: none;
|
181
|
+
padding-right: 1em;
|
182
|
+
}
|
183
|
+
|
184
|
+
table.rouge-line-table td.rouge-code {
|
185
|
+
-moz-user-select: all;
|
186
|
+
-ms-user-select: all;
|
187
|
+
-webkit-user-select: all;
|
188
|
+
user-select: all;
|
189
|
+
}
|
190
|
+
|
191
|
+
table.rouge-line-table,
|
192
|
+
table.rouge-line-table th,
|
193
|
+
table.rouge-line-table td {
|
194
|
+
width: auto;
|
195
|
+
border: none;
|
196
|
+
margin: 0;
|
197
|
+
padding: 0;
|
198
|
+
font-size: 100%;
|
199
|
+
}
|
200
|
+
|
201
|
+
table.rouge-line-table pre {
|
202
|
+
margin: 0;
|
203
|
+
padding: 0;
|
204
|
+
overflow-x: visible;
|
205
|
+
font-size: 100%;
|
206
|
+
}
|
207
|
+
|
208
|
+
/* header § links */
|
209
|
+
a.header {
|
210
|
+
color: inherit;
|
211
|
+
text-decoration: none;
|
212
|
+
}
|
213
|
+
|
214
|
+
a.header:hover {
|
215
|
+
color: #a53221 !important;
|
216
|
+
background: inherit;
|
217
|
+
box-shadow: none;
|
218
|
+
}
|
219
|
+
|
220
|
+
a.header:visited {
|
221
|
+
color: inherit;
|
222
|
+
text-decoration: none;
|
223
|
+
}
|
224
|
+
|
225
|
+
a.anchor {
|
226
|
+
position: absolute;
|
227
|
+
z-index: 1001;
|
228
|
+
width: 1.5ex;
|
229
|
+
margin-left: -1.5ex;
|
230
|
+
display: block;
|
231
|
+
text-decoration: none !important;
|
232
|
+
visibility: hidden;
|
233
|
+
text-align: center;
|
234
|
+
font-weight: 400;
|
235
|
+
}
|
236
|
+
|
237
|
+
a.anchor::before {
|
238
|
+
content: "§";
|
239
|
+
font-size: 0.85em;
|
240
|
+
display: block;
|
241
|
+
padding-top: 0.1em;
|
242
|
+
}
|
243
|
+
|
244
|
+
a.anchor:hover {
|
245
|
+
color: #a53221;
|
246
|
+
background: inherit;
|
247
|
+
box-shadow: none;
|
248
|
+
}
|
249
|
+
|
250
|
+
h1 > a.anchor:hover,
|
251
|
+
h2 > a.anchor:hover,
|
252
|
+
h3 > a.anchor:hover,
|
253
|
+
h4 > a.anchor:hover,
|
254
|
+
h5 > a.anchor:hover,
|
255
|
+
h6 > a.anchor:hover,
|
256
|
+
.inline-header > a.anchor:hover,
|
257
|
+
h1:hover > a.anchor,
|
258
|
+
h2:hover > a.anchor,
|
259
|
+
h3:hover > a.anchor,
|
260
|
+
h4:hover > a.anchor,
|
261
|
+
h5:hover > a.anchor,
|
262
|
+
h6:hover > a.anchor,
|
263
|
+
.inline-header:hover > a.anchor {
|
264
|
+
visibility: visible;
|
265
|
+
}
|
266
|
+
|
267
|
+
/* collapsible snippets: collapsible before hidable */
|
268
|
+
.hidable {
|
269
|
+
max-height: 0;
|
270
|
+
overflow: hidden;
|
271
|
+
transition: max-height 0.2s ease-out;
|
272
|
+
}
|
273
|
+
|
274
|
+
.collapsible {
|
275
|
+
background-color: #777;
|
276
|
+
color: white;
|
277
|
+
cursor: pointer;
|
278
|
+
padding: 3px 0;
|
279
|
+
margin: 0;
|
280
|
+
width: 100%;
|
281
|
+
border: none;
|
282
|
+
text-align: left;
|
283
|
+
outline: none;
|
284
|
+
font-size: 15px;
|
285
|
+
}
|
286
|
+
|
287
|
+
.active, .collapsible:hover {
|
288
|
+
background-color: #555;
|
289
|
+
}
|
290
|
+
|
291
|
+
.collapsible:after {
|
292
|
+
content: "▼";
|
293
|
+
color: white;
|
294
|
+
font-weight: bold;
|
295
|
+
float: right;
|
296
|
+
margin-left: 12px;
|
297
|
+
margin-right: 12px;
|
298
|
+
}
|
299
|
+
|
300
|
+
.active:after {
|
301
|
+
content: "▲";
|
302
|
+
}
|
303
|
+
|
304
|
+
/* collapsible: */
|
305
|
+
.collapsible + .hidable {
|
306
|
+
margin-top: 0;
|
307
|
+
}
|
308
|
+
|
309
|
+
.collapsible:not(.active) + .hidable {
|
310
|
+
overflow: hidden;
|
311
|
+
padding: 0;
|
312
|
+
}
|
313
|
+
|
314
|
+
#standard-band {
|
315
|
+
background-color: #0AC442;
|
316
|
+
}
|
317
|
+
|
318
|
+
#standard {
|
319
|
+
border-bottom: solid 3px #0AC442;
|
320
|
+
}
|
321
|
+
|
322
|
+
#directive-band {
|
323
|
+
background-color: #540D6E;
|
324
|
+
}
|
325
|
+
|
326
|
+
#directive {
|
327
|
+
border-bottom: solid 3px #540D6E;
|
328
|
+
}
|
329
|
+
|
330
|
+
#guide-band {
|
331
|
+
background-color: #D183C9;
|
332
|
+
}
|
333
|
+
|
334
|
+
#guide {
|
335
|
+
border-bottom: solid 3px #D183C9;
|
336
|
+
}
|
337
|
+
|
338
|
+
#specification-band {
|
339
|
+
background-color: #65AFFF;
|
340
|
+
}
|
341
|
+
|
342
|
+
#specification {
|
343
|
+
border-bottom: solid 3px #65AFFF;
|
344
|
+
}
|
345
|
+
|
346
|
+
#report-band {
|
347
|
+
background-color: #3A405A;
|
348
|
+
}
|
349
|
+
|
350
|
+
#report {
|
351
|
+
border-bottom: solid 3px #3A405A;
|
352
|
+
}
|
353
|
+
|
354
|
+
#amendment-band {
|
355
|
+
background-color: #F26430;
|
356
|
+
}
|
357
|
+
|
358
|
+
#amendment {
|
359
|
+
border-bottom: solid 3px #F26430;
|
360
|
+
}
|
361
|
+
|
362
|
+
#corrigendum-band {
|
363
|
+
background-color: #C84630;
|
364
|
+
}
|
365
|
+
|
366
|
+
#corrigendum {
|
367
|
+
border-bottom: solid 3px #C84630;
|
368
|
+
}
|
369
|
+
|
370
|
+
#administrative-band {
|
371
|
+
background-color: #BFAE48;
|
372
|
+
}
|
373
|
+
|
374
|
+
#administrative {
|
375
|
+
border-bottom: solid 3px #BFAE48;
|
376
|
+
}
|
377
|
+
|
378
|
+
#advisory-band {
|
379
|
+
background-color: #BD9391;
|
380
|
+
}
|
381
|
+
|
382
|
+
#advisory {
|
383
|
+
border-bottom: solid 3px #BD9391;
|
384
|
+
}
|
385
|
+
|
386
|
+
#proposal-band {
|
387
|
+
background-color: #39A0ED;
|
388
|
+
}
|
389
|
+
|
390
|
+
#proposal {
|
391
|
+
border-bottom: solid 3px #39A0ED;
|
392
|
+
}
|
393
|
+
|
394
|
+
#working-draft-band {
|
395
|
+
background-color: #2D7393;
|
396
|
+
}
|
397
|
+
|
398
|
+
#working-draft {
|
399
|
+
border-bottom: solid 3px #2D7393;
|
400
|
+
}
|
401
|
+
|
402
|
+
#committee-draft-band {
|
403
|
+
background-color: #2A6B7C;
|
404
|
+
}
|
405
|
+
|
406
|
+
#committee-draft {
|
407
|
+
border-bottom: solid 3px #2A6B7C;
|
408
|
+
}
|
409
|
+
|
410
|
+
#draft-standard-band {
|
411
|
+
background-color: #1C7F7A;
|
412
|
+
}
|
413
|
+
|
414
|
+
#draft-standard {
|
415
|
+
border-bottom: solid 3px #1C7F7A;
|
416
|
+
}
|
417
|
+
|
418
|
+
#final-draft-band {
|
419
|
+
background-color: #53C170;
|
420
|
+
}
|
421
|
+
|
422
|
+
#final-draft {
|
423
|
+
border-bottom: solid 3px #53C170;
|
424
|
+
}
|
425
|
+
|
426
|
+
#published-band {
|
427
|
+
background-color: #069E2D;
|
428
|
+
}
|
429
|
+
|
430
|
+
#published {
|
431
|
+
border-bottom: solid 3px #069E2D;
|
432
|
+
}
|
433
|
+
|
434
|
+
#withdrawn-band {
|
435
|
+
background-color: #004E64;
|
436
|
+
}
|
437
|
+
|
438
|
+
#withdrawn {
|
439
|
+
border-bottom: solid 3px #004E64;
|
440
|
+
}
|
441
|
+
|
442
|
+
#cancelled-band {
|
443
|
+
background-color: #2E382E;
|
444
|
+
}
|
445
|
+
|
446
|
+
#cancelled {
|
447
|
+
border-bottom: solid 3px #2E382E;
|
448
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,312 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
html, body, div, span, applet, object, iframe,
|
3
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
4
|
+
a, abbr, acronym, address, big, cite, code,
|
5
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
6
|
+
small, strike, strong, sub, sup, tt, var,
|
7
|
+
b, u, i, center,
|
8
|
+
ol, ul, li,
|
9
|
+
fieldset, form, label, legend,
|
10
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
11
|
+
article, aside, canvas, details, embed,
|
12
|
+
figure, figcaption, footer, header, hgroup,
|
13
|
+
menu, output, ruby, section, summary,
|
14
|
+
time, mark, audio, video {
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
html, body, div, span, applet, object, iframe,
|
20
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
21
|
+
a, abbr, acronym, address, big, cite, code,
|
22
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
23
|
+
small, strike, strong, sub, sup, tt, var,
|
24
|
+
b, u, i, center,
|
25
|
+
dl, dt, dd, ol, ul, li,
|
26
|
+
fieldset, form, label, legend,
|
27
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
28
|
+
article, aside, canvas, details, embed,
|
29
|
+
figure, figcaption, footer, header, hgroup,
|
30
|
+
menu, nav, output, ruby, section, summary,
|
31
|
+
time, mark, audio, video {
|
32
|
+
border: 0;
|
33
|
+
font-size: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
html, body, div, span, applet, object, iframe,
|
37
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
38
|
+
a, abbr, acronym, address, big, cite, code,
|
39
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
40
|
+
small, strike, strong, tt, var,
|
41
|
+
b, u, i, center,
|
42
|
+
dl, dd, ol, ul, li,
|
43
|
+
fieldset, form, label, legend,
|
44
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
45
|
+
article, aside, canvas, details, embed,
|
46
|
+
figure, figcaption, footer, header, hgroup,
|
47
|
+
menu, nav, output, ruby, section, summary,
|
48
|
+
time, mark, audio, video {
|
49
|
+
vertical-align: baseline;
|
50
|
+
}
|
51
|
+
|
52
|
+
html, body, div, span, applet, object, iframe,
|
53
|
+
p, blockquote,
|
54
|
+
a, abbr, acronym, address, big, cite,
|
55
|
+
del, dfn, em, img, ins, q, s,
|
56
|
+
small, strike, strong, sub, sup, var,
|
57
|
+
b, u, i, center,
|
58
|
+
dl, dt, dd, ol, ul, li,
|
59
|
+
fieldset, form, label, legend,
|
60
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
61
|
+
article, aside, canvas, details, embed,
|
62
|
+
figure, figcaption, footer, header, hgroup,
|
63
|
+
menu, nav, output, ruby, section, summary,
|
64
|
+
time, mark, audio, video {
|
65
|
+
font-family: {{bodyfont}};
|
66
|
+
}
|
67
|
+
|
68
|
+
code, pre, tt, kbd, samp {
|
69
|
+
font-family: {{monospacefont}};
|
70
|
+
font-variant-ligatures: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
code *, pre *, tt *, kbd *, samp * {
|
74
|
+
font-family: {{monospacefont}} !important;
|
75
|
+
font-variant-ligatures: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
p code, dt code, li code, label code, legend code, caption code, th code, td code,
|
79
|
+
p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
|
80
|
+
p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
81
|
+
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
82
|
+
font-size: {{monospacefontsize}};
|
83
|
+
}
|
84
|
+
|
85
|
+
sub, sup {
|
86
|
+
font-size: 0.75em;
|
87
|
+
}
|
88
|
+
|
89
|
+
article, aside, details, figcaption, figure,
|
90
|
+
footer, header, hgroup, menu, nav, section {
|
91
|
+
display: block;
|
92
|
+
}
|
93
|
+
|
94
|
+
table {
|
95
|
+
border-collapse: collapse;
|
96
|
+
border-spacing: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
h1, h2, h3, h4, h5, h6 {
|
100
|
+
font-family: {{headerfont}};
|
101
|
+
}
|
102
|
+
|
103
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
104
|
+
font-family: {{headerfont}};
|
105
|
+
}
|
106
|
+
|
107
|
+
blockquote, q {
|
108
|
+
quotes: none;
|
109
|
+
}
|
110
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
111
|
+
content: "";
|
112
|
+
content: none;
|
113
|
+
}
|
114
|
+
|
115
|
+
.h2Annex {
|
116
|
+
font-family: {{headerfont}};
|
117
|
+
}
|
118
|
+
|
119
|
+
dl {
|
120
|
+
display: grid;
|
121
|
+
grid-template-columns: max-content auto;
|
122
|
+
}
|
123
|
+
dl dt p, dl dd p {
|
124
|
+
margin-top: 0;
|
125
|
+
}
|
126
|
+
dl dt {
|
127
|
+
grid-column-start: 1;
|
128
|
+
}
|
129
|
+
dl dd {
|
130
|
+
grid-column-start: 2;
|
131
|
+
}
|
132
|
+
|
133
|
+
b, strong {
|
134
|
+
font-weight: bold;
|
135
|
+
}
|
136
|
+
|
137
|
+
div.document-stage-band, div.document-type-band {
|
138
|
+
background-color: #333333;
|
139
|
+
}
|
140
|
+
|
141
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
142
|
+
content: ", ";
|
143
|
+
vertical-align: super;
|
144
|
+
}
|
145
|
+
|
146
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
147
|
+
content: ", ";
|
148
|
+
vertical-align: super;
|
149
|
+
}
|
150
|
+
|
151
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
152
|
+
a.FootnoteRef, span.FootnoteRef {
|
153
|
+
vertical-align: super;
|
154
|
+
}
|
155
|
+
|
156
|
+
.addition {
|
157
|
+
color: blue;
|
158
|
+
}
|
159
|
+
|
160
|
+
.deletion {
|
161
|
+
color: red;
|
162
|
+
text-decoration: line-through;
|
163
|
+
}
|
164
|
+
|
165
|
+
ruby {
|
166
|
+
ruby-position: over;
|
167
|
+
-webkit-ruby-position: before;
|
168
|
+
}
|
169
|
+
|
170
|
+
ruby ruby {
|
171
|
+
ruby-position: under;
|
172
|
+
-webkit-ruby-position: after;
|
173
|
+
}
|
174
|
+
|
175
|
+
/* code highlighting with line numbers */
|
176
|
+
table.rouge-line-table td.rouge-gutter {
|
177
|
+
-moz-user-select: none;
|
178
|
+
-ms-user-select: none;
|
179
|
+
-webkit-user-select: none;
|
180
|
+
user-select: none;
|
181
|
+
padding-right: 1em;
|
182
|
+
}
|
183
|
+
|
184
|
+
table.rouge-line-table td.rouge-code {
|
185
|
+
-moz-user-select: all;
|
186
|
+
-ms-user-select: all;
|
187
|
+
-webkit-user-select: all;
|
188
|
+
user-select: all;
|
189
|
+
}
|
190
|
+
|
191
|
+
table.rouge-line-table,
|
192
|
+
table.rouge-line-table th,
|
193
|
+
table.rouge-line-table td {
|
194
|
+
width: auto;
|
195
|
+
border: none;
|
196
|
+
margin: 0;
|
197
|
+
padding: 0;
|
198
|
+
font-size: 100%;
|
199
|
+
}
|
200
|
+
|
201
|
+
table.rouge-line-table pre {
|
202
|
+
margin: 0;
|
203
|
+
padding: 0;
|
204
|
+
overflow-x: visible;
|
205
|
+
font-size: 100%;
|
206
|
+
}
|
207
|
+
|
208
|
+
/* header § links */
|
209
|
+
a.header {
|
210
|
+
color: inherit;
|
211
|
+
text-decoration: none;
|
212
|
+
}
|
213
|
+
|
214
|
+
a.header:hover {
|
215
|
+
color: #a53221 !important;
|
216
|
+
background: inherit;
|
217
|
+
box-shadow: none;
|
218
|
+
}
|
219
|
+
|
220
|
+
a.header:visited {
|
221
|
+
color: inherit;
|
222
|
+
text-decoration: none;
|
223
|
+
}
|
224
|
+
|
225
|
+
a.anchor {
|
226
|
+
position: absolute;
|
227
|
+
z-index: 1001;
|
228
|
+
width: 1.5ex;
|
229
|
+
margin-left: -1.5ex;
|
230
|
+
display: block;
|
231
|
+
text-decoration: none !important;
|
232
|
+
visibility: hidden;
|
233
|
+
text-align: center;
|
234
|
+
font-weight: 400;
|
235
|
+
}
|
236
|
+
|
237
|
+
a.anchor::before {
|
238
|
+
content: "§";
|
239
|
+
font-size: 0.85em;
|
240
|
+
display: block;
|
241
|
+
padding-top: 0.1em;
|
242
|
+
}
|
243
|
+
|
244
|
+
a.anchor:hover {
|
245
|
+
color: #a53221;
|
246
|
+
background: inherit;
|
247
|
+
box-shadow: none;
|
248
|
+
}
|
249
|
+
|
250
|
+
h1 > a.anchor:hover,
|
251
|
+
h2 > a.anchor:hover,
|
252
|
+
h3 > a.anchor:hover,
|
253
|
+
h4 > a.anchor:hover,
|
254
|
+
h5 > a.anchor:hover,
|
255
|
+
h6 > a.anchor:hover,
|
256
|
+
.inline-header > a.anchor:hover,
|
257
|
+
h1:hover > a.anchor,
|
258
|
+
h2:hover > a.anchor,
|
259
|
+
h3:hover > a.anchor,
|
260
|
+
h4:hover > a.anchor,
|
261
|
+
h5:hover > a.anchor,
|
262
|
+
h6:hover > a.anchor,
|
263
|
+
.inline-header:hover > a.anchor {
|
264
|
+
visibility: visible;
|
265
|
+
}
|
266
|
+
|
267
|
+
/* collapsible snippets: collapsible before hidable */
|
268
|
+
.hidable {
|
269
|
+
max-height: 0;
|
270
|
+
overflow: hidden;
|
271
|
+
transition: max-height 0.2s ease-out;
|
272
|
+
}
|
273
|
+
|
274
|
+
.collapsible {
|
275
|
+
background-color: #777;
|
276
|
+
color: white;
|
277
|
+
cursor: pointer;
|
278
|
+
padding: 3px 0;
|
279
|
+
margin: 0;
|
280
|
+
width: 100%;
|
281
|
+
border: none;
|
282
|
+
text-align: left;
|
283
|
+
outline: none;
|
284
|
+
font-size: 15px;
|
285
|
+
}
|
286
|
+
|
287
|
+
.active, .collapsible:hover {
|
288
|
+
background-color: #555;
|
289
|
+
}
|
290
|
+
|
291
|
+
.collapsible:after {
|
292
|
+
content: "▼";
|
293
|
+
color: white;
|
294
|
+
font-weight: bold;
|
295
|
+
float: right;
|
296
|
+
margin-left: 12px;
|
297
|
+
margin-right: 12px;
|
298
|
+
}
|
299
|
+
|
300
|
+
.active:after {
|
301
|
+
content: "▲";
|
302
|
+
}
|
303
|
+
|
304
|
+
/* collapsible: */
|
305
|
+
.collapsible + .hidable {
|
306
|
+
margin-top: 0;
|
307
|
+
}
|
308
|
+
|
309
|
+
.collapsible:not(.active) + .hidable {
|
310
|
+
overflow: hidden;
|
311
|
+
padding: 0;
|
312
|
+
}
|
data/lib/isodoc/gem_tasks.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require "sassc-embedded"
|
4
4
|
require "isodoc/sassc_importer"
|
5
5
|
require "rake/clean"
|
6
|
+
require "tmpdir"
|
6
7
|
|
7
8
|
module IsoDoc
|
8
9
|
module GemTasks
|
@@ -110,7 +111,8 @@ module IsoDoc
|
|
110
111
|
end
|
111
112
|
|
112
113
|
def compile_scss(filename)
|
113
|
-
require "sassc"
|
114
|
+
require "sassc-embedded"
|
115
|
+
require "isodoc/sassc_importer"
|
114
116
|
|
115
117
|
isodoc_path = if Gem.loaded_specs["isodoc"]
|
116
118
|
File.join(Gem.loaded_specs["isodoc"].full_gem_path,
|
@@ -122,12 +124,18 @@ module IsoDoc
|
|
122
124
|
File.dirname(filename)].each do |name|
|
123
125
|
SassC.load_paths << name
|
124
126
|
end
|
127
|
+
Dir.mktmpdir do |dir|
|
128
|
+
variables_file_path = File.join(dir, "variables.scss")
|
129
|
+
File.write(variables_file_path, fonts_placeholder)
|
130
|
+
SassC.load_paths << dir
|
131
|
+
|
125
132
|
sheet_content = File.read(filename, encoding: "UTF-8")
|
126
|
-
SassC::Engine.new(
|
133
|
+
SassC::Engine.new(%<@use "variables" as *;\n#{sheet_content}>,
|
127
134
|
syntax: :scss,
|
128
135
|
importer: SasscImporter)
|
129
136
|
.render
|
130
137
|
end
|
138
|
+
end
|
131
139
|
|
132
140
|
def compile_scss_task(current_task)
|
133
141
|
filename = current_task.source
|
data/lib/isodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.5.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nokogiri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "<="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.16.8
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "<="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.16.8
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: relaton-render
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,20 +178,6 @@ dependencies:
|
|
164
178
|
- - ">="
|
165
179
|
- !ruby/object:Gem::Version
|
166
180
|
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: nokogiri
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "<="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 1.16.8
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "<="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 1.16.8
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: bigdecimal
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -375,16 +375,21 @@ files:
|
|
375
375
|
- lib/isodoc-yaml/i18n-ru.yaml
|
376
376
|
- lib/isodoc-yaml/i18n-zh-Hans.yaml
|
377
377
|
- lib/isodoc.rb
|
378
|
+
- lib/isodoc/base_style/all.css
|
378
379
|
- lib/isodoc/base_style/all.scss
|
379
380
|
- lib/isodoc/base_style/bands.css
|
380
381
|
- lib/isodoc/base_style/bands.scss
|
382
|
+
- lib/isodoc/base_style/blocks.css
|
381
383
|
- lib/isodoc/base_style/blocks.scss
|
384
|
+
- lib/isodoc/base_style/coverpage.css
|
382
385
|
- lib/isodoc/base_style/coverpage.scss
|
383
386
|
- lib/isodoc/base_style/defaults.css
|
384
387
|
- lib/isodoc/base_style/defaults.scss
|
385
388
|
- lib/isodoc/base_style/metanorma_word.css
|
386
389
|
- lib/isodoc/base_style/metanorma_word.scss
|
390
|
+
- lib/isodoc/base_style/nav.css
|
387
391
|
- lib/isodoc/base_style/nav.scss
|
392
|
+
- lib/isodoc/base_style/reset.css
|
388
393
|
- lib/isodoc/base_style/reset.scss
|
389
394
|
- lib/isodoc/base_style/rouge.css
|
390
395
|
- lib/isodoc/base_style/scripts.html
|