metanorma-un 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb4cec32f898b0e8fb67d94c1757eaf4336fdc76553559d8d3bd605f8ae35765
4
- data.tar.gz: 1070671f7c2e81f7fc61462390129b01dfd31cf64fb17bd69974e94c72fbb9b2
3
+ metadata.gz: 19c3f9c7ce6ea98f5bf53a78c196245f689cf3dda1aaced7caeb708302198f3d
4
+ data.tar.gz: 74545edd7c80ae129866df3a06e9944e230bd6e72d78517a213d774761cd1e01
5
5
  SHA512:
6
- metadata.gz: 1d433580329fcb1c9982107b7fa02f1301ffd4477dbda664c07f93ee0e108b95fadec720b755064f5d08fff14c8421c3f8686e7f4a66d476e9e86b80dd178b8c
7
- data.tar.gz: aec0d9d71e583d8a92bf32074418bd7240812efb6f220177638847eb8eb083412f66946db5b05d4b31ebaa25604c08dcaf7dcb57dc142c215e25b2161eb5f6c2
6
+ metadata.gz: 6684a220b9cc0820a8fd6a55fe747cfa4975109bb27168115c39822b443bfee112778c81d9261ed9f79e1fcfaae021ee1b667a31a0b34428f4a698d66f3cd536
7
+ data.tar.gz: 948b8e07d434eace1e34762b52e5b735861f8107f2c4df259e551077b362054cb5fce4cc80fe7b8fcd3ea2b70c13cb168218c6349a224053fe4f354230803098
@@ -1,12 +1,11 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
3
  name: macos
4
4
 
5
5
  on:
6
6
  push:
7
7
  branches: [ master ]
8
8
  pull_request:
9
- branches: [ '**' ]
10
9
 
11
10
  jobs:
12
11
  test-macos:
@@ -1,12 +1,11 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
3
  name: ubuntu
4
4
 
5
5
  on:
6
6
  push:
7
7
  branches: [ master ]
8
8
  pull_request:
9
- branches: [ '**' ]
10
9
 
11
10
  jobs:
12
11
  test-linux:
@@ -25,7 +24,7 @@ jobs:
25
24
  architecture: 'x64'
26
25
  - name: Update gems
27
26
  run: |
28
- gem install bundler
27
+ gem install bundler
29
28
  bundle install --jobs 4 --retry 3
30
29
  - name: Use Node
31
30
  uses: actions/setup-node@v1
@@ -37,3 +36,15 @@ jobs:
37
36
  - name: Run specs
38
37
  run: |
39
38
  bundle exec rake
