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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a4da6a3e0ffecae192d8143237ecc0055c51e5e
4
- data.tar.gz: a527ecde1277cc7e3db558d83685daf4ae332c39
3
+ metadata.gz: 210cb297798f5992c71db2e89b590589415136b7
4
+ data.tar.gz: e1b4d95452bbc28032d9518e1f8a0f6f6823b748
5
5
  SHA512:
6
- metadata.gz: c5c82fceb1f91e3a0ddd088471f6794336672aa600f8b099e4f8187706433111acb62a3d4aea83e4b8ac9085fdcaea411a79c05c7d9b2822fa706fe2944cc499
7
- data.tar.gz: b171e8757bed5ad7e1fc171a16ed503db71a5099f0fe6351148e6dc59e6b9d8540fb44007fd619e287659c4273fba5277fc6e4254b301bceb8bcbc3a88a88f5f
6
+ metadata.gz: 7ea5d8994425e508b7df7c0f71a4c5fe01c8a95373c25231379d6d62c67d3ddf758c4b8f64baa1f30da29719d5d2967010b2a2bfe7843db36ad201176f22e30b
7
+ data.tar.gz: 8265353af7f3dadc29ad6c7a56e0ea4bf2886134acbc78f1b8e6476ee54ffeb80141b8b9c491ddf6552d2c8cba2b4c69258c7887649358b73382cda5e0cbb287
@@ -1,3 +1,3 @@
1
1
  module Liquidoc
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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 back == "pdf" # pass optional style file and set a default pdf-fontsdir
558
- unless defined?(build.style).nil?
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.0
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-28 00:00:00.000000000 Z
11
+ date: 2017-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler