metanorma-mpfd 0.1.4 → 0.1.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: fa175636c95c1056cc6acebc3e3176f73d91a63248664f3495eb21736ffb0b02
4
- data.tar.gz: 242826c616cd5d60b3b97a12cc31386cfc484da5a84065345e64f5434da5f0e6
3
+ metadata.gz: 87602011623efb1127c8dd1a19a6812c491aed3148d8d561232ce494e45ccfe3
4
+ data.tar.gz: cf0f26d14b14814641f32bc3f8cd4bf886691317f6714fd07a557278e4f70df1
5
5
  SHA512:
6
- metadata.gz: 37004493a370155537a3230acb8a9f4b1855a145d27f1241a75656df08bc4204f3b9c2e4cd31efdacba2bd64ecac815d266b535c96d8935cef73e579c08dd7b5
7
- data.tar.gz: e376b9a3b076ccc7b03fa51ac642489857aa598027fb550f11b374b8ac63e44fde3ae2012e8aec9c95d25d82fd7c0eaa4b59b52279211905811cab40f259e5d6
6
+ metadata.gz: e54bf36db25e2533a9009ee95e189bdeb387192b95192e588a04163e708d1415a7b0a1f16b5bcd0cec8330b1826c19ea2f89d5560e36e447bbfc0acd93e606d4
7
+ data.tar.gz: e5441f308639b8def4cbd504747bb4faa1cb63529852b70ca88930b8a5ebc2cdcfbdd0cf5d51ba2e3be6d922a82a382f7eecfd6ccebf2adf434472c46fcd3f4e
data/.travis.yml CHANGED
@@ -7,7 +7,7 @@ rvm:
7
7
  - 2.3
8
8
  - ruby-head
9
9
  before_install:
10
- - gem install bundler -v 1.16.1
10
+ - gem install bundler -v 2.0.1
11
11
  - npm install -g puppeteer
12
12
  - npm install
13
13
  - unset _JAVA_OPTIONS
data/README.adoc CHANGED
@@ -98,7 +98,7 @@ tables etc, and automatically generating references and citations.
98
98
 
99
99
 
100
100
  [[model_additions]]
101
- == Asciidoctor features specific to CSAND
101
+ == Asciidoctor features specific to MPFD
102
102
 
103
103
  The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
104
104
  gem documents the customisations of Asciidoctor markup common to all metanorma gems.
@@ -488,6 +488,9 @@
488
488
  <optional>
489
489
  <ref name="edition"/>
490
490
  </optional>
491
+ <optional>
492
+ <ref name="version"/>
493
+ </optional>
491
494
  <zeroOrMore>
492
495
  <ref name="biblionote"/>
493
496
  </zeroOrMore>
@@ -866,6 +869,34 @@
866
869
  </zeroOrMore>
867
870
  </element>
868
871
  </define>
872
+ <define name="version">
873
+ <element name="version">
874
+ <optional>
875
+ <ref name="vedition"/>
876
+ </optional>
877
+ <optional>
878
+ <ref name="revision-date"/>
879
+ </optional>
880
+ <zeroOrMore>
881
+ <ref name="draft"/>
882
+ </zeroOrMore>
883
+ </element>
884
+ </define>
885
+ <define name="vedition">
886
+ <element name="edition">
887
+ <data type="int"/>
888
+ </element>
889
+ </define>
890
+ <define name="revision-date">
891
+ <element name="revision-date">
892
+ <data type="date"/>
893
+ </element>
894
+ </define>
895
+ <define name="draft">
896
+ <element name="draft">
897
+ <text/>
898
+ </element>
899
+ </define>
869
900
  <!--
870
901
  Anycontents = mixed {
871
902
  https://github.com/relaxng/jing-trang/issues/211
@@ -39,9 +39,6 @@
39
39
  <define name="standard-document">
40
40
  <element name="standard-document">
41
41
  <ref name="bibdata"/>
42
- <optional>
43
- <ref name="version"/>
44
- </optional>
45
42
  <optional>
46
43
  <ref name="preface"/>
47
44
  </optional>
@@ -59,34 +56,6 @@
59
56
  <ref name="BibData"/>
60
57
  </element>
61
58
  </define>
62
- <define name="version">
63
- <element name="version">
64
- <optional>
65
- <ref name="vedition"/>
66
- </optional>
67
- <optional>
68
- <ref name="revision-date"/>
69
- </optional>
70
- <zeroOrMore>
71
- <ref name="draft"/>
72
- </zeroOrMore>
73
- </element>
74
- </define>
75
- <define name="vedition">
76
- <element name="edition">
77
- <data type="int"/>
78
- </element>
79
- </define>
80
- <define name="revision-date">
81
- <element name="revision-date">
82
- <data type="date"/>
83
- </element>
84
- </define>
85
- <define name="draft">
86
- <element name="draft">
87
- <text/>
88
- </element>
89
- </define>
90
59
  <define name="preface">
91
60
  <element name="preface">
92
61
  <oneOrMore>
@@ -1068,6 +1037,9 @@
1068
1037
  <optional>
1069
1038
  <ref name="edition"/>
1070
1039
  </optional>
1040
+ <optional>
1041
+ <ref name="version"/>
1042
+ </optional>
1071
1043
  <zeroOrMore>
1072
1044
  <ref name="biblionote"/>
1073
1045
  </zeroOrMore>
@@ -96,6 +96,9 @@
96
96
  <optional>
97
97
  <ref name="edition"/>
98
98
  </optional>
99
+ <optional>
100
+ <ref name="version"/>
101
+ </optional>
99
102
  <zeroOrMore>
100
103
  <ref name="biblionote"/>
101
104
  </zeroOrMore>
@@ -178,6 +181,9 @@
178
181
  <optional>
179
182
  <ref name="edition"/>
180
183
  </optional>
184
+ <optional>
185
+ <ref name="version"/>
186
+ </optional>
181
187
  <zeroOrMore>
182
188
  <ref name="biblionote"/>
183
189
  </zeroOrMore>
@@ -762,9 +768,6 @@
762
768
  <define name="iso-standard">
763
769
  <element name="iso-standard">
764
770
  <ref name="bibdata"/>
765
- <optional>
766
- <ref name="version"/>
767
- </optional>
768
771
  <zeroOrMore>
769
772
  <ref name="termdocsource"/>
770
773
  </zeroOrMore>
@@ -130,6 +130,9 @@
130
130
  <optional>
131
131
  <ref name="edition"/>
132
132
  </optional>
133
+ <optional>
134
+ <ref name="version"/>
135
+ </optional>
133
136
  <zeroOrMore>
134
137
  <ref name="biblionote"/>
135
138
  </zeroOrMore>
@@ -177,9 +180,6 @@
177
180
  <define name="mpfd-standard">
178
181
  <element name="mpfd-standard">
179
182
  <ref name="bibdata"/>
180
- <optional>
181
- <ref name="version"/>
182
- </optional>
183
183
  <zeroOrMore>
184
184
  <ref name="termdocsource"/>
185
185
  </zeroOrMore>
@@ -211,7 +211,7 @@ strong {
211
211
  }
212
212
 
213
213
  @media screen {
214
- img {
214
+ div.figure > img {
215
215
  width: 100%;
216
216
  height: auto;
217
217
  }
@@ -528,21 +528,21 @@ a:hover {
528
528
 
529
529
  ul, ol {margin-left: 1.2em;}
530
530
 
531
- ul li {
531
+ ul > li {
532
532
  list-style: none;
533
533
  }
534
534
 
535
- ul li:before {
535
+ ul > li:before {
536
536
  content: "\2014";
537
537
  display: inline-block; width: 1em;
538
538
  margin-left: -1.2em;
539
539
  }
540
540
 
541
- ul li p:first-child {
541
+ ul > li p:first-child {
542
542
  display: inline;
543
543
  }
544
544
 
545
- ul li:first-child {
545
+ ul > li:first-child {
546
546
  margin-top: 1em;
547
547
  }
548
548
 
@@ -609,6 +609,15 @@ p.Biblio, p.NormRef {
609
609
 
610
610
  }
611
611
 
612
+ .Admonition {
613
+ background-color: #ffcccc;
614
+ color: #47430c;
615
+ padding: 1.2em;
616
+ margin: 2em 0 1em 0;
617
+
618
+ }
619
+
620
+
612
621
  /*
613
622
  3.8 Examples
614
623
  */
@@ -1132,6 +1141,17 @@ a.anchorjs-link:hover {
1132
1141
  padding: 0 5px 0 5px;
1133
1142
  }
1134
1143
 
1144
+ .Admonition {
1145
+ background-color: #ffcccc;
1146
+ color: #47430c;
1147
+ padding: 5px;
1148
+ margin: 2em 0 1em 0;
1149
+ }
1150
+
1151
+ .Admonition p {
1152
+ padding: 0 5px 0 5px;
1153
+ }
1154
+
1135
1155
  nav {
1136
1156
  line-height: 1;
1137
1157
  }
@@ -535,8 +535,6 @@ table.MsoISOTable
535
535
  mso-yfti-tbllook:480;
536
536
  mso-border-insideh:.75pt solid windowtext;
537
537
  mso-border-insidev:.75pt solid windowtext;
538
- mso-table-anchor-vertical:paragraph;
539
- mso-table-bspace:12.0pt;
540
538
  font-size:10.0pt;
541
539
  font-family:$bodyfont;}
542
540
  table.MsoISOTable tr
@@ -563,8 +561,6 @@ table.MsoTableGrid
563
561
  mso-para-margin:0cm;
564
562
  mso-para-margin-bottom:.0001pt;
565
563
  mso-pagination:widow-orphan;
566
- mso-table-anchor-vertical:paragraph;
567
- mso-table-bspace:12.0pt;
568
564
  font-size:10.0pt;
569
565
  font-family:$bodyfont;}
570
566
  td { page-break-inside:avoid; }
@@ -622,10 +618,6 @@ p.example, li.example, div.example, td.example
622
618
  font-size:10.0pt;
623
619
  font-family:$bodyfont;}
624
620
 
625
- table.example {
626
- margin-bottom:12pt;
627
- }
628
-
629
621
  td.example p.MsoListParagraph {
630
622
  font-size: 10.0pt;
631
623
  }
@@ -1086,8 +1086,6 @@ table.MsoNormalTable
1086
1086
  mso-para-margin:0cm;
1087
1087
  mso-para-margin-bottom:.0001pt;
1088
1088
  mso-pagination:widow-orphan;
1089
- mso-table-anchor-vertical:paragraph;
1090
- mso-table-bspace:12.0pt;
1091
1089
  font-size:10.0pt;
1092
1090
  font-family:$bodyfont;}
1093
1091
  br.section
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Mpfd
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency "isodoc", "~> 0.9.0"
33
33
  spec.add_dependency "twitter_cldr"
34
34
 
35
- spec.add_development_dependency "bundler", "~> 1.15"
35
+ spec.add_development_dependency "bundler", "~> 2.0.1"
36
36
  spec.add_development_dependency "byebug", "~> 9.1"
37
37
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
38
38
  spec.add_development_dependency "guard", "~> 2.14"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.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: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.15'
103
+ version: 2.0.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.15'
110
+ version: 2.0.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: byebug
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -277,7 +277,6 @@ files:
277
277
  - lib/asciidoctor/mpfd/isodoc.rng
278
278
  - lib/asciidoctor/mpfd/isostandard.rng
279
279
  - lib/asciidoctor/mpfd/mpfd.rng
280
- - lib/asciidoctor/mpfd/pdf.js
281
280
  - lib/asciidoctor/mpfd/section.rb
282
281
  - lib/isodoc/mpfd/html/header.html
283
282
  - lib/isodoc/mpfd/html/html_rsd_intro.html
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- try {
4
- require.resolve("puppeteer");
5
- } catch(e) {
6
- console.error("puppeteer Node library is not installed; will not generate PDF");
7
- process.exit(e.code);
8
- }
9
-
10
- const puppeteer = require('puppeteer');
11
-
12
- const createPdf = async() => {
13
- let browser;
14
- try {
15
- browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
16
- const page = await browser.newPage();
17
- await page.goto(process.argv[2], {waitUntil: 'networkidle2'});
18
- await page.pdf({
19
- path: process.argv[3],
20
- format: 'A4'
21
- });
22
- } catch (err) {
23
- console.log(err.message);
24
- } finally {
25
- if (browser) {
26
- browser.close();
27
- }
28
- process.exit();
29
- }
30
- };
31
- createPdf();