lib/softcover/commands/server.rb in softcover-0.7.11 vs lib/softcover/commands/server.rb in softcover-0.8.0

- old
+ new

@@ -8,11 +8,11 @@ # Listens for changes to the book's source files. def listen_for_changes return if defined?(@no_listener) && @no_listener server_pid = Process.pid - filter_regex = /(\.md|\.tex|custom\.sty|Book\.txt|book\.yml)$/ + filter_regex = /(\.md|\.tex|custom\.sty|custom\.css|Book\.txt|book\.yml)$/ @listener = Listen.to('.') @listener.filter(filter_regex) @listener.change do |modified| first_modified = modified.try(:first) @@ -42,10 +42,10 @@ def rebuild(modified=nil) printf modified ? "=> #{File.basename modified} changed, rebuilding... " : 'Building...' t = Time.now builder = Softcover::Builders::Html.new - builder.build(preserve_tex: true) + builder.build puts "Done. (#{(Time.now - t).round(2)}s)" rescue Softcover::BookManifest::NotFound => e puts e.message end