39
+ - name: Trigger dependent repositories
40
+ if: github.ref == 'refs/heads/master'
41
+ env:
42
+ GH_USERNAME: ${{ secrets.PAT_USERNAME }}
43
+ GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
44
+ run: |
45
+ curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
46
+ [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
47
+ for repo in $DEPENDENT_REPOS
48
+ do
49
+ sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
50
+ done
@@ -1,12 +1,11 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
3
  name: windows
4
4
 
5
5
  on:
6
6
  push:
7
7
  branches: [ master ]
8
8
  pull_request:
9
- branches: [ '**' ]
10
9
 
11
10
  jobs:
12
11
  test-windows:
@@ -26,7 +25,7 @@ jobs:
26
25
  - name: Update gems
27
26
  shell: pwsh
28
27
  run: |
29
- gem install bundler
28
+ gem install bundler
30
29
  bundle config --local path vendor/bundle
31
30
  bundle update
32
31
  bundle install --jobs 4 --retry 3
data/README.adoc CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  (Formerly known as metanorma-unece)
4
4
 
5
- https://github.com/metanorma/metanorma-un[metanorma-un] image:https://img.shields.io/gem/v/metanorma-un.svg["Gem Version", link="https://rubygems.org/gems/metanorma-un"]::
5
+ image:https://img.shields.io/gem/v/metanorma-un.svg["Gem Version", link="https://rubygems.org/gems/metanorma-un"]::
6
6
  image:https://github.com/metanorma/metanorma-un/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/metanorma/metanorma-un/actions?workflow=macos"]
7
7
  image:https://github.com/metanorma/metanorma-un/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/metanorma/metanorma-un/actions?workflow=windows"]
8
8
  image:https://github.com/metanorma/metanorma-un/workflows/ubuntu/badge.svg["Build Status (Ubuntu)", link="https://github.com/metanorma/metanorma-un/actions?workflow=ubuntu"]
9
- image:https://codeclimate.com/github/metanorma/metanorma-un/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-un"]
9
+ image:https://codeclimate.com/github/metanorma/metanorma-unece/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-unece"]
10
10
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-un.svg["Pull Requests", link="https://github.com/metanorma/metanorma-un/pulls"]
11
11
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-un/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-un/releases"]
12
12
 
@@ -703,21 +703,11 @@
703
703
  </define>
704
704
  <define name="TypedTitleString">
705
705
  <optional>
706
- <attribute name="type">
707
- <ref name="TitleType"/>
708
- </attribute>
706
+ <attribute name="type"/>
709
707
  </optional>
710
708
  <ref name="FormattedString"/>
711
709
  </define>
712
- <define name="TitleType">
713
- <choice>
714
- <value>alternative</value>
715
- <value>original</value>
716
- <value>unofficial</value>
717
- <value>subtitle</value>
718
- <value>main</value>
719
- </choice>
720
- </define>
710
+ <!-- TitleType = ( "alternative" | "original" | "unofficial" | "subtitle" | "main" ) -->
721
711
  <define name="TypedUri">
722
712
  <optional>
723
713
  <attribute name="type"/>
@@ -30,7 +30,7 @@
30
30
 
31
31
  {% if tc == "United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)" %}
32
32
  <clause>
33
- <title>#{tc}<br/>Simple, Transparent and Effective Processes for Global Commerce</title>
33
+ <title>{{tc}}<br/>Simple, Transparent and Effective Processes for Global Commerce</title>
34
34
  <p>UN/CEFACT's mission is to improve the ability of business, trade and administrative organizations, from developed, developing and transitional economies, to exchange products and relevant services effectively. Its principal focus is on facilitating national and international transactions, through the simplification and harmonization of processes, procedures and information flows, and so contribute to the growth of global commerce.</p>
35
35
  <p>Participation in UN/CEFACT is open to experts from United Nations Member States, Intergovernmental Organizations and Non-Governmental Organizations recognised by the United Nations Economic and Social Council (ECOSOC). Through this participation of government and business representatives from around the world, UN/CEFACT has developed a range of trade facilitation and e-business standards, recommendations and tools that are approved within a broad intergovernmental process and implemented globally.</p>
36
36
  <p align="center"><b>www.unece.org/cefact</b></p>
@@ -52,7 +52,7 @@ module Asciidoctor
52
52
  def title(node, xml)
53
53
  ["en"].each do |lang|
54
54
  xml.title **{ type: "main", language: lang, format: "text/plain" } do |t|
55
- t << Asciidoctor::Standoc::Utils::asciidoc_sub(node.attr("title"))
55
+ t << Asciidoctor::Standoc::Utils::asciidoc_sub(node.attr("title") || node.title)
56
56
  end
57
57
  node.attr("subtitle") and
58
58
  xml.title **{ type: "subtitle", language: lang, format: "text/plain" } do |t|
@@ -149,7 +149,7 @@ module Asciidoctor
149
149
  word_converter(node).convert filename unless node.attr("nodoc")
150
150
  pdf_converter(node).convert filename unless node.attr("nodoc")
151
151
  end
152
- @log.write(@filename + ".err") unless @novalid
152
+ @log.write(@localdir + @filename + ".err") unless @novalid
153
153
  @files_to_delete.each { |f| FileUtils.rm f }
154
154
  ret
155
155
  end
@@ -101,9 +101,7 @@
101
101
  <ref name="structuredidentifier"/>
102
102
  </zeroOrMore>
103
103
  </define>
104
- <define name="TitleType">
105
- <text/>
106
- </define>
104
+ <!-- TitleType = text -->
107
105
  <define name="sections">
108
106
  <element name="sections">
109
107
  <oneOrMore>
@@ -16,12 +16,13 @@
16
16
  <div class="coverpage">
17
17
  <div class="wrapper-top">
18
18
 
19
+ <div class="coverpage-logo">
20
+ <span>UNECE {{ docyear }}</span>
21
+ </div>
22
+ <div class="coverpage-tc-name">
23
+ <span>{{ tc }}</span>
24
+ </div>
19
25
  <div class="coverpage-doc-identity">
20
- <div class="doc-number">
21
- <span class="docnumber">{{ formatted_docnumber }}</span>
22
- <span class="docyear">{{ draftinfo }}</span>
23
- </div>
24
-
25
26
  <div class="doc-number">
26
27
  <p>{{ session_number }} session</p>
27
28
  <p>{{ session_date }}</p>
@@ -46,18 +47,9 @@
46
47
  <!--<span class="title-second">{{ docsubtitle }}</span>-->
47
48
  </div>
48
49
  </div>
49
-
50
- <div class="coverpage-logo">
51
- <span>UNECE {{ docyear }}</span>
50
+ <div class="wrapper-top-bottom"></div>
52
51
  </div>
53
52
 
54
- <div class="coverpage-tc-name">
55
- <span>{{ tc }}</span>
56
- </div>
57
- </div>
58
-
59
- <div class="wrapper-top-bottom"></div>
60
-
61
53
  <div class="WordSection11">
62
54
  <div class="coverpage-stage-block" >
63
55
  <span class="coverpage-stage" id="{{ doctype | replace: ' ', '-' | downcase }}">UNECE {{ doctype }}</span>
@@ -36,8 +36,7 @@
36
36
  <span>{{ tc }}</span>
37
37
  </div>
38
38
  </div>
39
-
40
- <div class="wrapper-top-bottom"></div>
39
+ <div class="wrapper-top-bottom"></div>
41
40
 
42
41
  <div class="WordSection11">
43
42
  <div class="coverpage-stage-block" >
@@ -33,6 +33,30 @@ $un-text: #333;
33
33
  /* RT: I made this up */
34
34
  $un-link: #00ADEF;
35
35
 
36
+ $un-background: #9abd48;
37
+
38
+ $un-guide: #48a0e7;
39
+
40
+ $un-toc: #1661ad;
41
+
42
+ $un-governence: #750697;
43
+
44
+ $un-working-draft: #f7803c;
45
+
46
+ $un-comitee-draft: #fd06fd;
47
+
48
+ $un-draft-standard: #fdf906;
49
+
50
+ $un-obsolete: #7e0d13;
51
+
52
+ $un-note: #fff495;
53
+
54
+ $un-admonition-back: #ffcccc;
55
+
56
+ $un-admonition-color: #47430c;
57
+
58
+ $un-toc-active: #4d7ea5;
59
+
36
60
  body {
37
61
  @include bodyStyle1(15px, 1.4em, $un-text, #ffffff, 300);
38
62
  font-weight: 400;
@@ -51,7 +75,7 @@ p {
51
75
  */
52
76
 
53
77
  #toc {
54
- @include toc($un-text, #1661AD, $un-text);
78
+ @include toc($un-text, $un-toc, $un-text);
55
79
  @include sidebarToc();
56
80
 
57
81
  .toc-active a {
@@ -88,24 +112,24 @@ nav {
88
112
 
89
113
  @media screen and (min-width: 768px) {
90
114
  .container {
91
- padding-left: 360px;
115
+ padding-left: 360px;
92
116
  }
93
117
 
94
118
  .rule.toc {
95
- display: none;
119
+ display: none;
96
120
  }
97
121
 
98
122
  h1.toc-contents {
99
- margin-top: 1em;
123
+ margin-top: 1em;
100
124
  }
101
125
 
102
126
  ul#toc-list {
103
- padding:0;
104
- margin:0;
127
+ margin: 0;
128
+ padding: 0;
105
129
  }
106
130
  }
107
131
 
108
- div.figure {
132
+ .figure {
109
133
  @include figureBlock();
110
134
  }
111
135
 
@@ -120,10 +144,16 @@ div.figure {
120
144
  .document-stage-band {
121
145
  @include docBand(1, 150);
122
146
  }
123
- .document-stage-band > :first-child {
147
+
148
+ .document-stage-band> :first-child {
124
149
  font-weight: 300;
125
150
  }
126
151
 
152
+ div.document-stage-band,
153
+ div.document-type-band {
154
+ background-color: $un-background;
155
+ }
156
+
127
157
  p.document-type,
128
158
  p.document-stage {
129
159
  @include docBandTitle(150);
@@ -148,30 +178,30 @@ p.document-stage {
148
178
 
149
179
  #standard-band,
150
180
  #published-band {
151
- background-color: #9ABD48;
181
+ background-color: $un-background;
152
182
  }
153
183
 
154
184
  #standard,
155
185
  #published {
156
- border-bottom: solid 3px #9ABD48;
186
+ border-bottom: solid 3px $un-background;
157
187
  }
158
188
 
159
189
  #governance,
160
190
  #policy-and-procedures {
161
- border-bottom: solid 3px #750697;
191
+ border-bottom: solid 3px $un-governence;
162
192
  }
163
193
 
164
194
  #governance-band,
165
195
  #policy-and-procedures-band {
166
- background-color: #750697;
196
+ background-color: $un-governence;
167
197
  }
168
198
 
169
199
  #guide {
170
- border-bottom: solid 3px #48a0e7;
200
+ border-bottom: solid 3px $un-guide;
171
201
  }
172
202
 
173
203
  #guide-band {
174
- background-color: #48a0e7;
204
+ background-color: $un-guide;
175
205
  }
176
206
 
177
207
  .coverpage-maturity {
@@ -180,44 +210,44 @@ p.document-stage {
180
210
 
181
211
  #working-draft,
182
212
  #proposal {
183
- border-bottom: solid 3px #F7803C;
213
+ border-bottom: solid 3px $un-working-draft;
184
214
  }
185
215
 
186
216
  #working-draft-band,
187
217
  #proposal-band {
188
- background-color: #F7803C;
218
+ background-color: $un-working-draft;
189
219
  }
190
220
 
191
221
  #committee-draft {
192
- border-bottom: solid 3px #fd06fd;
222
+ border-bottom: solid 3px $un-comitee-draft;
193
223
  }
194
224
 
195
225
  #committee-draft-band {
196
- background-color: #fd06fd;
226
+ background-color: $un-comitee-draft;
197
227
  }
198
228
 
199
229
  #draft-standard {
200
- border-bottom: solid 3px #fdf906;
230
+ border-bottom: solid 3px $un-draft-standard;
201
231
  }
202
232
 
203
233
  #draft-standard-band {
204
- background-color: #fdf906;
234
+ background-color: $un-draft-standard;
205
235
  }
206
236
 
207
237
  #standard {
208
- border-bottom: solid 3px #9ABD48;
238
+ border-bottom: solid 3px $un-background;
209
239
  }
210
240
 
211
241
  #standard-band {
212
- background-color: #9ABD48;
242
+ background-color: $un-background;
213
243
  }
214
244
 
215
245
  #obsolete {
216
- border-bottom: solid 3px #7e0d13;
246
+ border-bottom: solid 3px $un-obsolete;
217
247
  }
218
248
 
219
249
  #obsolete-band {
220
- background-color: #7e0d13;
250
+ background-color: $un-obsolete;
221
251
  }
222
252
 
223
253
  /*
@@ -228,7 +258,13 @@ p.document-stage {
228
258
  3.1 Titles
229
259
  */
230
260
 
231
- h1, h2, h3, h4, h5, h6, .h2Annex {
261
+ h1,
262
+ h2,
263
+ h3,
264
+ h4,
265
+ h5,
266
+ h6,
267
+ .h2Annex {
232
268
  font-family: $headerfont;
233
269
  color: $un-blue;
234
270
  font-weight: 700;
@@ -237,7 +273,9 @@ h1, h2, h3, h4, h5, h6, .h2Annex {
237
273
  margin-bottom: 0.3em;
238
274
  }
239
275
 
240
- h1, h2, h3 {
276
+ h1,
277
+ h2,
278
+ h3 {
241
279
  margin-top: 18px;
242
280
  margin-bottom: 9px;
243
281
  }
@@ -259,7 +297,7 @@ h2 {
259
297
  h3 {
260
298
  font-size: 24px;
261
299
  margin-top: 26px;
262
- color: black;
300
+ color: $un-black;
263
301
  }
264
302
 
265
303
  h4 {
@@ -271,7 +309,7 @@ h4 {
271
309
 
272
310
  h5 {
273
311
  font-size: 16.25px;
274
- color: black;
312
+ color: $un-black;
275
313
  margin-bottom: 2px;
276
314
  }
277
315
 
@@ -304,28 +342,30 @@ h6 {
304
342
  font-weight: 100;
305
343
  }*/
306
344
 
307
- .TermNum, .Terms, .AltTerms {
308
- color: $un-blue;
309
- font-weight: 100;
310
- }
345
+ .TermNum,
346
+ .Terms,
347
+ .AltTerms {
348
+ color: $un-blue;
349
+ font-weight: 100;
350
+ }
311
351
 
312
- h2.TermNum {
313
- margin-bottom: 0;
314
- }
352
+ h2.TermNum {
353
+ margin-bottom: 0;
354
+ }
315
355
 
316
- p.Terms {
317
- font-size: 1.1em;
318
- line-height: 1.5em;
319
- margin: 0;
320
- }
356
+ p.Terms {
357
+ font-size: 1.1em;
358
+ line-height: 1.5em;
359
+ margin: 0;
360
+ }
321
361
 
322
- p.AltTerms {
323
- /*
362
+ p.AltTerms {
363
+ /*
324
364
  font-style: italic;
325
365
  */
326
- font-size: 1.1em;
327
- margin: 0;
328
- }
366
+ font-size: 1.1em;
367
+ margin: 0;
368
+ }
329
369
 
330
370
  /*
331
371
  3.2 Links
@@ -337,15 +377,16 @@ h6 {
337
377
  3.3 Lists
338
378
  */
339
379
 
340
- ul, ol {
380
+ ul,
381
+ ol {
341
382
  margin-left: 1.2em;
342
383
  }
343
384
 
344
- ul > li p:first-child {
385
+ ul>li p:first-child {
345
386
  display: inline;
346
387
  }
347
388
 
348
- ul > li:first-child {
389
+ ul>li:first-child {
349
390
  margin-top: 1em;
350
391
  }
351
392
 
@@ -362,7 +403,7 @@ ul > li:first-child {
362
403
  display: none;
363
404
  }
364
405
 
365
- main ul > li {
406
+ main ul>li {
366
407
  list-style-type: disc;
367
408
  list-style-position: outside;
368
409
  margin-bottom: 0.5em;
@@ -382,9 +423,10 @@ main ul > li {
382
423
  3.5 Bibliograhy
383
424
  */
384
425
 
385
- p.Biblio, p.NormRef {
386
- margin-top: 1em;
387
- margin-left: 2em;
426
+ p.Biblio,
427
+ p.NormRef {
428
+ margin-left: 2em;
429
+ margin-top: 1em;
388
430
  }
389
431
 
390
432
  /*
@@ -414,25 +456,25 @@ pre {
414
456
  */
415
457
 
416
458
  .Note {
417
- background-color: #fff495;
418
- color: #47430c;
419
- padding: 1.2em;
420
- margin: 1em 0 1em 0;
459
+ background-color: $un-note;
460
+ color: $un-admonition-color;
461
+ margin: 1em 0;
462
+ padding: 1.2em;
421
463
 
422
- p {
423
- margin: 0;
424
- }
464
+ p {
465
+ margin: 0;
466
+ }
425
467
  }
426
468
 
427
469
  .Admonition {
428
- background-color: #ffcccc;
429
- color: #47430c;
430
- padding: 1.2em;
431
- margin: 1em 0 1em 0;
470
+ background-color: $un-admonition-back;
471
+ color: $un-admonition-color;
472
+ margin: 1em 0;
473
+ padding: 1.2em;
432
474
 
433
- p {
434
- margin: 0;
435
- }
475
+ p {
476
+ margin: 0;
477
+ }
436
478
  }
437
479
 
438
480
 
@@ -458,7 +500,7 @@ pre {
458
500
  */
459
501
 
460
502
  table {
461
- @include table(1px solid black);
503
+ @include table(1px solid $un-black);
462
504
  }
463
505
 
464
506
  p.TableTitle {
@@ -472,12 +514,12 @@ p.TableTitle {
472
514
  */
473
515
 
474
516
  a.footnote-number {
475
- vertical-align: super;
476
- font-size: 0.8em;
517
+ font-size: 0.8em;
518
+ vertical-align: super;
477
519
  }
478
520
 
479
521
  .footnote {
480
- font-size: 0.9em;
522
+ font-size: 0.9em;
481
523
  }
482
524
 
483
525
 
@@ -503,7 +545,6 @@ a.footnote-number {
503
545
  */
504
546
 
505
547
  .contact-info {
506
- /* padding: 2em;*/
507
548
  margin-top: 5em;
508
549
  text-align: left;
509
550
  }
@@ -515,16 +556,11 @@ a.footnote-number {
515
556
 
516
557
  .contact-info p,
517
558
  .contact-info a {
518
- /* font-family: $monospacefont;
519
- font-variant-ligatures: none; */
520
559
  font-weight: 400;
521
560
  }
522
561
 
523
- /* http://www.un.org/styleguide/ labels */
562
+ // http://www.un.org/styleguide/ labels
524
563
  .contact-info #boilerplate-feedback-name {
525
- /* font-weight: 700;
526
- font-size: 1.2em;
527
- margin-bottom:0;*/
528
564
  padding-left: 1px;
529
565
  color: $un-label;
530
566
  font-size: 18.2px;
@@ -537,9 +573,9 @@ a.footnote-number {
537
573
  }
538
574
 
539
575
  .contact-info #boilerplate-feedback-address {
540
- font-size: 1em;
541
- line-height: 1.3em;
542
- margin-top:0;
576
+ font-size: 1em;
577
+ line-height: 1.3em;
578
+ margin-top: 0;
543
579
  }
544
580
 
545
581
  /*
@@ -547,7 +583,7 @@ a.footnote-number {
547
583
  */
548
584
 
549
585
  span.keyword {
550
- font-weight: 600;
586
+ font-weight: 600;
551
587
  }
552
588
 
553
589
  /*
@@ -555,8 +591,8 @@ span.keyword {
555
591
  */
556
592
 
557
593
  p {
558
- margin-top: 1em;
559
- margin-bottom: 1em;
594
+ margin-bottom: 1em;
595
+ margin-top: 1em;
560
596
  }
561
597
 
562
598
  h2 p {
@@ -610,6 +646,7 @@ h2 p {
610
646
 
611
647
  .WordSection11 {
612
648
  padding: 0 2em 0 3em;
649
+ text-align: center;
613
650
  }
614
651
 
615
652
  .info-section {
@@ -621,7 +658,8 @@ h2 p {
621
658
  }
622
659
 
623
660
 
624
- .zzSTDTitle1, .MsoCommentText {
661
+ .zzSTDTitle1,
662
+ .MsoCommentText {
625
663
  display: none;
626
664
  }
627
665
 
@@ -631,7 +669,8 @@ h2 p {
631
669
  padding-left: 1.5em;
632
670
  }
633
671
 
634
- .coverpage-logo span, .coverpage-tc-name span {
672
+ .coverpage-logo span,
673
+ .coverpage-tc-name span {
635
674
  font-family: $bodyfont;
636
675
  text-transform: none;
637
676
  font-weight: 300;
@@ -696,7 +735,7 @@ h2 p {
696
735
 
697
736
 
698
737
  .boilerplate-copyright p {
699
- text-align: center;
738
+ text-align: center;
700
739
  }
701
740
 
702
741
  #boilerplate-ECEhdr {
@@ -727,16 +766,25 @@ To top button
727
766
 
728
767
  @media print {
729
768
 
730
- .document-info, nav, .copyright {
731
- page-break-before: always;
769
+ .document-info,
770
+ nav,
771
+ .copyright {
772
+ page-break-before: always;
732
773
  }
733
774
 
734
- h1, h2, h3, h4 {
775
+ h1,
776
+ h2,
777
+ h3,
778
+ h4 {
735
779
  page-break-after: avoid;
736
780
  margin-top: 1.2em;
737
781
  }
738
782
 
739
- .note, .figure, pre, .pseudocode, table {
783
+ .note,
784
+ .figure,
785
+ pre,
786
+ .pseudocode,
787
+ table {
740
788
  page-break-inside: avoid;
741
789
  }
742
790
 
@@ -745,7 +793,7 @@ To top button
745
793
  }
746
794
 
747
795
  .coverpage {
748
- height: 23cm;
796
+ height: 23cm;
749
797
  }
750
798
 
751
799
  .wrapper-top {
@@ -759,69 +807,71 @@ To top button
759
807
  }
760
808
 
761
809
  .container {
762
- padding-left: 0;
810
+ padding-left: 0;
763
811
  }
764
812
 
765
813
 
766
814
  #toc .toc-active a {
767
- color: #4D7EA5;
815
+ color: $un-toc-active;
768
816
  }
769
817
 
770
- #toc .toc-active, #toc li:hover {
818
+ #toc .toc-active,
819
+ #toc li:hover {
771
820
  background: white;
772
- box-shadow: none !important; }
773
-
774
- #toc li:hover a {
775
- color: black; }
776
-
821
+ box-shadow: none !important;
822
+ }
777
823
 
778
- h1.content {
779
- margin-top: 2em;
780
- line-height: 2.5em;
781
- }
824
+ #toc li:hover a {
825
+ color: $un-black;
826
+ }
782
827
 
783
- h1 {
784
- font-size: 1.5em;
785
- line-height: 1.5;
786
- }
787
828
 
788
- h2 {
789
- font-size: 1.2em
790
- }
829
+ h1.content {
830
+ line-height: 2.5em;
831
+ margin-top: 2em;
832
+ }
791
833
 
792
- h3 {
793
- font-size: 1em;
794
- }
834
+ h1 {
835
+ font-size: 1.5em;
836
+ line-height: 1.5;
837
+ }
795
838
 
839
+ h2 {
840
+ font-size: 1.2em;
841
+ }
796
842
 
797
- .Note {
798
- background-color: #fff495;
799
- color: #47430c;
800
- padding: 5px;
801
- margin: 2em 0 1em 0; }
843
+ h3 {
844
+ font-size: 1em;
845
+ }
802
846
 
803
- .Note p {
804
- padding: 0 5px 0 5px;
805
- }
806
847
 
807
- .Admonition {
808
- background-color: #ffcccc;
809
- color: #47430c;
810
- padding: 5px;
811
- margin: 2em 0 1em 0; }
848
+ .Note {
849
+ background-color: $un-note;
850
+ color: $un-admonition-color;
851
+ margin: 2em 0 1em;
852
+ padding: 5px;
853
+ }
812
854
 
813
- .Admonition p {
814
- padding: 0 5px 0 5px;
815
- }
855
+ .Note p {
856
+ padding: 0 5px;
857
+ }
816
858
 
859
+ .Admonition {
860
+ background-color: $un-admonition-back;
861
+ color: $un-admonition-color;
862
+ margin: 2em 0 1em;
863
+ padding: 5px;
864
+ }
817
865
 
818
- nav {
819
- line-height: 1;
820
- }
866
+ .Admonition p {
867
+ padding: 0 5px;
868
+ }
821
869
 
822
- .wrapper-top-bottom {
823
- display: none;
824
- }
870
+ nav {
871
+ line-height: 1;
872
+ }
825
873
 
874
+ .wrapper-top-bottom {
875
+ display: none;
876
+ }
826
877
  }
827
-
@@ -8,8 +8,8 @@ module IsoDoc
8
8
  class Metadata < IsoDoc::Metadata
9
9
  def initialize(lang, script, labels)
10
10
  super
11
- here = File.dirname(__FILE__)
12
- set(:logo, File.expand_path(File.join(here, "html", "logo.jpg")))
11
+ here = File.dirname(__FILE__)
12
+ set(:logo, File.expand_path(File.join(here, "html", "logo.jpg")))
13
13
  end
14
14
 
15
15
  def title(isoxml, _out)
@@ -42,6 +42,7 @@ set(:logo, File.expand_path(File.join(here, "html", "logo.jpg")))
42
42
  set(:doclanguage, lgs) unless lgs.empty?
43
43
  set(:submissionlanguage, slgs) unless slgs.empty?
44
44
  session(isoxml, _out)
45
+ super
45
46
  end
46
47
 
47
48
  def multival(isoxml, xpath)
@@ -82,34 +83,6 @@ set(:logo, File.expand_path(File.join(here, "html", "logo.jpg")))
82
83
  def unpublished(status)
83
84
  !%w(published withdrawn).include? status.downcase
84
85
  end
85
-
86
- def version(isoxml, _out)
87
- super
88
- revdate = get[:revdate]
89
- set(:revdate_monthyear, monthyr(revdate))
90
- end
91
-
92
- MONTHS = {
93
- "01": "January",
94
- "02": "February",
95
- "03": "March",
96
- "04": "April",
97
- "05": "May",
98
- "06": "June",
99
- "07": "July",
100
- "08": "August",
101
- "09": "September",
102
- "10": "October",
103
- "11": "November",
104
- "12": "December",
105
- }.freeze
106
-
107
- def monthyr(isodate)
108
- m = /(?<yr>\d\d\d\d)-(?<mo>\d\d)/.match isodate
109
- return isodate unless m && m[:yr] && m[:mo]
110
- return "#{MONTHS[m[:mo].to_sym]} #{m[:yr]}"
111
- end
112
-
113
86
  end
114
87
  end
115
88
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
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-03-20 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities