asciidoctor-iso 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/asciidoctor/iso/base.rb +3 -43
- data/lib/asciidoctor/iso/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: a2a192d33f0d1f77d68e2c1803f782e9fe401fde
|
4
|
+
data.tar.gz: 1a33f7fca4eb014a204d4a66c65299849b4e92ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca8e121b088e8bd89f34256f1aa90ee88b21535d4e4cb716b3a443b4354a1fc8514555dccf89085d2532d233415d3da5542bd3b93d546a9d671a6614c3c8a2c8
|
7
|
+
data.tar.gz: 616655be4707c06e0bb19356509cf1482826e33b3212b61c4ad0d9939896832b11932bbdc62351d7fd2789d79fea16ce65e2b7c5f31d6930118639f81782c208
|
data/Gemfile.lock
CHANGED
@@ -33,7 +33,7 @@ GIT
|
|
33
33
|
PATH
|
34
34
|
remote: .
|
35
35
|
specs:
|
36
|
-
asciidoctor-iso (0.7.
|
36
|
+
asciidoctor-iso (0.7.6)
|
37
37
|
asciidoctor (~> 1.5.6)
|
38
38
|
html2doc
|
39
39
|
htmlentities (~> 4.3.4)
|
@@ -167,4 +167,4 @@ DEPENDENCIES
|
|
167
167
|
timecop (~> 0.9)
|
168
168
|
|
169
169
|
BUNDLED WITH
|
170
|
-
1.16.
|
170
|
+
1.16.2
|
data/lib/asciidoctor/iso/base.rb
CHANGED
@@ -42,46 +42,6 @@ module Asciidoctor
|
|
42
42
|
outname
|
43
43
|
end
|
44
44
|
|
45
|
-
=begin
|
46
|
-
def html_converter(node)
|
47
|
-
css = generate_css(html_doc_path("style-iso.scss"), true, @fontheader)
|
48
|
-
IsoDoc::Convert.new(
|
49
|
-
htmlstylesheet: css,
|
50
|
-
htmlcoverpage: html_doc_path("html_iso_titlepage.html"),
|
51
|
-
htmlintropage: html_doc_path("html_iso_intro.html"),
|
52
|
-
i18nyaml: node.attr("i18nyaml"),
|
53
|
-
scripts: html_doc_path("scripts.html"),
|
54
|
-
)
|
55
|
-
end
|
56
|
-
|
57
|
-
def html_converter_alt(node)
|
58
|
-
fontheader = @fontheader.gsub(/"Cambria",serif/, '"Lato",sans-serif').
|
59
|
-
gsub(/"Courier New",monospace/, '"Space Mono", monospace')
|
60
|
-
css = generate_css(html_doc_path("style-human.scss"), true, fontheader)
|
61
|
-
IsoDoc::Convert.new(
|
62
|
-
htmlstylesheet: css,
|
63
|
-
htmlcoverpage: html_doc_path("html_iso_titlepage.html"),
|
64
|
-
htmlintropage: html_doc_path("html_iso_intro.html"),
|
65
|
-
i18nyaml: node.attr("i18nyaml"),
|
66
|
-
scripts: html_doc_path("scripts.html"),
|
67
|
-
)
|
68
|
-
end
|
69
|
-
|
70
|
-
def doc_converter(node)
|
71
|
-
IsoDoc::WordConvert.new(
|
72
|
-
wordstylesheet: generate_css(html_doc_path("wordstyle.scss"),
|
73
|
-
false, @fontheader),
|
74
|
-
standardstylesheet: generate_css(html_doc_path("isodoc.scss"),
|
75
|
-
false, @fontheader),
|
76
|
-
header: html_doc_path("header.html"),
|
77
|
-
wordcoverpage: html_doc_path("word_iso_titlepage.html"),
|
78
|
-
wordintropage: html_doc_path("word_iso_intro.html"),
|
79
|
-
i18nyaml: node.attr("i18nyaml"),
|
80
|
-
ulstyle: "l3",
|
81
|
-
olstyle: "l2",
|
82
|
-
)
|
83
|
-
end
|
84
|
-
=end
|
85
45
|
def html_converter(node)
|
86
46
|
IsoDoc::Iso::Convert.new(
|
87
47
|
script: node.attr("script"),
|
@@ -138,9 +98,9 @@ module Asciidoctor
|
|
138
98
|
def document(node)
|
139
99
|
init(node)
|
140
100
|
ret = makexml(node).to_xml(indent: 2)
|
141
|
-
|
142
|
-
|
143
|
-
|
101
|
+
unless node.attr("nodoc") || !node.attr("docfile")
|
102
|
+
filename = node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "")
|
103
|
+
File.open(filename + ".xml", "w") { |f| f.write(ret) }
|
144
104
|
html_converter_alt(node).convert(filename + ".xml")
|
145
105
|
system "mv #{filename}.html #{filename}_alt.html"
|
146
106
|
html_converter(node).convert(filename + ".xml")
|