asciidoctor-gb 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/gb/converter.rb +4 -4
- data/lib/asciidoctor/gb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168141bfa68f1d5e4677cb56d404d9d21c419a70
|
4
|
+
data.tar.gz: 20d5990c8c9bbfe1ec981039ef27187f9af42737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a1c076aa1d9ce1131dd756f3425645f54d05e5956df00e1534de05894ca040e7adb6ddab55b1bf8aee501c2a9fbc073ba6286c27305ebcd645e664ea9e89ac2
|
7
|
+
data.tar.gz: 97cb050b7b61c903fddb11c8f1f6ce37056b3ced64b6ca24501ad672f0160c2438128658e82bdc6ec84b701bbdae4195f7f79becfe02f6baa264c4ae6c7d8275
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require "asciidoctor"
|
2
2
|
require "asciidoctor/iso/converter"
|
3
3
|
require "asciidoctor/gb/version"
|
4
|
+
require "isodoc/gb/gbconvert"
|
5
|
+
require "isodoc/gb/gbwordconvert"
|
4
6
|
require_relative "./section_input.rb"
|
5
7
|
require_relative "./front.rb"
|
6
8
|
require_relative "./validate.rb"
|
@@ -78,11 +80,9 @@ module Asciidoctor
|
|
78
80
|
def document(node)
|
79
81
|
init(node)
|
80
82
|
ret = makexml(node).to_xml(indent: 2)
|
81
|
-
filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
|
82
|
-
File.open(filename, "w") { |f| f.write(ret) }
|
83
83
|
unless node.attr("nodoc")
|
84
|
-
|
85
|
-
|
84
|
+
filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
|
85
|
+
File.open(filename, "w") { |f| f.write(ret) }
|
86
86
|
html_converter(node).convert(filename + ".xml")
|
87
87
|
doc_converter(node).convert(filename + ".xml")
|
88
88
|
end
|