liquidoc 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/liquidoc/version.rb +1 -1
- data/lib/liquidoc.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 210cb297798f5992c71db2e89b590589415136b7
|
4
|
+
data.tar.gz: e1b4d95452bbc28032d9518e1f8a0f6f6823b748
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea5d8994425e508b7df7c0f71a4c5fe01c8a95373c25231379d6d62c67d3ddf758c4b8f64baa1f30da29719d5d2967010b2a2bfe7843db36ad201176f22e30b
|
7
|
+
data.tar.gz: 8265353af7f3dadc29ad6c7a56e0ea4bf2886134acbc78f1b8e6476ee54ffeb80141b8b9c491ddf6552d2c8cba2b4c69258c7887649358b73382cda5e0cbb287
|
data/lib/liquidoc/version.rb
CHANGED
data/lib/liquidoc.rb
CHANGED
@@ -554,9 +554,12 @@ def asciidocify doc, build
|
|
554
554
|
@logger.debug "Executing Asciidoctor render operation for #{build.output}."
|
555
555
|
to_file = build.output
|
556
556
|
back = derive_backend(doc.type, build.output)
|
557
|
-
if
|
558
|
-
|
557
|
+
if defined?(build.style).nil?
|
558
|
+
case back
|
559
|
+
when "pdf"
|
559
560
|
doc.add_attrs!({"pdf-style"=>build.style})
|
561
|
+
when "html5"
|
562
|
+
doc.add_attrs!({"stylesheet"=>build.style})
|
560
563
|
end
|
561
564
|
end
|
562
565
|
# Add attributes from config file build section
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquidoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Dominick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|