diff --git a/.gitignore b/.gitignore index 06cf653..d40e662 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ cache +*.epub +*.mobi \ No newline at end of file diff --git a/app.rb b/app.rb index 254aced..28806c7 100644 --- a/app.rb +++ b/app.rb @@ -6,5 +6,5 @@ require 'convert' content, toc = Fetch.run -File.write('out.html', content) +File.write('cache/out.html', content) Convert.run toc \ No newline at end of file diff --git a/header.html b/header.html index 12dd628..7cfc283 100644 --- a/header.html +++ b/header.html @@ -3,5 +3,6 @@ + diff --git a/lib/convert.rb b/lib/convert.rb index d68c0c5..8a1676a 100644 --- a/lib/convert.rb +++ b/lib/convert.rb @@ -14,10 +14,10 @@ def self.run toc identifier 'https://github.com/bliker/vala-tutorial-book', :scheme => 'URL' uid 'https://github.com/bliker/vala-tutorial-book' - files ['out.html'] + files ['cache/out.html', 'css/css/base.css'] nav toc end - epub.save('sample.epub') + epub.save('Vala Tutorial.epub') end def self.parse_toc doc