metanorma-vg 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +0 -1
- data/.github/workflows/ubuntu.yml +10 -7
- data/.github/workflows/windows.yml +0 -1
- data/Rakefile +2 -0
- data/lib/asciidoctor/vg/basicdoc.rng +31 -1
- data/lib/asciidoctor/vg/isodoc.rng +124 -15
- data/lib/isodoc/vg/html/htmlstyle.css +995 -0
- data/lib/isodoc/vg/html/vsd.css +736 -0
- data/lib/isodoc/vg/html/vsd.scss +17 -5
- data/lib/isodoc/vg/html/wordstyle.css +1249 -0
- data/lib/isodoc/vg/html/wordstyle.scss +0 -1
- data/lib/isodoc/vg/html_convert.rb +2 -4
- data/lib/isodoc/vg/init.rb +19 -0
- data/lib/isodoc/vg/presentation_xml_convert.rb +2 -0
- data/lib/isodoc/vg/word_convert.rb +2 -4
- data/lib/isodoc/vg/xref.rb +6 -0
- data/lib/metanorma/vg/processor.rb +0 -4
- data/lib/metanorma/vg/version.rb +1 -1
- data/metanorma-vsd.gemspec +3 -4
- metadata +22 -17
@@ -1,6 +1,6 @@
|
|
1
1
|
require "isodoc"
|
2
2
|
require "isodoc/generic/html_convert"
|
3
|
-
|
3
|
+
require_relative "init"
|
4
4
|
|
5
5
|
module IsoDoc
|
6
6
|
module VG
|
@@ -12,9 +12,7 @@ module IsoDoc
|
|
12
12
|
Metanorma::VG.configuration
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
@meta = Metadata.new(lang, script, labels)
|
17
|
-
end
|
15
|
+
include Init
|
18
16
|
end
|
19
17
|
end
|
20
18
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "isodoc"
|
2
|
+
require_relative "metadata"
|
3
|
+
require_relative "xref"
|
4
|
+
|
5
|
+
module IsoDoc
|
6
|
+
module VG
|
7
|
+
module Init
|
8
|
+
def metadata_init(lang, script, labels)
|
9
|
+
@meta = Metadata.new(lang, script, labels)
|
10
|
+
end
|
11
|
+
|
12
|
+
def xref_init(lang, script, klass, labels, options)
|
13
|
+
html = HtmlConvert.new(language: lang, script: script)
|
14
|
+
@xrefs = Xref.new(lang, script, html, labels, options)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "isodoc"
|
2
2
|
require "isodoc/generic/word_convert"
|
3
|
-
|
3
|
+
require_relative "init"
|
4
4
|
|
5
5
|
module IsoDoc
|
6
6
|
module VG
|
@@ -11,9 +11,7 @@ module IsoDoc
|
|
11
11
|
Metanorma::VG.configuration
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
@meta = Metadata.new(lang, script, labels)
|
16
|
-
end
|
14
|
+
include Init
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
@@ -18,10 +18,6 @@ module Metanorma
|
|
18
18
|
"Metanorma::VG #{Metanorma::VG::VERSION}"
|
19
19
|
end
|
20
20
|
|
21
|
-
def input_to_isodoc(file, filename)
|
22
|
-
Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
|
23
|
-
end
|
24
|
-
|
25
21
|
def output(isodoc_node, outname, format, options={})
|
26
22
|
case format
|
27
23
|
when :html
|
data/lib/metanorma/vg/version.rb
CHANGED
data/metanorma-vsd.gemspec
CHANGED
@@ -28,12 +28,11 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
30
30
|
|
31
|
-
spec.add_dependency "
|
32
|
-
|
33
|
-
spec.add_dependency "metanorma-generic", "~> 1.5.0"
|
34
|
-
spec.add_dependency "isodoc", "~> 1.1.0"
|
31
|
+
spec.add_dependency "metanorma-generic", "~> 1.6.0"
|
32
|
+
spec.add_dependency "isodoc", "~> 1.2.0"
|
35
33
|
|
36
34
|
spec.add_development_dependency "byebug", "~> 9.1"
|
35
|
+
spec.add_development_dependency "sassc", "2.4.0"
|
37
36
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
38
37
|
spec.add_development_dependency "guard", "~> 2.14"
|
39
38
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-vg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.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: 2020-
|
11
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: metanorma-generic
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.6.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: isodoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: byebug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :
|
47
|
+
version: '9.1'
|
48
|
+
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '9.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: sassc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.4.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: equivalent-xml
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,17 +213,22 @@ files:
|
|
213
213
|
- lib/isodoc/vg/html/header.html
|
214
214
|
- lib/isodoc/vg/html/html_vsd_intro.html
|
215
215
|
- lib/isodoc/vg/html/html_vsd_titlepage.html
|
216
|
+
- lib/isodoc/vg/html/htmlstyle.css
|
216
217
|
- lib/isodoc/vg/html/htmlstyle.scss
|
217
218
|
- lib/isodoc/vg/html/logo.png
|
218
219
|
- lib/isodoc/vg/html/scripts.html
|
220
|
+
- lib/isodoc/vg/html/vsd.css
|
219
221
|
- lib/isodoc/vg/html/vsd.scss
|
220
222
|
- lib/isodoc/vg/html/word_vsd_intro.html
|
221
223
|
- lib/isodoc/vg/html/word_vsd_titlepage.html
|
224
|
+
- lib/isodoc/vg/html/wordstyle.css
|
222
225
|
- lib/isodoc/vg/html/wordstyle.scss
|
223
226
|
- lib/isodoc/vg/html_convert.rb
|
227
|
+
- lib/isodoc/vg/init.rb
|
224
228
|
- lib/isodoc/vg/metadata.rb
|
225
229
|
- lib/isodoc/vg/presentation_xml_convert.rb
|
226
230
|
- lib/isodoc/vg/word_convert.rb
|
231
|
+
- lib/isodoc/vg/xref.rb
|
227
232
|
- lib/metanorma-vg.rb
|
228
233
|
- lib/metanorma/vg.rb
|
229
234
|
- lib/metanorma/vg/processor.rb
|