metanorma-ogc 2.3.1 → 2.3.2

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: 9af69a382e188415e112d83b854c95580a8c0baf68c6c4470bbcbe8e242c253e
4
- data.tar.gz: 31ebc73dce8e3248b58f147255045b9c59d4a5e927d731774b81bb4c788eeeb4
3
+ metadata.gz: 523a668a24241842252e5a034f9825a2e6220003fc594525af7853d99a11e046
4
+ data.tar.gz: 80174add4c9360e203a93d9ceb01a743481720573fa0edb92c6ae40d3b09ec4e
5
5
  SHA512:
6
- metadata.gz: 50d9654f1e5208d90e76b2991c3e228702da1089df1ae4800f268fb3b11a0ce67bb7eb014435c491559a845e2e81ef308c1ae2f3d9de694a0937f9e3cd3e4512
7
- data.tar.gz: a4e5845363b0c8b4ae286867750cca04f91418ed8477becba552ce9c035e799f0bf024d20e25b9419b50838eb301c89b5511c3b1fa65feeb39149e51685cbe94
6
+ metadata.gz: 13f160e265a7b1904a8cd7b72eb0186b6a2211167cea603d82f220881b191233ebb63a0250c2b49c2f0aa8cc4f168feacdbd4792faef15aeb99a9d87f02dbe94
7
+ data.tar.gz: 9de185795ba454b753c7353de691df99a9a1a9f89996afb470a9f8edf8d357f82847d77c7cf53b88fd817b2529e289fc4c46c798f6095b51a24a176cab198408
@@ -124,6 +124,35 @@ a.FootnoteRef + a.FootnoteRef:before {
124
124
  color: red;
125
125
  text-decoration: line-through; }
126
126
 
127
+ /* code highlighting with line numbers */
128
+ table.rouge-line-table td.rouge-gutter {
129
+ -moz-user-select: none;
130
+ -ms-user-select: none;
131
+ -webkit-user-select: none;
132
+ user-select: none;
133
+ padding-right: 1em; }
134
+
135
+ table.rouge-line-table td.rouge-code {
136
+ -moz-user-select: all;
137
+ -ms-user-select: all;
138
+ -webkit-user-select: all;
139
+ user-select: all; }
140
+
141
+ table.rouge-line-table,
142
+ table.rouge-line-table th,
143
+ table.rouge-line-table td {
144
+ width: auto;
145
+ border: none;
146
+ margin: 0;
147
+ padding: 0;
148
+ font-size: 100%; }
149
+
150
+ table.rouge-line-table pre {
151
+ margin: 0;
152
+ padding: 0;
153
+ overflow-x: visible;
154
+ font-size: 100%; }
155
+
127
156
  #standard-band {
128
157
  background-color: #3D9970; }
129
158
 
@@ -607,7 +636,7 @@ dl {
607
636
 
608
637
  @media screen and (min-width: 768px) {
609
638
  nav {
610
- marign-right: 30px; } }
639
+ margin-right: 30px; } }
611
640
 
612
641
  @media screen and (min-width: 768px) {
613
642
  #toggle {
@@ -848,7 +877,7 @@ table {
848
877
  table th, table td {
849
878
  padding: 1em; }
850
879
  table td.header {
851
- font-weigth: 400; }
880
+ font-weight: 400; }
852
881
  table thead tr th {
853
882
  background-color: #5d99d6; }
854
883
  table td, table th {
@@ -875,7 +904,7 @@ table.modspec {
875
904
  table.modspec th, table.modspec td {
876
905
  padding: 1em; }
877
906
  table.modspec td.header {
878
- font-weigth: 400; }
907
+ font-weight: 400; }
879
908
  table.modspec tr:nth-child(even) {
880
909
  background: #ffffff; }
881
910
  table.modspec tr:nth-child(odd) {
@@ -954,7 +983,7 @@ p.Biblio, p.NormRef {
954
983
  text-align: center;
955
984
  text-align: left; }
956
985
 
957
- pre {
986
+ pre, .sourcecode {
958
987
  font-family: {{monospacefont}};
959
988
  font-variant-ligatures: none;
960
989
  background-color: #f7f7f7;
@@ -988,7 +1017,7 @@ pre {
988
1017
  .Admonition p, .Admonition.Important p, .Admonition.Warning p {
989
1018
  margin: 0; }
990
1019
 
991
- .figure, pre, .pseudocode {
1020
+ .figure, pre, .pseudocode, .sourcecode {
992
1021
  background-color: #e1eef1;
993
1022
  color: #424242;
994
1023
  font-size: {{monospacefontsize}}; }
@@ -97,7 +97,7 @@ nav {
97
97
  @include sidebarNav(#f1f8ff, 323px, 45px);
98
98
 
99
99
  @media screen and (min-width: $bigscreenBreakpoint) {
100
- marign-right: 30px;
100
+ margin-right: 30px;
101
101
  }
102
102
  }
103
103
 
@@ -411,7 +411,7 @@ p.Biblio, p.NormRef {
411
411
 
412
412
  @include listBlock();
413
413
 
414
- pre {
414
+ pre, .sourcecode {
415
415
  @include sourceBlock(#f7f7f7);
416
416
 
417
417
  font-family: $monospacefont;
@@ -444,7 +444,7 @@ pre {
444
444
  }
445
445
  }
446
446
 
447
- .figure, pre, .pseudocode {
447
+ .figure, pre, .pseudocode, .sourcecode {
448
448
  background-color: #e1eef1;
449
449
  color: #424242;
450
450
  font-size: $monospacefontsize;
@@ -36,9 +36,9 @@ module IsoDoc
36
36
 
37
37
  def googlefonts
38
38
  <<~HEAD.freeze
39
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet" />
40
- <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet">
41
- <link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet">
39
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet"/>
40
+ <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet"/>
41
+ <link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet"/>
42
42
  HEAD
43
43
  end
44
44
 
@@ -46,8 +46,7 @@ module IsoDoc
46
46
  case node["type"]
47
47
  when "important" then "Admonition.Important"
48
48
  when "warning" then "Admonition.Warning"
49
- else
50
- "Admonition"
49
+ else "Admonition"
51
50
  end
52
51
  end
53
52
 
@@ -62,7 +61,7 @@ module IsoDoc
62
61
  end
63
62
 
64
63
  def make_body3(body, docxml)
65
- body.div **{ class: "main-section" } do |div3|
64
+ body.div class: "main-section" do |div3|
66
65
  @prefacenum = 0
67
66
  boilerplate docxml, div3
68
67
  preface_block docxml, div3
@@ -87,6 +86,16 @@ module IsoDoc
87
86
  super
88
87
  end
89
88
 
89
+ def html_head
90
+ ret = super
91
+ k = @meta.get[:keywords].join(", ")
92
+ k.empty? or ret += "<meta name='keywords' content='#{k}'/>"
93
+ k = @meta.get[:abstract]
94
+ (k.nil? || k.empty?) or
95
+ ret += "<meta name='description' content='#{k}'/>"
96
+ ret
97
+ end
98
+
90
99
  include BaseConvert
91
100
  include Init
92
101
  end
@@ -47,8 +47,10 @@ module IsoDoc
47
47
  end
48
48
 
49
49
  def title(isoxml, _out)
50
- main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text
50
+ main = isoxml.at(ns("//bibdata/title[@language='en']"))&.text
51
51
  set(:doctitle, main)
52
+ main = isoxml.at(ns("//bibdata/abstract"))&.text&.strip&.gsub(/\s+/, " ")
53
+ set(:abstract, main)
52
54
  end
53
55
 
54
56
  def subtitle(_isoxml, _out)