lib/kitabu/exporter/html.rb in kitabu-2.0.3 vs lib/kitabu/exporter/html.rb in kitabu-2.0.4
- old
+ new
@@ -11,10 +11,11 @@
# Parse all files and save the parsed content
# to <tt>output/book_name.html</tt>.
#
def export
copy_images!
+ copy_fonts!
export_stylesheets!
File.open(root_dir.join("output/#{name}.html"), "w") do |file|
file << parse_layout(content)
end
@@ -95,9 +96,15 @@
# Copy images
#
def copy_images!
copy_directory("images", "output/images")
+ end
+
+ # Copy font files
+ #
+ def copy_fonts!
+ copy_directory("fonts", "output/fonts")
end
# Export all root stylesheets.
#
def export_stylesheets!