metanorma-nist 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/nist/front.rb +16 -5
- data/lib/isodoc/nist/presentation_xml_convert.rb +1 -0
- data/lib/metanorma/nist/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: 77b41b5dd747530f461f057cf1372802edb2607e6a7144c390347e4ee57f6d3c
|
4
|
+
data.tar.gz: 7316d76679f0a51af953f434d3ef51aa8b68e165d4e5ca728f2c49f1b85f843d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8acbc8f62cebeff401b9e22130040857f87b4ab59aca4657ae9309e974dc955780052be44824b281d0ceb4dd39c4b0acf7c9df44a44ec3921eacf1945156e477
|
7
|
+
data.tar.gz: ddd906a92cb5d6f5e67bae2f19b83da79d510f6d2eaa3b18a15e1fee272aca5799981ae42977bc5599b05cb514d2e09a3421aefbf5cedd7ab3e1cf5de4f145a2
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "asciidoctor"
|
2
2
|
require "asciidoctor/standoc/converter"
|
3
3
|
require "fileutils"
|
4
|
-
require_relative "./front_id
|
4
|
+
require_relative "./front_id"
|
5
5
|
|
6
6
|
module Asciidoctor
|
7
7
|
module NIST
|
@@ -26,6 +26,7 @@ module Asciidoctor
|
|
26
26
|
|
27
27
|
def title_subtitle(node, t, at)
|
28
28
|
return unless node.attr("title-sub")
|
29
|
+
|
29
30
|
t.title(**attr_code(at.merge(type: "subtitle"))) do |t1|
|
30
31
|
t1 << asciidoc_sub(node.attr("title-sub"))
|
31
32
|
end
|
@@ -36,6 +37,7 @@ module Asciidoctor
|
|
36
37
|
|
37
38
|
def title_document_class(node, t, at)
|
38
39
|
return unless node.attr("title-document-class")
|
40
|
+
|
39
41
|
t.title(**attr_code(at.merge(type: "document-class"))) do |t1|
|
40
42
|
t1 << asciidoc_sub(node.attr("title-document-class"))
|
41
43
|
end
|
@@ -45,8 +47,10 @@ module Asciidoctor
|
|
45
47
|
t.title(**attr_code(at.merge(type: "main"))) do |t1|
|
46
48
|
t1 << (asciidoc_sub(node.attr("title-main")) || node.title)
|
47
49
|
end
|
48
|
-
node.attr("title-main-short")
|
49
|
-
|
50
|
+
if node.attr("title-main-short")
|
51
|
+
t.title(**attr_code(at.merge(type: "short-title"))) do |t1|
|
52
|
+
t1 << asciidoc_sub(node.attr("title-main-short"))
|
53
|
+
end
|
50
54
|
end
|
51
55
|
end
|
52
56
|
|
@@ -85,6 +89,7 @@ module Asciidoctor
|
|
85
89
|
def metadata_committee(node, xml)
|
86
90
|
return unless node.attr("technical-committee") || node.attr("subcommittee") ||
|
87
91
|
node.attr("workgroup") || node.attr("workinggroup")
|
92
|
+
|
88
93
|
xml.editorialgroup do |a|
|
89
94
|
c = node.attr("technical-committee") and a.committee(c)
|
90
95
|
c = node.attr("subcommittee") and
|
@@ -124,6 +129,7 @@ module Asciidoctor
|
|
124
129
|
title = node.attr("series-title")
|
125
130
|
abbrev = node.attr("series-abbrev")
|
126
131
|
return unless (title || abbrev)
|
132
|
+
|
127
133
|
xml.series **{ type: "secondary" } do |s|
|
128
134
|
title and s.title title
|
129
135
|
abbrev and s.abbreviation abbrev
|
@@ -146,11 +152,15 @@ module Asciidoctor
|
|
146
152
|
end
|
147
153
|
|
148
154
|
def relaton_relation_descriptions
|
149
|
-
super.merge(
|
155
|
+
super.merge(
|
156
|
+
{ "supersedes" => "obsoletes",
|
157
|
+
"superseded-by" => "obsoleted-by" }
|
158
|
+
)
|
150
159
|
end
|
151
160
|
|
152
161
|
def metadata_getrelation(node, xml, type, desc = nil)
|
153
|
-
if type == "obsoleted-by"
|
162
|
+
if type == "obsoleted-by" && desc.nil? &&
|
163
|
+
node.attr("superseding-status")
|
154
164
|
metadata_superseding_doc(node, xml)
|
155
165
|
end
|
156
166
|
super
|
@@ -229,6 +239,7 @@ module Asciidoctor
|
|
229
239
|
|
230
240
|
def metadata_ext(node, xml)
|
231
241
|
metadata_doctype(node, xml)
|
242
|
+
metadata_subdoctype(node, xml)
|
232
243
|
metadata_committee(node, xml)
|
233
244
|
metadata_commentperiod(node, xml)
|
234
245
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-nist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|