metanorma-ogc 1.5.5 → 2.0.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 +4 -32
- data/.gitignore +11 -0
- data/Gemfile +0 -2
- data/lib/isodoc/ogc/biblio.rb +7 -6
- data/lib/isodoc/ogc/html/htmlstyle.css +22 -17
- data/lib/isodoc/ogc/html/htmlstyle.scss +9 -3
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +164 -139
- data/lib/isodoc/ogc/ogc.best-practice.xsl +164 -139
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +164 -139
- data/lib/isodoc/ogc/ogc.community-practice.xsl +164 -139
- data/lib/isodoc/ogc/ogc.community-standard.xsl +164 -139
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +164 -139
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +164 -139
- data/lib/isodoc/ogc/ogc.other.xsl +164 -139
- data/lib/isodoc/ogc/ogc.policy.xsl +164 -139
- data/lib/isodoc/ogc/ogc.reference-model.xsl +164 -139
- data/lib/isodoc/ogc/ogc.release-notes.xsl +164 -139
- data/lib/isodoc/ogc/ogc.standard.xsl +164 -139
- data/lib/isodoc/ogc/ogc.test-suite.xsl +164 -139
- data/lib/isodoc/ogc/ogc.user-guide.xsl +164 -139
- data/lib/isodoc/ogc/ogc.white-paper.xsl +168 -140
- data/lib/isodoc/ogc/presentation_xml_convert.rb +6 -3
- data/lib/{asciidoctor → metanorma}/ogc/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/ogc/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/ogc/boilerplate.xml +0 -0
- data/lib/{asciidoctor → metanorma}/ogc/cleanup.rb +13 -1
- data/lib/{asciidoctor → metanorma}/ogc/converter.rb +12 -2
- data/lib/{asciidoctor → metanorma}/ogc/front.rb +2 -2
- data/lib/{asciidoctor → metanorma}/ogc/isodoc.rng +29 -0
- data/lib/{asciidoctor → metanorma}/ogc/ogc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/ogc/reqt.rng +0 -0
- data/lib/{asciidoctor → metanorma}/ogc/validate.rb +1 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- data/lib/metanorma/ogc.rb +1 -0
- data/lib/metanorma-ogc.rb +0 -1
- data/metanorma-ogc.gemspec +1 -1
- metadata +14 -15
- data/lib/asciidoctor/ogc.rb +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2ea72db3debb8356d5047e7ab611b33e467d1393d0f9e1164100f56c8988bfb
|
|
4
|
+
data.tar.gz: 4cc91744a555f596fc9ac2bf56f54d0f18ee5d762b3de027338af3fd7b65d820
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 135588fdcec82c7eb91b3c6851b87c70ca8ee40a8c3d06240ed909dedaf9a11a85150e2b8c96e227eec9b0df5e97e0d148f2d2caeba5f28ab14879cae0c32da2
|
|
7
|
+
data.tar.gz: 063c4282b5ec0881a83bc820a7e9966fa7ae73feb7ef15ef92f139df340b5a09dbe057586a9d8624e1a36bbc7426e5e589d282d43246fc7b58f9794182f37aea
|
data/.github/workflows/rake.yml
CHANGED
|
@@ -9,35 +9,7 @@ on:
|
|
|
9
9
|
pull_request:
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
strategy:
|
|
17
|
-
fail-fast: false
|
|
18
|
-
matrix:
|
|
19
|
-
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
|
20
|
-
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
21
|
-
experimental: [ false ]
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v2
|
|
24
|
-
with:
|
|
25
|
-
submodules: true
|
|
26
|
-
|
|
27
|
-
- uses: ruby/setup-ruby@v1
|
|
28
|
-
with:
|
|
29
|
-
ruby-version: ${{ matrix.ruby }}
|
|
30
|
-
bundler-cache: true
|
|
31
|
-
|
|
32
|
-
- run: bundle exec rake
|
|
33
|
-
|
|
34
|
-
tests-passed:
|
|
35
|
-
needs: rake
|
|
36
|
-
runs-on: ubuntu-latest
|
|
37
|
-
steps:
|
|
38
|
-
- uses: peter-evans/repository-dispatch@v1
|
|
39
|
-
with:
|
|
40
|
-
token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
|
|
41
|
-
repository: ${{ github.repository }}
|
|
42
|
-
event-type: tests-passed
|
|
43
|
-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
|
12
|
+
notify:
|
|
13
|
+
uses: metanorma/metanorma-build-scripts/.github/workflows/mn-processor-rake.yml@main
|
|
14
|
+
secrets:
|
|
15
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/lib/isodoc/ogc/biblio.rb
CHANGED
|
@@ -12,7 +12,7 @@ module IsoDoc
|
|
|
12
12
|
list.p **attr_code(iso_bibitem_entry_attrs(bib, bibliography)) do |r|
|
|
13
13
|
id = bibitem_ref_code(bib)
|
|
14
14
|
identifier = render_identifier(id)
|
|
15
|
-
identifier[
|
|
15
|
+
identifier[:sdo] = nil
|
|
16
16
|
if bibliography
|
|
17
17
|
ref_entry_code(r, ordinal, identifier, id)
|
|
18
18
|
end
|
|
@@ -124,7 +124,7 @@ module IsoDoc
|
|
|
124
124
|
u = extract_uri(bib)
|
|
125
125
|
out << "#{author || pub_abbrev}: " if author || pub_abbrev
|
|
126
126
|
id = render_identifier(inline_bibitem_ref_code(bib))
|
|
127
|
-
out << id[
|
|
127
|
+
out << id[:sdo] if id[:sdo]
|
|
128
128
|
out << " (Draft)" if ogc_draft_ref?(bib)
|
|
129
129
|
out << ", "
|
|
130
130
|
out.i do |i|
|
|
@@ -143,13 +143,14 @@ module IsoDoc
|
|
|
143
143
|
def inline_bibitem_ref_code(bib)
|
|
144
144
|
id = bib.at(ns("./docidentifier[not(@type = 'DOI' "\
|
|
145
145
|
"or @type = 'metanorma' or @type = 'ISSN' "\
|
|
146
|
-
"or @type = 'ISBN' or @type = '
|
|
147
|
-
id ||= bib.at(ns("./docidentifier[not(@type = 'metanorma'
|
|
148
|
-
|
|
146
|
+
"or @type = 'ISBN' or @type = 'metanorma-ordinal')]"))
|
|
147
|
+
id ||= bib.at(ns("./docidentifier[not(@type = 'metanorma' or "\
|
|
148
|
+
"@type = 'metanorma-ordinal')]"))
|
|
149
|
+
return [nil, id, nil, nil] if id
|
|
149
150
|
|
|
150
151
|
id = Nokogiri::XML::Node.new("docidentifier", bib.document)
|
|
151
152
|
id << "(NO ID)"
|
|
152
|
-
[nil, id, nil]
|
|
153
|
+
[nil, id, nil, nil]
|
|
153
154
|
end
|
|
154
155
|
end
|
|
155
156
|
end
|
|
@@ -514,55 +514,59 @@ dl {
|
|
|
514
514
|
dl pre {
|
|
515
515
|
overflow-x: scroll; }
|
|
516
516
|
|
|
517
|
-
#toc ul {
|
|
517
|
+
#toc ul, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
|
|
518
518
|
margin: 0;
|
|
519
519
|
padding: 0;
|
|
520
520
|
list-style: none; }
|
|
521
|
-
#toc ul li a {
|
|
521
|
+
#toc ul li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
|
|
522
522
|
padding: 5px 10px; }
|
|
523
|
-
#toc ul a {
|
|
523
|
+
#toc ul a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
|
|
524
524
|
color: #00335b;
|
|
525
525
|
text-decoration: none;
|
|
526
526
|
display: block; }
|
|
527
|
-
#toc ul a:hover {
|
|
527
|
+
#toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
|
|
528
528
|
box-shadow: none;
|
|
529
529
|
color: white; }
|
|
530
530
|
|
|
531
|
-
#toc .h2 {
|
|
531
|
+
#toc .h2, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
|
|
532
532
|
padding-left: 30px; }
|
|
533
533
|
|
|
534
|
-
#toc .h3 {
|
|
534
|
+
#toc .h3, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
|
|
535
535
|
padding-left: 50px; }
|
|
536
536
|
|
|
537
|
-
#toc .toc-active, #toc li:hover {
|
|
537
|
+
#toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
|
538
538
|
background: #00335b;
|
|
539
539
|
box-shadow: inset -5px 0px 10px -5px #00335b !important; }
|
|
540
|
-
#toc .toc-active a, #toc li:hover a {
|
|
540
|
+
#toc .toc-active a, #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
|
|
541
541
|
color: white; }
|
|
542
542
|
|
|
543
543
|
@media print {
|
|
544
|
-
#toc .toc-active, #toc li:hover {
|
|
544
|
+
#toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
|
545
545
|
background: white;
|
|
546
546
|
box-shadow: none !important; }
|
|
547
|
-
#toc .toc-active a {
|
|
547
|
+
#toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
|
|
548
548
|
color: #00335b; }
|
|
549
|
-
#toc li:hover a {
|
|
549
|
+
#toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
|
|
550
550
|
color: black; } }
|
|
551
551
|
|
|
552
|
-
#toc li a {
|
|
552
|
+
#toc li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
|
|
553
553
|
font-size: 14px; }
|
|
554
554
|
|
|
555
|
-
#toc li:before {
|
|
555
|
+
#toc li:before, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:before {
|
|
556
556
|
content: " ";
|
|
557
557
|
display: none; }
|
|
558
558
|
|
|
559
|
-
#toc .toc-active, #toc li:hover {
|
|
559
|
+
#toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
|
560
560
|
font-weight: 600; }
|
|
561
561
|
|
|
562
|
-
#toc li:hover a {
|
|
562
|
+
#toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
|
|
563
563
|
background: none;
|
|
564
564
|
box-shadow: none; }
|
|
565
565
|
|
|
566
|
+
#toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
|
567
|
+
margin-top: 0;
|
|
568
|
+
margin-bottom: 0; }
|
|
569
|
+
|
|
566
570
|
@media screen and (min-width: 768px) {
|
|
567
571
|
nav {
|
|
568
572
|
position: fixed;
|
|
@@ -624,7 +628,7 @@ dl {
|
|
|
624
628
|
@media screen and (min-width: 768px) {
|
|
625
629
|
h1.toc-contents {
|
|
626
630
|
margin-top: 1em; }
|
|
627
|
-
ul#toc-list {
|
|
631
|
+
ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
|
628
632
|
padding: 0;
|
|
629
633
|
margin: 0; } }
|
|
630
634
|
|
|
@@ -733,7 +737,8 @@ p {
|
|
|
733
737
|
margin-top: 1em;
|
|
734
738
|
margin-bottom: 1em; }
|
|
735
739
|
|
|
736
|
-
h1, h2, h3, h4, h5, h6,
|
|
740
|
+
h1, h2, h3, h4, h5, h6,
|
|
741
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
|
737
742
|
color: #00335b;
|
|
738
743
|
font-weight: 400;
|
|
739
744
|
margin-top: 1.6em;
|
|
@@ -64,7 +64,7 @@ dl {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
#toc {
|
|
67
|
+
#toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
|
68
68
|
@include toc($colorLink: #00335b, $colorLinkActiveBg: #00335b, $colorLinkActiveFg: white);
|
|
69
69
|
|
|
70
70
|
li a {
|
|
@@ -86,6 +86,11 @@ dl {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
#toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
|
90
|
+
margin-top: 0;
|
|
91
|
+
margin-bottom: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
nav {
|
|
90
95
|
@include sidebarNav(#f1f8ff, 323px, 45px);
|
|
91
96
|
|
|
@@ -112,7 +117,7 @@ nav {
|
|
|
112
117
|
margin-top: 1em;
|
|
113
118
|
}
|
|
114
119
|
|
|
115
|
-
ul#toc-list {
|
|
120
|
+
ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
|
116
121
|
padding: 0;
|
|
117
122
|
margin: 0;
|
|
118
123
|
}
|
|
@@ -173,7 +178,8 @@ p {
|
|
|
173
178
|
margin-bottom: 1em;
|
|
174
179
|
}
|
|
175
180
|
|
|
176
|
-
h1, h2, h3, h4, h5, h6,
|
|
181
|
+
h1, h2, h3, h4, h5, h6,
|
|
182
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
|
177
183
|
color: #00335b;
|
|
178
184
|
font-weight: 400;
|
|
179
185
|
margin-top: 1.6em;
|