metanorma-acme 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/acme/converter.rb +14 -12
- data/lib/isodoc/acme/html/htmlstyle.scss +152 -522
- data/lib/metanorma/acme.rb +4 -6
- data/lib/metanorma/acme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac164f22174c2dbbb4c23e284c591bce6ae66e99571a1a8e9b0fdca0c6f3dcf1
|
4
|
+
data.tar.gz: 05f9b3092cf08f50243cae08ade8ce127053491f04135019951b3e4ec4fc64c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a126b92cf36b34062d0dc1f1d6ed5c6d11bffcf874d48e4348a87a97c6767a463fed606ac039b22dffea53490921ae7f14391732fbe3bcdb0a55c3bee18d642e
|
7
|
+
data.tar.gz: 5492c9a018a5b0d387b6e81abf0f4eef937903b3e7e8235d95652214a1ec1ec49df2546945cf1cf6f6df563f1bd5d345ff9c34c416b1939f8442cb5840fbcf77
|
@@ -9,6 +9,9 @@ module Asciidoctor
|
|
9
9
|
# schema encapsulation of the document for validation
|
10
10
|
#
|
11
11
|
class Converter < Standoc::Converter
|
12
|
+
XML_ROOT_TAG = "acme-standard".freeze
|
13
|
+
XML_NAMESPACE = "https://www.metanorma.org/ns/acme".freeze
|
14
|
+
|
12
15
|
register_for "acme"
|
13
16
|
|
14
17
|
def metadata_author(node, xml)
|
@@ -70,12 +73,8 @@ module Asciidoctor
|
|
70
73
|
end
|
71
74
|
end
|
72
75
|
|
73
|
-
def title_validate(root)
|
74
|
-
nil
|
75
|
-
end
|
76
|
-
|
77
76
|
def makexml(node)
|
78
|
-
root_tag = configuration.xml_root_tag ||
|
77
|
+
root_tag = configuration.xml_root_tag || XML_ROOT_TAG
|
79
78
|
result = ["<?xml version='1.0' encoding='UTF-8'?>\n<#{root_tag}>"]
|
80
79
|
@draft = node.attributes.has_key?("draft")
|
81
80
|
result << noko { |ixml| front node, ixml }
|
@@ -84,7 +83,7 @@ module Asciidoctor
|
|
84
83
|
result = textcleanup(result)
|
85
84
|
ret1 = cleanup(Nokogiri::XML(result))
|
86
85
|
validate(ret1) unless @novalid
|
87
|
-
ret1.root.add_namespace(nil, configuration.document_namespace)
|
86
|
+
ret1.root.add_namespace(nil, configuration.document_namespace || XML_NAMESPACE)
|
88
87
|
ret1
|
89
88
|
end
|
90
89
|
|
@@ -97,7 +96,12 @@ module Asciidoctor
|
|
97
96
|
d
|
98
97
|
end
|
99
98
|
|
99
|
+
def read_config_file(path_to_config_file)
|
100
|
+
Metanorma::Acme.configuration.set_default_values_from_yaml_file(path_to_config_file)
|
101
|
+
end
|
102
|
+
|
100
103
|
def document(node)
|
104
|
+
read_config_file(node.attr("customize")) if node.attr("customize")
|
101
105
|
init(node)
|
102
106
|
ret1 = makexml(node)
|
103
107
|
ret = ret1.to_xml(indent: 2)
|
@@ -131,17 +135,15 @@ module Asciidoctor
|
|
131
135
|
end
|
132
136
|
end
|
133
137
|
|
134
|
-
def
|
135
|
-
return
|
136
|
-
end
|
138
|
+
def blank_method(*args); end
|
137
139
|
|
138
140
|
def html_converter(node)
|
139
141
|
IsoDoc::Acme::HtmlConvert.new(html_extract_attributes(node))
|
140
142
|
end
|
141
143
|
|
142
|
-
|
143
|
-
|
144
|
-
|
144
|
+
alias_method :pdf_converter, :html_converter
|
145
|
+
alias_method :style, :blank_method
|
146
|
+
alias_method :title_validate, :blank_method
|
145
147
|
|
146
148
|
def word_converter(node)
|
147
149
|
IsoDoc::Acme::WordConvert.new(doc_extract_attributes(node))
|
@@ -7,268 +7,73 @@
|
|
7
7
|
License: none (public domain)
|
8
8
|
*/
|
9
9
|
|
10
|
-
|
11
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
12
|
-
a, abbr, acronym, address, big, cite, code,
|
13
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
14
|
-
small, strike, strong, sub, sup, tt, var,
|
15
|
-
b, u, i, center,
|
16
|
-
ol, ul, li,
|
17
|
-
fieldset, form, label, legend,
|
18
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
19
|
-
article, aside, canvas, details, embed,
|
20
|
-
figure, figcaption, footer, header, hgroup,
|
21
|
-
menu, nav, output, ruby, section, summary,
|
22
|
-
time, mark, audio, video {
|
23
|
-
margin: 0;
|
24
|
-
padding: 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
html, body, div, span, applet, object, iframe,
|
28
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
29
|
-
a, abbr, acronym, address, big, cite, code,
|
30
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
31
|
-
small, strike, strong, sub, sup, tt, var,
|
32
|
-
b, u, i, center,
|
33
|
-
dl, dt, dd, ol, ul, li,
|
34
|
-
fieldset, form, label, legend,
|
35
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
36
|
-
article, aside, canvas, details, embed,
|
37
|
-
figure, figcaption, footer, header, hgroup,
|
38
|
-
menu, nav, output, ruby, section, summary,
|
39
|
-
time, mark, audio, video {
|
40
|
-
border: 0;
|
41
|
-
font-size: 100%;
|
42
|
-
}
|
43
|
-
|
44
|
-
html, body, div, span, applet, object, iframe,
|
45
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
46
|
-
a, abbr, acronym, address, big, cite, code,
|
47
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
48
|
-
small, strike, strong, tt, var,
|
49
|
-
b, u, i, center,
|
50
|
-
dl, dd, ol, ul, li,
|
51
|
-
fieldset, form, label, legend,
|
52
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
53
|
-
article, aside, canvas, details, embed,
|
54
|
-
figure, figcaption, footer, header, hgroup,
|
55
|
-
menu, nav, output, ruby, section, summary,
|
56
|
-
time, mark, audio, video {
|
57
|
-
vertical-align: baseline;
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
html, body, div, span, applet, object, iframe,
|
62
|
-
p, blockquote,
|
63
|
-
a, abbr, acronym, address, big, cite,
|
64
|
-
del, dfn, em, img, ins, q, s,
|
65
|
-
small, strike, strong, sub, sup, var,
|
66
|
-
b, u, i, center,
|
67
|
-
dl, dt, dd, ol, ul, li,
|
68
|
-
fieldset, form, label, legend,
|
69
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
70
|
-
article, aside, canvas, details, embed,
|
71
|
-
figure, figcaption, footer, header, hgroup,
|
72
|
-
menu, nav, output, ruby, section, summary,
|
73
|
-
time, mark, audio, video {
|
74
|
-
font-family: $bodyfont;
|
75
|
-
}
|
76
|
-
|
77
|
-
code, pre, tt, kbd, samp {
|
78
|
-
font-family: $monospacefont;
|
79
|
-
font-variant-ligatures: none;
|
80
|
-
}
|
81
|
-
|
82
|
-
code *, pre *, tt *, kbd *, samp * {
|
83
|
-
font-family: $monospacefont !important;
|
84
|
-
font-variant-ligatures: none;
|
85
|
-
}
|
86
|
-
|
87
|
-
h1, h2, h3, h4, h5, h6, .h2Annex {
|
88
|
-
font-family: $headerfont;
|
89
|
-
}
|
90
|
-
|
91
|
-
dl {
|
92
|
-
display: grid;
|
93
|
-
grid-template-columns: max-content auto;
|
94
|
-
}
|
95
|
-
|
96
|
-
dt {
|
97
|
-
grid-column-start: 1;
|
98
|
-
}
|
10
|
+
@import 'base_style/all';
|
99
11
|
|
100
|
-
dd {
|
101
|
-
grid-column-start: 2;
|
102
|
-
}
|
103
|
-
|
104
|
-
dd p, dt p {
|
105
|
-
margin-top: 0px;
|
106
|
-
}
|
107
|
-
|
108
|
-
/* HTML5 display-role reset for older browsers */
|
109
|
-
article, aside, details, figcaption, figure,
|
110
|
-
footer, header, hgroup, menu, nav, section {
|
111
|
-
display: block;
|
112
|
-
}
|
113
12
|
body {
|
114
|
-
|
13
|
+
@include bodyStyle1(15px, 1.4em, #1d1d1d, #ffffff, 300);
|
14
|
+
// @include sidebarNavContainer(323px);
|
115
15
|
}
|
116
16
|
|
117
|
-
|
118
|
-
quotes: none;
|
119
|
-
}
|
120
|
-
blockquote:before, blockquote:after,
|
121
|
-
q:before, q:after {
|
122
|
-
content: '';
|
123
|
-
content: none;
|
124
|
-
}
|
125
|
-
table {
|
126
|
-
border-collapse: collapse;
|
127
|
-
border-spacing: 0;
|
128
|
-
}
|
17
|
+
main {margin: 0 3em 0 6em;}
|
129
18
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
body {
|
136
|
-
margin: 0;
|
137
|
-
margin-left: auto;
|
138
|
-
margin-right: auto;
|
139
|
-
max-width: 100%;
|
140
|
-
color: #1d1d1d;
|
141
|
-
font-weight: 300;
|
142
|
-
font-size: 15px;
|
143
|
-
line-height: 1.4em;
|
144
|
-
background-color: #ffffff;
|
19
|
+
#toc {
|
20
|
+
@include toc(#485094, #1661AD, #485094);
|
21
|
+
@include sidebarToc();
|
22
|
+
.toc-active a {
|
23
|
+
color: white;
|
145
24
|
}
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
#toc{
|
150
|
-
font-family: $bodyfont;
|
151
|
-
font-weight: 400;
|
25
|
+
li a {
|
26
|
+
text-transform: uppercase;
|
152
27
|
}
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
@media screen and (min-width: 768px) {
|
160
|
-
nav {
|
161
|
-
position: fixed;
|
162
|
-
top: 0;
|
163
|
-
bottom: 0;
|
164
|
-
left: 0;
|
165
|
-
width: 323px;
|
166
|
-
font-size: 0.9em;
|
167
|
-
overflow: auto;
|
168
|
-
padding: 0 0 0 45px;
|
169
|
-
margin-right: 30px;
|
170
|
-
background-color:#f7f7f7;
|
171
|
-
}
|
172
|
-
|
173
|
-
#toggle {
|
174
|
-
position: fixed;
|
175
|
-
height: 100%;
|
176
|
-
width: 30px;
|
177
|
-
background-color:#1661AD;
|
178
|
-
color: white!important;
|
179
|
-
cursor: pointer;
|
180
|
-
z-index: 100;
|
181
|
-
}
|
182
|
-
|
183
|
-
#toggle span {
|
184
|
-
text-align: center;
|
185
|
-
width: 100%;
|
186
|
-
position: absolute;
|
187
|
-
top: 50%;
|
188
|
-
transform: translate(0, -50%);
|
189
|
-
|
190
|
-
}
|
191
|
-
|
192
|
-
.container {
|
193
|
-
padding-left: 360px;
|
194
|
-
}
|
195
|
-
|
196
|
-
.rule.toc {
|
197
|
-
display: none;
|
198
|
-
}
|
199
|
-
|
200
|
-
h1.toc-contents {
|
201
|
-
margin-top: 1em;
|
202
|
-
}
|
203
|
-
|
204
|
-
ul#toc-list {
|
205
|
-
padding:0;
|
206
|
-
margin:0;
|
207
|
-
}
|
208
|
-
}
|
209
|
-
|
210
|
-
@media screen and (max-width: 768px) {
|
211
|
-
#toc {
|
212
|
-
padding: 0 1.5em 0 1.5em;
|
213
|
-
overflow: visible;
|
28
|
+
ul {
|
29
|
+
a:hover {
|
30
|
+
box-shadow: none;
|
31
|
+
color: white;
|
214
32
|
}
|
215
|
-
}
|
216
|
-
|
217
|
-
div.figure > img {
|
218
|
-
margin-left: auto;
|
219
|
-
margin-right: auto;
|
220
|
-
display: block;
|
221
|
-
max-width: 100%;
|
222
|
-
height: auto;
|
223
33
|
}
|
224
|
-
|
225
|
-
#toc ul {
|
226
|
-
margin: 0;
|
227
|
-
padding: 0;
|
228
|
-
list-style: none;
|
229
34
|
}
|
230
35
|
|
231
|
-
|
232
|
-
|
36
|
+
nav {
|
37
|
+
@include sidebarNav(#f7f7f7, 323px, 45px);
|
233
38
|
}
|
234
39
|
|
235
|
-
#
|
236
|
-
|
237
|
-
text-decoration: none;
|
238
|
-
display: block;
|
239
|
-
}
|
240
|
-
|
241
|
-
#toc a:hover {
|
242
|
-
box-shadow: none;
|
243
|
-
color: white;
|
40
|
+
#toggle {
|
41
|
+
@include sidebarNavToggle(white, #1661AD)
|
244
42
|
}
|
245
43
|
|
246
|
-
#
|
247
|
-
|
44
|
+
#myBtn {
|
45
|
+
@include toTopBtn(white, #1f8ca0);
|
46
|
+
text-transform: uppercase;
|
47
|
+
a.anchorjs-link {
|
48
|
+
@include anchorLink(#485094)
|
49
|
+
}
|
248
50
|
}
|
249
51
|
|
250
|
-
|
251
|
-
|
252
|
-
|
52
|
+
/*
|
53
|
+
2. Responsive navigation layout
|
54
|
+
*/
|
253
55
|
|
254
|
-
|
255
|
-
|
256
|
-
|
56
|
+
@media screen and (min-width: 768px) {
|
57
|
+
.container {
|
58
|
+
padding-left: 360px;
|
59
|
+
}
|
257
60
|
|
258
|
-
|
259
|
-
|
260
|
-
|
61
|
+
.rule.toc {
|
62
|
+
display: none;
|
63
|
+
}
|
261
64
|
|
262
|
-
|
65
|
+
h1.toc-contents {
|
66
|
+
margin-top: 1em;
|
67
|
+
}
|
263
68
|
|
264
|
-
#toc
|
265
|
-
|
266
|
-
|
267
|
-
|
69
|
+
ul#toc-list {
|
70
|
+
padding:0;
|
71
|
+
margin:0;
|
72
|
+
}
|
268
73
|
}
|
269
74
|
|
270
|
-
|
271
|
-
|
75
|
+
div.figure {
|
76
|
+
@include figureBlock();
|
272
77
|
}
|
273
78
|
|
274
79
|
/*
|
@@ -276,66 +81,25 @@ height: auto;
|
|
276
81
|
*/
|
277
82
|
|
278
83
|
.document-type-band {
|
279
|
-
|
280
|
-
top:180px;
|
281
|
-
height: 100%;
|
282
|
-
position: fixed;
|
283
|
-
display: block;
|
284
|
-
z-index: 99;
|
285
|
-
/*box-shadow: -5px 0px 10px #1d1d1d*/
|
286
|
-
|
84
|
+
@include docBand(2, 100%, 180px);
|
287
85
|
}
|
288
86
|
|
289
87
|
.document-stage-band {
|
290
|
-
|
291
|
-
top:0;
|
292
|
-
height: 100%;
|
293
|
-
position: fixed;
|
294
|
-
display: block;
|
295
|
-
z-index: 98;
|
296
|
-
box-shadow: -5px 0px 10px #1d1d1d
|
297
|
-
}
|
298
|
-
|
299
|
-
.document-type {
|
300
|
-
position: relative;
|
301
|
-
width: 25px;
|
302
|
-
}
|
303
|
-
|
304
|
-
.document-stage {
|
305
|
-
position: relative;
|
306
|
-
width: 25px;
|
88
|
+
@include docBand(1, 150);
|
307
89
|
}
|
308
90
|
|
309
|
-
p.document-type,
|
310
|
-
|
311
|
-
|
312
|
-
font-size: 0.9em;
|
313
|
-
font-weight: 400;
|
314
|
-
letter-spacing: 0.05em;
|
315
|
-
margin:0;
|
316
|
-
margin-left: 6px;
|
317
|
-
writing-mode:tb-rl;
|
318
|
-
-webkit-transform:rotate(180deg);
|
319
|
-
-moz-transform:rotate(180deg);
|
320
|
-
-o-transform: rotate(180deg);
|
321
|
-
white-space:nowrap;
|
322
|
-
display:block;
|
323
|
-
bottom:0;
|
324
|
-
}
|
325
|
-
|
326
|
-
p.document-type {
|
327
|
-
font-weight: 400;
|
328
|
-
height: 150;
|
91
|
+
p.document-type,
|
92
|
+
p.document-stage {
|
93
|
+
@include docBandTitle(150);
|
329
94
|
}
|
330
95
|
|
331
96
|
#governance-band p.document-type {
|
332
|
-
|
333
|
-
height: 230px!important;
|
97
|
+
height: 230px!important;
|
334
98
|
}
|
335
99
|
|
336
100
|
p.document-stage {
|
337
|
-
|
338
|
-
|
101
|
+
font-weight: 300;
|
102
|
+
height:160px;
|
339
103
|
}
|
340
104
|
|
341
105
|
#standard-band p{
|
@@ -346,7 +110,6 @@ p.document-stage {
|
|
346
110
|
height: 150px;
|
347
111
|
}
|
348
112
|
|
349
|
-
|
350
113
|
#standard-band, #published-band {
|
351
114
|
background-color: #9ABD48;
|
352
115
|
}
|
@@ -372,12 +135,8 @@ p.document-stage {
|
|
372
135
|
}
|
373
136
|
|
374
137
|
.coverpage-maturity {
|
375
|
-
|
376
|
-
|
377
|
-
font-size: 1em;
|
378
|
-
margin: 0 0 2em 0;
|
379
|
-
text-transform: uppercase;
|
380
|
-
}
|
138
|
+
@include coverpageStageBlock();
|
139
|
+
}
|
381
140
|
|
382
141
|
#working-draft, #proposal {
|
383
142
|
border-bottom: solid 3px #F7803C;
|
@@ -427,137 +186,115 @@ p.document-stage {
|
|
427
186
|
3.1 Titles
|
428
187
|
*/
|
429
188
|
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
189
|
+
h1,h2,h3,h4,h5,h6 {
|
190
|
+
font-family: $headerfont;
|
191
|
+
color: #1661AD;
|
192
|
+
font-weight: 300;
|
193
|
+
margin-top: 1.6em;
|
194
|
+
margin-bottom: 0.3em;
|
195
|
+
}
|
437
196
|
|
438
|
-
|
439
|
-
|
440
|
-
|
197
|
+
h1 {
|
198
|
+
font-size: 1.6em;
|
199
|
+
text-transform: uppercase;
|
200
|
+
margin-top: 2em;
|
201
|
+
}
|
202
|
+
|
203
|
+
h1#content {
|
441
204
|
margin-top: 2em;
|
442
|
-
|
205
|
+
}
|
443
206
|
|
444
|
-
|
445
|
-
|
446
|
-
|
207
|
+
h2 {
|
208
|
+
margin-top: 1.3em;
|
209
|
+
font-size: 1.3em;
|
210
|
+
font-weight: 400;
|
211
|
+
}
|
447
212
|
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
213
|
+
h3 {
|
214
|
+
margin-top: 1.1em;
|
215
|
+
font-size: 1.1em;
|
216
|
+
font-weight: 100;
|
217
|
+
}
|
453
218
|
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
}
|
219
|
+
.TermNum, .Terms, .AltTerms {
|
220
|
+
color: #1661AD;
|
221
|
+
font-weight: 100;
|
222
|
+
}
|
459
223
|
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
}
|
224
|
+
h2.TermNum {
|
225
|
+
margin-bottom: 0;
|
226
|
+
}
|
464
227
|
|
465
|
-
|
466
|
-
|
467
|
-
|
228
|
+
p.Terms {
|
229
|
+
font-size: 1.1em;
|
230
|
+
line-height: 1.5em;
|
231
|
+
margin: 0;
|
232
|
+
}
|
468
233
|
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
234
|
+
p.AltTerms {
|
235
|
+
/*
|
236
|
+
font-style: italic;
|
237
|
+
*/
|
238
|
+
font-size: 1.1em;
|
239
|
+
margin: 0;
|
240
|
+
}
|
474
241
|
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
}
|
242
|
+
.contact-info a:hover {
|
243
|
+
color: #485094;
|
244
|
+
text-decoration: underline;
|
245
|
+
background: none;
|
246
|
+
box-shadow: 0 0 0 0;
|
247
|
+
}
|
482
248
|
|
483
249
|
/*
|
484
|
-
|
250
|
+
3.2 Links
|
485
251
|
*/
|
486
|
-
|
487
|
-
a, a:visited{
|
488
|
-
text-decoration: none;
|
489
|
-
color: #485094;
|
490
|
-
}
|
491
|
-
|
492
|
-
a:hover {
|
493
|
-
color: white;
|
494
|
-
background: #1661AD;
|
495
|
-
box-shadow: 3px 0 0 #1661AD, -3px 0 0 #1661AD;
|
496
|
-
/* padding: 2px 0 2px 0; */
|
497
|
-
}
|
498
|
-
|
499
|
-
::selection {
|
500
|
-
background: #1661AD; /* WebKit/Blink Browsers */
|
501
|
-
color: white;
|
502
|
-
}
|
503
|
-
::-moz-selection {
|
504
|
-
background: #1661AD; /* Gecko Browsers */
|
505
|
-
color: white;
|
506
|
-
}
|
507
|
-
|
508
|
-
.contact-info a:hover {
|
509
|
-
color: #485094;
|
510
|
-
text-decoration: underline;
|
511
|
-
background: none;
|
512
|
-
box-shadow: 0 0 0 0;
|
513
|
-
}
|
514
|
-
|
515
|
-
|
252
|
+
@include elementStyles(#485094, #1661AD, white);
|
516
253
|
|
517
254
|
/*
|
518
255
|
3.3 Lists
|
519
256
|
*/
|
520
257
|
|
521
|
-
|
258
|
+
ul, ol {margin-left: 1.2em;}
|
522
259
|
|
523
|
-
|
524
|
-
|
525
|
-
|
260
|
+
ul li {
|
261
|
+
list-style: none;
|
262
|
+
}
|
526
263
|
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
264
|
+
ul > li:before {
|
265
|
+
content: "\2014";
|
266
|
+
display: inline-block; width: 1em;
|
267
|
+
margin-left: -1.2em;
|
268
|
+
}
|
532
269
|
|
533
|
-
|
534
|
-
|
535
|
-
|
270
|
+
ul > li p:first-child {
|
271
|
+
display: inline;
|
272
|
+
}
|
536
273
|
|
537
274
|
ul > li:first-child {
|
538
275
|
margin-top: 1em;
|
539
276
|
}
|
540
277
|
|
541
|
-
|
278
|
+
#toc-list ul {
|
279
|
+
margin-bottom: 0.25em;
|
280
|
+
}
|
542
281
|
|
543
|
-
|
282
|
+
#toc-list li {
|
283
|
+
list-style-type: none;
|
284
|
+
}
|
544
285
|
|
545
|
-
|
286
|
+
#toc li:before {
|
546
287
|
content: " ";
|
547
288
|
display: none;
|
548
289
|
}
|
549
290
|
|
550
|
-
|
551
291
|
/*
|
552
292
|
3.4 Rules
|
553
293
|
*/
|
554
294
|
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
background-color: #0e1a85;
|
559
|
-
margin: 2em 0;
|
560
|
-
}
|
295
|
+
.rule {
|
296
|
+
@include rule(1px, #0e1a85)
|
297
|
+
}
|
561
298
|
|
562
299
|
/*
|
563
300
|
3.5 Bibliograhy
|
@@ -573,23 +310,18 @@ p.Biblio, p.NormRef {
|
|
573
310
|
*/
|
574
311
|
|
575
312
|
.figure, .Sourcecode, .pseudocode {
|
576
|
-
|
577
|
-
font-size: 0.8em;
|
578
|
-
line-height: 1.6em;
|
579
|
-
padding: 1.5em;
|
580
|
-
margin: 2em 0 1em 0;
|
581
|
-
overflow: auto;
|
313
|
+
@include pseudocodeBlock(#f7f7f7);
|
582
314
|
}
|
583
315
|
|
584
316
|
.Sourcecode {
|
585
|
-
|
586
|
-
|
587
|
-
}
|
317
|
+
@include monospaceBlockStyle()
|
318
|
+
}
|
588
319
|
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
320
|
+
@include admonitionBlock();
|
321
|
+
@include recommendationBlock();
|
322
|
+
|
323
|
+
.FigureTitle, .SourceTitle {
|
324
|
+
@include blockTitle()
|
593
325
|
}
|
594
326
|
|
595
327
|
/*
|
@@ -618,27 +350,21 @@ p.Biblio, p.NormRef {
|
|
618
350
|
}
|
619
351
|
}
|
620
352
|
|
621
|
-
|
622
353
|
/*
|
623
354
|
3.8 Examples
|
624
355
|
*/
|
625
356
|
|
626
357
|
.example {
|
627
|
-
|
628
|
-
padding: 1.2em;
|
629
|
-
margin: 2em 0 1em 0;
|
630
|
-
padding-left: 2em;
|
631
|
-
}
|
358
|
+
@include exampleBlock(#e1eef1, #424242, 1.2em);
|
632
359
|
|
633
|
-
.example
|
634
|
-
|
635
|
-
|
636
|
-
margin-top:0;
|
637
|
-
margin-left:-1.5em;
|
638
|
-
}
|
360
|
+
.example-title {
|
361
|
+
margin-top: 0;
|
362
|
+
}
|
639
363
|
|
640
|
-
.
|
641
|
-
|
364
|
+
.Sourcecode,
|
365
|
+
.pseudocode {
|
366
|
+
background: none;
|
367
|
+
}
|
642
368
|
}
|
643
369
|
|
644
370
|
/*
|
@@ -646,26 +372,7 @@ p.Biblio, p.NormRef {
|
|
646
372
|
*/
|
647
373
|
|
648
374
|
table {
|
649
|
-
|
650
|
-
width: 100%;
|
651
|
-
font-weight: 300;
|
652
|
-
margin: 1em 0 2em 0;
|
653
|
-
margin-left: auto;
|
654
|
-
margin-right: auto;
|
655
|
-
padding-right: 2em;
|
656
|
-
}
|
657
|
-
|
658
|
-
table, th, td {
|
659
|
-
border: 1px solid black;
|
660
|
-
font-size: 0.95em;
|
661
|
-
}
|
662
|
-
|
663
|
-
td, th {
|
664
|
-
padding: 1em;
|
665
|
-
}
|
666
|
-
|
667
|
-
td.header {
|
668
|
-
font-weight: 400;
|
375
|
+
@include table(1px solid black);
|
669
376
|
}
|
670
377
|
|
671
378
|
p.TableTitle {
|
@@ -687,41 +394,29 @@ a.footnote-number {
|
|
687
394
|
font-size: 0.9em;
|
688
395
|
}
|
689
396
|
|
690
|
-
|
691
397
|
/*
|
692
398
|
3.11 Blockquotes
|
693
399
|
*/
|
694
400
|
|
695
401
|
.Quote {
|
696
|
-
|
697
|
-
font-style: italic;
|
698
|
-
width: 80%;
|
699
|
-
padding: 1.5em;
|
700
|
-
margin-top: 2em;
|
701
|
-
margin-left: auto;
|
702
|
-
margin-right: auto;
|
402
|
+
@include blockquoteBlock(#f7f7f7);
|
703
403
|
}
|
704
404
|
|
705
|
-
|
706
405
|
/*
|
707
406
|
3.12 Formulas
|
708
407
|
*/
|
709
408
|
|
710
409
|
.formula {
|
711
|
-
|
712
|
-
padding: 1.5em;
|
713
|
-
margin-top: 2em;
|
714
|
-
text-align: center;
|
410
|
+
@include formulaBlock(#f7f7f7)
|
715
411
|
}
|
716
|
-
|
717
412
|
/*
|
718
413
|
3.13 Contact Info
|
719
414
|
*/
|
720
415
|
|
721
416
|
.contact-info {
|
722
|
-
|
723
|
-
|
724
|
-
|
417
|
+
padding: 2em;
|
418
|
+
margin-top: 5em;
|
419
|
+
width: 250px;
|
725
420
|
|
726
421
|
text-align: left;
|
727
422
|
border: #1661AD solid 2px;
|
@@ -736,9 +431,8 @@ a.footnote-number {
|
|
736
431
|
}
|
737
432
|
|
738
433
|
.contact-info p, .contact-info a {
|
739
|
-
|
740
|
-
|
741
|
-
font-weight: 400;
|
434
|
+
@include monospaceBlockStyle();
|
435
|
+
font-weight: 400;
|
742
436
|
}
|
743
437
|
|
744
438
|
.contact-info .name {
|
@@ -920,36 +614,6 @@ h2 p {
|
|
920
614
|
To top button
|
921
615
|
*/
|
922
616
|
|
923
|
-
#myBtn {
|
924
|
-
font-family: $monospacefont;
|
925
|
-
font-variant-ligatures: none;
|
926
|
-
display: none;
|
927
|
-
position: fixed;
|
928
|
-
bottom: 20px;
|
929
|
-
right: 30px;
|
930
|
-
z-index: 99;
|
931
|
-
font-size: 12px;
|
932
|
-
border: none;
|
933
|
-
outline: none;
|
934
|
-
background-color: #1f8ca0;
|
935
|
-
opacity: 0.15;
|
936
|
-
color: white;
|
937
|
-
cursor: pointer;
|
938
|
-
padding: 10px 15px 10px 15px;
|
939
|
-
border-radius: 4px;
|
940
|
-
text-transform: uppercase;
|
941
|
-
}
|
942
|
-
|
943
|
-
#myBtn:hover {
|
944
|
-
opacity: 1;
|
945
|
-
}
|
946
|
-
|
947
|
-
a.anchorjs-link:hover {
|
948
|
-
background: none;
|
949
|
-
color: #485094;
|
950
|
-
box-shadow: none;
|
951
|
-
}
|
952
|
-
|
953
617
|
@page {
|
954
618
|
margin: 2cm 1cm;
|
955
619
|
}
|
@@ -992,12 +656,6 @@ To top button
|
|
992
656
|
margin-top: -5px;
|
993
657
|
}
|
994
658
|
|
995
|
-
|
996
|
-
#toggle, .document-stage-band,
|
997
|
-
.document-type-band, button#myBtn {
|
998
|
-
display: none;
|
999
|
-
}
|
1000
|
-
|
1001
659
|
button#myBtn {
|
1002
660
|
background-color: white;
|
1003
661
|
}
|
@@ -1006,28 +664,6 @@ To top button
|
|
1006
664
|
padding-left: 0;
|
1007
665
|
}
|
1008
666
|
|
1009
|
-
nav {
|
1010
|
-
position: relative;
|
1011
|
-
width: auto;
|
1012
|
-
font-size: 0.9em;
|
1013
|
-
overflow: auto;
|
1014
|
-
padding: 0;
|
1015
|
-
margin-right: 0;
|
1016
|
-
background-color: white;
|
1017
|
-
}
|
1018
|
-
|
1019
|
-
#toc .toc-active a {
|
1020
|
-
color: #4D7EA5;
|
1021
|
-
}
|
1022
|
-
|
1023
|
-
#toc .toc-active, #toc li:hover {
|
1024
|
-
background: white;
|
1025
|
-
box-shadow: none !important; }
|
1026
|
-
|
1027
|
-
#toc li:hover a {
|
1028
|
-
color: black; }
|
1029
|
-
|
1030
|
-
|
1031
667
|
h1.content {
|
1032
668
|
margin-top: 2em;
|
1033
669
|
line-height: 2.5em;
|
@@ -1066,12 +702,6 @@ To top button
|
|
1066
702
|
padding: 0 5px 0 5px;
|
1067
703
|
}
|
1068
704
|
|
1069
|
-
|
1070
|
-
|
1071
|
-
nav {
|
1072
|
-
line-height: 1;
|
1073
|
-
}
|
1074
|
-
|
1075
705
|
.wrapper-top-bottom {
|
1076
706
|
display: none;
|
1077
707
|
}
|
data/lib/metanorma/acme.rb
CHANGED
@@ -38,17 +38,15 @@ module Metanorma
|
|
38
38
|
|
39
39
|
def initialize(*args)
|
40
40
|
super
|
41
|
-
|
41
|
+
# Try to set config values from yaml file in current directory
|
42
|
+
set_default_values_from_yaml_file(YAML_CONFIG_FILE) if File.file?(YAML_CONFIG_FILE)
|
42
43
|
self.organization_name_short ||= ORGANIZATION_NAME_SHORT
|
43
44
|
self.organization_name_long ||= ORGANIZATION_NAME_LONG
|
44
45
|
self.document_namespace ||= DOCUMENT_NAMESPACE
|
45
46
|
end
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
return unless File.file?(YAML_CONFIG_FILE)
|
50
|
-
|
51
|
-
default_config_options = YAML.load(File.read(YAML_CONFIG_FILE))
|
48
|
+
def set_default_values_from_yaml_file(config_file)
|
49
|
+
default_config_options = YAML.load(File.read(config_file))
|
52
50
|
CONFIG_ATTRS.each do |attr_name|
|
53
51
|
instance_variable_set("@#{attr_name}", default_config_options[attr_name.to_s])
|
54
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-acme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|