zenml-slide 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/source/zenml/slide.rb +1 -1
- data/source/zenml/slide/converter.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 911117223fc3918966bcfabe23d3e77b9da527230c7f80aad577f2143ddf63a5
|
4
|
+
data.tar.gz: 1d2846a5791849ca1bd49d2a56dc9e67e1ddf4ef1df99dcf90e4a27ed220d3df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31a789c6eefbb66fd01f7ac825840e99eabc3816a679c9b256486db4b825202a7b7c9c09a2cf390177405504e6d18f76a1bdac388f18e2a7b41e9bd006287be6
|
7
|
+
data.tar.gz: f8059e9d58529b7fa87e86dafb515b13358a6442b65aec8c9a5a9c7fe96eeee2b4864d42cb993dd52a446a5154fb803042010351d77d83c96072f5ad3fbbcbe0
|
data/source/zenml/slide.rb
CHANGED
@@ -9,7 +9,7 @@ class Zenithal::Slide::WholeSlideConverter
|
|
9
9
|
def initialize(args)
|
10
10
|
@mode, @open = nil, false
|
11
11
|
@dirs = {:output => "out", :document => "document", :template => "template"}
|
12
|
-
@asset_paths = {:style => ["style/style.
|
12
|
+
@asset_paths = {:style => ["style/style.scss"]}
|
13
13
|
@title = "Slide"
|
14
14
|
@image_size = [1920, 1080]
|
15
15
|
options, rest_args = args.partition{|s| s =~ /^\-\w$/}
|
@@ -68,7 +68,7 @@ class Zenithal::Slide::WholeSlideConverter
|
|
68
68
|
main_string = @converter.convert
|
69
69
|
count = @converter.variables[:slide_count].to_i.to_s
|
70
70
|
header_string << "<script type=\"text/javascript\">#{SCRIPT}</script>\n"
|
71
|
-
header_string << @asset_paths[:style].map{|s| "<link rel=\"stylesheet\" type=\"text/css\" href=\"../#{s}\">\n"}.join
|
71
|
+
header_string << @asset_paths[:style].map{|s| "<link rel=\"stylesheet\" type=\"text/css\" href=\"../#{modify_extension(s)}\">\n"}.join
|
72
72
|
output = TEMPLATE.gsub(/#\{(.*?)\}/){instance_eval($1)}.gsub(/\r/, "")
|
73
73
|
File.write(output_path, output)
|
74
74
|
File.write(count_path, count)
|