isodoc 1.2.4 → 1.3.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/.github/workflows/rake.yml +69 -0
- data/README.adoc +1 -3
- data/isodoc.gemspec +3 -1
- data/lib/isodoc-yaml/i18n-en.yaml +1 -0
- data/lib/isodoc-yaml/i18n-fr.yaml +8 -7
- data/lib/isodoc-yaml/i18n-zh-Hans.yaml +1 -0
- data/lib/isodoc/base_style/all.css +5 -1
- data/lib/isodoc/base_style/blocks.scss +2 -2
- data/lib/isodoc/base_style/reset.css +5 -1
- data/lib/isodoc/base_style/reset.scss +6 -1
- data/lib/isodoc/base_style/typography.scss +1 -1
- data/lib/isodoc/convert.rb +12 -97
- data/lib/isodoc/css.rb +95 -0
- data/lib/isodoc/function/inline.rb +0 -33
- data/lib/isodoc/function/lists.rb +2 -1
- data/lib/isodoc/function/references.rb +8 -13
- data/lib/isodoc/function/to_word_html.rb +2 -2
- data/lib/isodoc/html_function/postprocess.rb +12 -3
- data/lib/isodoc/i18n.rb +23 -51
- data/lib/isodoc/metadata.rb +44 -111
- data/lib/isodoc/metadata_contributor.rb +90 -0
- data/lib/isodoc/metadata_date.rb +11 -0
- data/lib/isodoc/presentation_function/bibdata.rb +96 -0
- data/lib/isodoc/presentation_function/block.rb +14 -9
- data/lib/isodoc/presentation_function/inline.rb +151 -34
- data/lib/isodoc/presentation_xml_convert.rb +6 -0
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_convert.rb +0 -20
- data/lib/isodoc/word_function/body.rb +12 -0
- data/lib/isodoc/word_function/postprocess.rb +1 -1
- data/lib/isodoc/xref/xref_anchor.rb +8 -3
- data/lib/isodoc/xref/xref_counter.rb +20 -9
- data/lib/isodoc/xref/xref_gen.rb +4 -4
- data/lib/isodoc/xref/xref_sect_gen.rb +1 -1
- data/lib/isodoc/xslfo_convert.rb +6 -1
- data/spec/assets/html.scss +14 -0
- data/spec/assets/i18n.yaml +22 -5
- data/spec/isodoc/blocks_spec.rb +100 -221
- data/spec/isodoc/footnotes_spec.rb +4 -5
- data/spec/isodoc/i18n_spec.rb +89 -16
- data/spec/isodoc/inline_spec.rb +185 -163
- data/spec/isodoc/lists_spec.rb +1 -1
- data/spec/isodoc/metadata_spec.rb +69 -19
- data/spec/isodoc/postproc_spec.rb +33 -8
- data/spec/isodoc/presentation_xml_spec.rb +584 -1
- data/spec/isodoc/ref_spec.rb +328 -10
- data/spec/isodoc/section_spec.rb +9 -9
- data/spec/isodoc/table_spec.rb +1 -1
- data/spec/isodoc/terms_spec.rb +1 -1
- data/spec/isodoc/xref_spec.rb +35 -35
- data/spec/spec_helper.rb +6 -0
- metadata +36 -7
- data/.github/workflows/macos.yml +0 -42
- data/.github/workflows/ubuntu.yml +0 -62
- data/.github/workflows/windows.yml +0 -44
data/spec/isodoc/table_spec.rb
CHANGED
@@ -65,7 +65,7 @@ RSpec.describe IsoDoc do
|
|
65
65
|
INPUT
|
66
66
|
|
67
67
|
presxml = <<~OUTPUT
|
68
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
68
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
69
69
|
<preface>
|
70
70
|
<foreword>
|
71
71
|
<table id='tableD-1' alt='tool tip' summary='long desc' width='70%' keep-with-next='true' keep-lines-together='true'>
|
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -74,7 +74,7 @@ RSpec.describe IsoDoc do
|
|
74
74
|
INPUT
|
75
75
|
|
76
76
|
presxml = <<~"PRESXML"
|
77
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
77
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
78
78
|
<sections>
|
79
79
|
<terms id='_terms_and_definitions' obligation='normative'>
|
80
80
|
<title depth='1'>
|
data/spec/isodoc/xref_spec.rb
CHANGED
@@ -14,7 +14,7 @@ RSpec.describe IsoDoc do
|
|
14
14
|
</iso-standard
|
15
15
|
INPUT
|
16
16
|
<?xml version='1.0'?>
|
17
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
17
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
18
18
|
<preface>
|
19
19
|
<foreword>
|
20
20
|
<p>
|
@@ -167,7 +167,7 @@ RSpec.describe IsoDoc do
|
|
167
167
|
</iso-standard>
|
168
168
|
INPUT
|
169
169
|
<?xml version='1.0'?>
|
170
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
170
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
171
171
|
<preface>
|
172
172
|
<foreword>
|
173
173
|
<p>
|
@@ -377,7 +377,7 @@ RSpec.describe IsoDoc do
|
|
377
377
|
</iso-standard>
|
378
378
|
INPUT
|
379
379
|
<?xml version='1.0'?>
|
380
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
380
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
381
381
|
<preface>
|
382
382
|
<foreword id='fwd'>
|
383
383
|
<p>
|
@@ -546,7 +546,7 @@ RSpec.describe IsoDoc do
|
|
546
546
|
</iso-standard>
|
547
547
|
INPUT
|
548
548
|
<?xml version='1.0'?>
|
549
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
549
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
550
550
|
<preface>
|
551
551
|
<foreword id='fwd'>
|
552
552
|
<p>
|
@@ -684,7 +684,7 @@ RSpec.describe IsoDoc do
|
|
684
684
|
</iso-standard>
|
685
685
|
INPUT
|
686
686
|
<?xml version='1.0'?>
|
687
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
687
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
688
688
|
<preface>
|
689
689
|
<foreword>
|
690
690
|
<p>
|
@@ -844,7 +844,7 @@ RSpec.describe IsoDoc do
|
|
844
844
|
</iso-standard>
|
845
845
|
INPUT
|
846
846
|
<?xml version='1.0'?>
|
847
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
847
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
848
848
|
<preface>
|
849
849
|
<foreword>
|
850
850
|
<p>
|
@@ -1002,7 +1002,7 @@ RSpec.describe IsoDoc do
|
|
1002
1002
|
</iso-standard>
|
1003
1003
|
INPUT
|
1004
1004
|
<?xml version='1.0'?>
|
1005
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1005
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1006
1006
|
<preface>
|
1007
1007
|
<foreword>
|
1008
1008
|
<p>
|
@@ -1162,7 +1162,7 @@ RSpec.describe IsoDoc do
|
|
1162
1162
|
</iso-standard>
|
1163
1163
|
INPUT
|
1164
1164
|
<?xml version='1.0'?>
|
1165
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1165
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1166
1166
|
<preface>
|
1167
1167
|
<foreword>
|
1168
1168
|
<p>
|
@@ -1322,7 +1322,7 @@ RSpec.describe IsoDoc do
|
|
1322
1322
|
</iso-standard>
|
1323
1323
|
INPUT
|
1324
1324
|
<?xml version='1.0'?>
|
1325
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1325
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1326
1326
|
<preface>
|
1327
1327
|
<foreword>
|
1328
1328
|
<p>
|
@@ -1465,7 +1465,7 @@ OUTPUT
|
|
1465
1465
|
</iso-standard>
|
1466
1466
|
INPUT
|
1467
1467
|
<?xml version='1.0'?>
|
1468
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1468
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1469
1469
|
<preface>
|
1470
1470
|
<foreword>
|
1471
1471
|
<p>
|
@@ -1656,7 +1656,7 @@ OUTPUT
|
|
1656
1656
|
</iso-standard>
|
1657
1657
|
INPUT
|
1658
1658
|
<?xml version='1.0'?>
|
1659
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1659
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1660
1660
|
<preface>
|
1661
1661
|
<foreword>
|
1662
1662
|
<p>
|
@@ -1831,7 +1831,7 @@ OUTPUT
|
|
1831
1831
|
</iso-standard>
|
1832
1832
|
INPUT
|
1833
1833
|
<?xml version='1.0'?>
|
1834
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1834
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1835
1835
|
<preface>
|
1836
1836
|
<foreword>
|
1837
1837
|
<p>
|
@@ -1976,7 +1976,7 @@ OUTPUT
|
|
1976
1976
|
</iso-standard>
|
1977
1977
|
INPUT
|
1978
1978
|
<?xml version='1.0'?>
|
1979
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
1979
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
1980
1980
|
<preface>
|
1981
1981
|
<foreword obligation='informative'>
|
1982
1982
|
<title>Foreword</title>
|
@@ -2191,7 +2191,7 @@ OUTPUT
|
|
2191
2191
|
</iso-standard>
|
2192
2192
|
INPUT
|
2193
2193
|
<?xml version='1.0'?>
|
2194
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
2194
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
2195
2195
|
<preface>
|
2196
2196
|
<foreword>
|
2197
2197
|
<p>
|
@@ -2313,7 +2313,7 @@ OUTPUT
|
|
2313
2313
|
<li id="N1"><p>A</p></li>
|
2314
2314
|
</ol>
|
2315
2315
|
<clause id="xyz"><title>Preparatory</title>
|
2316
|
-
<ol id="N02">
|
2316
|
+
<ol id="N02" type="arabic">
|
2317
2317
|
<li id="N2"><p>A</p></li>
|
2318
2318
|
</ol>
|
2319
2319
|
</clause>
|
@@ -2321,17 +2321,17 @@ OUTPUT
|
|
2321
2321
|
</preface>
|
2322
2322
|
<sections>
|
2323
2323
|
<clause id="scope" type="scope"><title>Scope</title>
|
2324
|
-
<ol id="N0">
|
2324
|
+
<ol id="N0" type="roman">
|
2325
2325
|
<li id="N"><p>A</p></li>
|
2326
2326
|
</ol>
|
2327
2327
|
</clause>
|
2328
2328
|
<terms id="terms"/>
|
2329
2329
|
<clause id="widgets"><title>Widgets</title>
|
2330
2330
|
<clause id="widgets1">
|
2331
|
-
<ol id="note1l">
|
2331
|
+
<ol id="note1l" type="alphabet">
|
2332
2332
|
<li id="note1"><p>A</p></li>
|
2333
2333
|
</ol>
|
2334
|
-
<ol id="note2l">
|
2334
|
+
<ol id="note2l" type="roman_upper">
|
2335
2335
|
<li id="note2"><p>A</p></li>
|
2336
2336
|
</ol>
|
2337
2337
|
</clause>
|
@@ -2339,12 +2339,12 @@ OUTPUT
|
|
2339
2339
|
</sections>
|
2340
2340
|
<annex id="annex1">
|
2341
2341
|
<clause id="annex1a">
|
2342
|
-
<ol id="ANl">
|
2342
|
+
<ol id="ANl" type="alphabet_upper">
|
2343
2343
|
<li id="AN"><p>A</p></li>
|
2344
2344
|
</ol>
|
2345
2345
|
</clause>
|
2346
2346
|
<clause id="annex1b">
|
2347
|
-
<ol id="Anote1l">
|
2347
|
+
<ol id="Anote1l" type="roman" start="4">
|
2348
2348
|
<li id="Anote1"><p>A</p></li>
|
2349
2349
|
</ol>
|
2350
2350
|
<ol id="Anote2l">
|
@@ -2355,17 +2355,17 @@ OUTPUT
|
|
2355
2355
|
</iso-standard>
|
2356
2356
|
INPUT
|
2357
2357
|
<?xml version='1.0'?>
|
2358
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
2358
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
2359
2359
|
<preface>
|
2360
2360
|
<foreword>
|
2361
2361
|
<p>
|
2362
2362
|
<xref target='N1'>Introduction, a)</xref>
|
2363
|
-
<xref target='N2'>Preparatory,
|
2364
|
-
<xref target='N'>Clause 1,
|
2363
|
+
<xref target='N2'>Preparatory, 1)</xref>
|
2364
|
+
<xref target='N'>Clause 1, i)</xref>
|
2365
2365
|
<xref target='note1'>Clause 3.1, List 1 a)</xref>
|
2366
|
-
<xref target='note2'>Clause 3.1, List 2
|
2367
|
-
<xref target='AN'>Annex A.1,
|
2368
|
-
<xref target='Anote1'>Annex A.2, List 1
|
2366
|
+
<xref target='note2'>Clause 3.1, List 2 I)</xref>
|
2367
|
+
<xref target='AN'>Annex A.1, A)</xref>
|
2368
|
+
<xref target='Anote1'>Annex A.2, List 1 iv)</xref>
|
2369
2369
|
<xref target='Anote2'>Annex A.2, List 2 a)</xref>
|
2370
2370
|
</p>
|
2371
2371
|
</foreword>
|
@@ -2377,7 +2377,7 @@ OUTPUT
|
|
2377
2377
|
</ol>
|
2378
2378
|
<clause id='xyz'>
|
2379
2379
|
<title depth='2'>Preparatory</title>
|
2380
|
-
<ol id='N02'>
|
2380
|
+
<ol id='N02' type="arabic">
|
2381
2381
|
<li id='N2'>
|
2382
2382
|
<p>A</p>
|
2383
2383
|
</li>
|
@@ -2392,7 +2392,7 @@ OUTPUT
|
|
2392
2392
|
<tab/>
|
2393
2393
|
Scope
|
2394
2394
|
</title>
|
2395
|
-
<ol id='N0'>
|
2395
|
+
<ol id='N0' type="roman">
|
2396
2396
|
<li id='N'>
|
2397
2397
|
<p>A</p>
|
2398
2398
|
</li>
|
@@ -2408,12 +2408,12 @@ OUTPUT
|
|
2408
2408
|
Widgets
|
2409
2409
|
</title>
|
2410
2410
|
<clause id='widgets1'><title>3.1.</title>
|
2411
|
-
<ol id='note1l'>
|
2411
|
+
<ol id='note1l' type="alphabet">
|
2412
2412
|
<li id='note1'>
|
2413
2413
|
<p>A</p>
|
2414
2414
|
</li>
|
2415
2415
|
</ol>
|
2416
|
-
<ol id='note2l'>
|
2416
|
+
<ol id='note2l' type="roman_upper">
|
2417
2417
|
<li id='note2'>
|
2418
2418
|
<p>A</p>
|
2419
2419
|
</li>
|
@@ -2428,14 +2428,14 @@ OUTPUT
|
|
2428
2428
|
(informative)
|
2429
2429
|
</title>
|
2430
2430
|
<clause id='annex1a'><title>A.1.</title>
|
2431
|
-
<ol id='ANl'>
|
2431
|
+
<ol id='ANl' type="alphabet_upper">
|
2432
2432
|
<li id='AN'>
|
2433
2433
|
<p>A</p>
|
2434
2434
|
</li>
|
2435
2435
|
</ol>
|
2436
2436
|
</clause>
|
2437
2437
|
<clause id='annex1b'><title>A.2.</title>
|
2438
|
-
<ol id='Anote1l'>
|
2438
|
+
<ol id='Anote1l' type="roman" start="4">
|
2439
2439
|
<li id='Anote1'>
|
2440
2440
|
<p>A</p>
|
2441
2441
|
</li>
|
@@ -2491,7 +2491,7 @@ OUTPUT
|
|
2491
2491
|
</iso-standard>
|
2492
2492
|
INPUT
|
2493
2493
|
<?xml version='1.0'?>
|
2494
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
2494
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
2495
2495
|
<preface>
|
2496
2496
|
<foreword>
|
2497
2497
|
<p>
|
@@ -2592,7 +2592,7 @@ OUTPUT
|
|
2592
2592
|
</iso-standard>
|
2593
2593
|
INPUT
|
2594
2594
|
<?xml version='1.0'?>
|
2595
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
2595
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
2596
2596
|
<preface>
|
2597
2597
|
<foreword id='fwd'>
|
2598
2598
|
<p>
|
@@ -2710,7 +2710,7 @@ INPUT
|
|
2710
2710
|
</iso-standard>
|
2711
2711
|
INPUT
|
2712
2712
|
<?xml version='1.0'?>
|
2713
|
-
<iso-standard xmlns='http://riboseinc.com/isoxml'>
|
2713
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
|
2714
2714
|
<preface>
|
2715
2715
|
<foreword id='fwd'>
|
2716
2716
|
<p>
|
data/spec/spec_helper.rb
CHANGED
@@ -29,6 +29,12 @@ def xmlpp(x)
|
|
29
29
|
s
|
30
30
|
end
|
31
31
|
|
32
|
+
def metadata(x)
|
33
|
+
Hash[x.sort].delete_if{ |k, v| v.nil? || v.respond_to?(:empty?) && v.empty? }
|
34
|
+
end
|
35
|
+
|
36
|
+
# expect(metadata(c.info(Nokogiri::XML(<<~"INPUT"), nil))).to be_equivalent_to <<~"OUTPUT"
|
37
|
+
|
32
38
|
def strip_guid(x)
|
33
39
|
x.gsub(%r{ id="_[^"]+"}, ' id="_"').gsub(%r{ target="_[^"]+"}, ' target="_"').
|
34
40
|
gsub(%r( href="#[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}"), ' href="#_"').
|
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: 1.
|
4
|
+
version: 1.3.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: 2020-
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: twitter_cldr
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: roman-numerals
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +142,28 @@ dependencies:
|
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
145
|
+
version: 1.2.0
|
132
146
|
type: :runtime
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
152
|
+
version: 1.2.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: relaton-cli
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
139
167
|
- !ruby/object:Gem::Dependency
|
140
168
|
name: rake
|
141
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -287,9 +315,7 @@ executables: []
|
|
287
315
|
extensions: []
|
288
316
|
extra_rdoc_files: []
|
289
317
|
files:
|
290
|
-
- ".github/workflows/
|
291
|
-
- ".github/workflows/ubuntu.yml"
|
292
|
-
- ".github/workflows/windows.yml"
|
318
|
+
- ".github/workflows/rake.yml"
|
293
319
|
- ".hound.yml"
|
294
320
|
- ".oss-guides.rubocop.yml"
|
295
321
|
- ".rubocop.ribose.yml"
|
@@ -326,6 +352,7 @@ files:
|
|
326
352
|
- lib/isodoc/class_utils.rb
|
327
353
|
- lib/isodoc/common.rb
|
328
354
|
- lib/isodoc/convert.rb
|
355
|
+
- lib/isodoc/css.rb
|
329
356
|
- lib/isodoc/function.rb
|
330
357
|
- lib/isodoc/function/blocks.rb
|
331
358
|
- lib/isodoc/function/blocks_example_note.rb
|
@@ -350,8 +377,10 @@ files:
|
|
350
377
|
- lib/isodoc/html_function/postprocess.rb
|
351
378
|
- lib/isodoc/i18n.rb
|
352
379
|
- lib/isodoc/metadata.rb
|
380
|
+
- lib/isodoc/metadata_contributor.rb
|
353
381
|
- lib/isodoc/metadata_date.rb
|
354
382
|
- lib/isodoc/pdf_convert.rb
|
383
|
+
- lib/isodoc/presentation_function/bibdata.rb
|
355
384
|
- lib/isodoc/presentation_function/block.rb
|
356
385
|
- lib/isodoc/presentation_function/inline.rb
|
357
386
|
- lib/isodoc/presentation_function/section.rb
|
data/.github/workflows/macos.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: macos
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
pull_request:
|
9
|
-
paths-ignore:
|
10
|
-
- .github/workflows/ubuntu.yml
|
11
|
-
- .github/workflows/windows.yml
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
test-macos:
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} macOS
|
16
|
-
runs-on: macos-latest
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
18
|
-
strategy:
|
19
|
-
fail-fast: false
|
20
|
-
matrix:
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
22
|
-
experimental: [false]
|
23
|
-
include:
|
24
|
-
- ruby: '2.7'
|
25
|
-
experimental: true
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@master
|
28
|
-
- name: Use Ruby
|
29
|
-
uses: actions/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
- name: Install Inkscape
|
33
|
-
run: |
|
34
|
-
brew cask install inkscape
|
35
|
-
inkscape --version
|
36
|
-
- name: Update gems
|
37
|
-
run: |
|
38
|
-
sudo gem install bundler --force
|
39
|
-
bundle install --jobs 4 --retry 3
|
40
|
-
- name: Run specs
|
41
|
-
run: |
|
42
|
-
bundle exec rake
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: ubuntu
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
tags:
|
9
|
-
- '*'
|
10
|
-
pull_request:
|
11
|
-
paths-ignore:
|
12
|
-
- .github/workflows/macos.yml
|
13
|
-
- .github/workflows/windows.yml
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
test-linux:
|
17
|
-
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
continue-on-error: ${{ matrix.experimental }}
|
20
|
-
strategy:
|
21
|
-
fail-fast: false
|
22
|
-
matrix:
|
23
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
24
|
-
experimental: [false]
|
25
|
-
include:
|
26
|
-
- ruby: '2.7'
|
27
|
-
experimental: true
|
28
|
-
steps:
|
29
|
-
- uses: actions/checkout@master
|
30
|
-
- name: Use Ruby
|
31
|
-
uses: actions/setup-ruby@v1
|
32
|
-
with:
|
33
|
-
ruby-version: ${{ matrix.ruby }}
|
34
|
-
- name: Install Inkscape
|
35
|
-
run: |
|
36
|
-
sudo add-apt-repository ppa:inkscape.dev/stable
|
37
|
-
sudo apt update
|
38
|
-
sudo apt install inkscape
|
39
|
-
inkscape --version
|
40
|
-
- name: Update gems
|
41
|
-
run: |
|
42
|
-
gem install bundler
|
43
|
-
bundle install --jobs 4 --retry 3
|
44
|
-
- name: Run specs
|
45
|
-
run: |
|
46
|
-
bundle exec rake
|
47
|
-
- name: Trigger repositories
|
48
|
-
if: matrix.ruby == '2.6'
|
49
|
-
env:
|
50
|
-
GH_USERNAME: metanorma-ci
|
51
|
-
GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
52
|
-
run: |
|
53
|
-
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
54
|
-
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
55
|
-
CLIENT_PAYLOAD=$(cat <<EOF
|
56
|
-
"{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
|
57
|
-
EOF
|
58
|
-
)
|
59
|
-
for repo in $REPOS
|
60
|
-
do
|
61
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
|
62
|
-
done
|