lib/bookmaker/generator.rb in bookmaker-0.6.0 vs lib/bookmaker/generator.rb in bookmaker-0.7.0.pre3

- old
+ new

@@ -10,33 +10,37 @@ @uid = Digest::MD5.hexdigest("#{Time.now}--#{rand}") @year = Date.today.year template "config.erb", "_bookmaker.yml" end def copy_templates - copy_file "latex.erb", "templates/pdf/layout.erb" - copy_file "dp-logo.png", "images/dp-logo.png" + copy_file "pdf/layout.erb", "_templates/pdf/layout.erb" + copy_file "dp-logo.png", "_images/dp-logo.png" + + copy_file "html/layout.erb", "_templates/html/layout.erb" + copy_file "html/thanks.erb", "_templates/html/thanks.erb" + copy_file "html/copyright.erb", "_templates/html/copyright.erb" + copy_file "html/user.css", "_templates/html/user.css" + copy_file "html/layout.css", "_templates/html/layout.css" + copy_file "html/syntax.css", "_templates/html/syntax.css" - copy_file "html.erb", "templates/html/layout.erb" - copy_file "user.css", "templates/html/user.css" - copy_file "layout.css", "templates/html/layout.css" - copy_file "syntax.css", "templates/html/syntax.css" + copy_file "epub/back.erb", "_templates/epub/back.html" + copy_file "epub/copyright.erb", "_templates/epub/copyright.erb" + copy_file "epub/cover.erb", "_templates/epub/cover.erb" + copy_file "epub/cover.html", "_templates/epub/cover.html" + copy_file "epub/page.erb", "_templates/epub/page.erb" + copy_file "epub/user.css", "_templates/epub/user.css" - copy_file "back.erb", "templates/epub/back.erb" - copy_file "copyright.erb", "templates/epub/copyright.erb" - copy_file "cover.erb", "templates/epub/cover.erb" - copy_file "epub.erb", "templates/epub/page.erb" - copy_file "epub.css", "templates/epub/user.css" - copy_file "cover.jpg", "images/cover.jpg" - copy_file "rakefile.rb", "Rakefile" - copy_file "extras.tex", "extras/characters.tex" - copy_file "extras.tex", "extras/dedicationls.tex" + copy_file "cover.jpg", "_images/cover.jpg" + copy_file "rakefile.rb", "Rakefile" + copy_file "extras.tex", "_extras/characters.tex" + copy_file "extras.tex", "_extras/dedications.tex" end def copy_sample_text - copy_file "sample.tex" , "text/01_First-Chapter/01-Welcome.tex" + copy_file "sample.tex", "text/01_First-Chapter/01-Welcome.tex" end def create_directories - empty_directory "output" - empty_directory "images" + empty_directory "_output" + empty_directory "_images" end private # Retrieve user's name using finger. # Defaults to <tt>John Doe</tt>. # \ No newline at end of file