isodoc 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/css.rb +15 -16
- data/lib/isodoc/version.rb +1 -1
- 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: 1afcea1c3a61c003f63ef54ee1fc3336a65755daceb584dcff2558731f419bd8
|
4
|
+
data.tar.gz: 6534a2e478ca74da49d70dbca4e88b611f045f6fa66051a62fe8d39775f61012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4ebffb29a7b2cee5f973244560c4ba3886a79712b3bc8ae0f0ed446ee4324f9b0e54cd40be669aa7aafcea84e493ea96bed8140bdc436765b67def8d9533f8
|
7
|
+
data.tar.gz: b95c345dc9079afd3b80b4d31eaabf0e89c87ec4b56433f860da6004f345390c437be0fb03c0eba3df3640c9cac242999259ec93746caaf3969d5b4c76edb2e0
|
data/lib/isodoc/css.rb
CHANGED
@@ -82,25 +82,24 @@ module IsoDoc
|
|
82
82
|
File.dirname(filename)].each do |name|
|
83
83
|
SassC.load_paths << name
|
84
84
|
end
|
85
|
-
|
86
|
-
Dir.mktmpdir do |dir|
|
87
|
-
variables_file_path = File.join(dir, "variables.scss")
|
88
|
-
File.write(variables_file_path, scss_fontheader(stripwordcss))
|
89
85
|
|
90
|
-
|
86
|
+
Dir.mktmpdir do |dir|
|
87
|
+
variables_file_path = File.join(dir, "variables.scss")
|
88
|
+
File.write(variables_file_path,
|
89
|
+
scss_fontheader(stripwordcss))
|
91
90
|
|
92
|
-
|
93
|
-
modified_stylesheet = <<~SCSS
|
94
|
-
@use "variables" as *;
|
95
|
-
#{stylesheet}
|
96
|
-
SCSS
|
97
|
-
require "debug"; binding.b
|
98
|
-
SassC::Engine.new(modified_stylesheet,
|
99
|
-
syntax: :scss, importer: SasscImporter)
|
100
|
-
.render
|
101
|
-
end
|
102
|
-
end
|
91
|
+
SassC.load_paths << dir
|
103
92
|
|
93
|
+
# Modify the stylesheet to use the tempfile with @use
|
94
|
+
modified_stylesheet = <<~SCSS
|
95
|
+
@use "variables" as *;
|
96
|
+
#{stylesheet}
|
97
|
+
SCSS
|
98
|
+
SassC::Engine.new(modified_stylesheet,
|
99
|
+
syntax: :scss, importer: SasscImporter)
|
100
|
+
.render
|
101
|
+
end
|
102
|
+
end
|
104
103
|
|
105
104
|
# stripwordcss if HTML stylesheet, !stripwordcss if DOC stylesheet
|
106
105
|
def generate_css(filename, stripwordcss)
|
data/lib/isodoc/version.rb
CHANGED