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 +4 -4
- data/lib/isodoc/ogc/html/htmlstyle.css +34 -5
- data/lib/isodoc/ogc/html/htmlstyle.scss +3 -3
- data/lib/isodoc/ogc/html_convert.rb +15 -6
- data/lib/isodoc/ogc/metadata.rb +3 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +483 -449
- data/lib/isodoc/ogc/ogc.best-practice.xsl +483 -449
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +483 -449
- data/lib/isodoc/ogc/ogc.community-practice.xsl +483 -449
- data/lib/isodoc/ogc/ogc.community-standard.xsl +483 -449
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +483 -449
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +483 -449
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +483 -449
- data/lib/isodoc/ogc/ogc.other.xsl +483 -449
- data/lib/isodoc/ogc/ogc.policy.xsl +483 -449
- data/lib/isodoc/ogc/ogc.reference-model.xsl +483 -449
- data/lib/isodoc/ogc/ogc.release-notes.xsl +483 -449
- data/lib/isodoc/ogc/ogc.standard.xsl +483 -449
- data/lib/isodoc/ogc/ogc.test-suite.xsl +483 -449
- data/lib/isodoc/ogc/ogc.user-guide.xsl +483 -449
- data/lib/isodoc/ogc/ogc.white-paper.xsl +41 -14
- data/lib/metanorma/ogc/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: 523a668a24241842252e5a034f9825a2e6220003fc594525af7853d99a11e046
|
4
|
+
data.tar.gz: 80174add4c9360e203a93d9ceb01a743481720573fa0edb92c6ae40d3b09ec4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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-
|
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-
|
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
|
-
|
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
|
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
|
data/lib/isodoc/ogc/metadata.rb
CHANGED
@@ -47,8 +47,10 @@ module IsoDoc
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def title(isoxml, _out)
|
50
|
-
main = isoxml
|
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)
|