Sha256: 358dbc764aea14faa3599b22c2162585177950e1add38354c3969b5dba750009
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'eeepub' dir = File.join(File.dirname(__FILE__), 'files') epub = EeePub.make do title 'sample' creator 'jugyo' publisher 'jugyo.org' date '2010-05-06' uid 'BookId' identifier 'http://example.com/book/foo', :scheme => 'URL', :id => 'BookId' files [File.join(dir, 'foo.html'), File.join(dir, 'bar.html')] nav [ {:label => '1. foo', :content => 'foo.html', :nav => [ {:label => '1.1 foo-1', :content => 'foo.html#foo-1'} ]}, {:label => '1. bar', :content => 'bar.html'} ] cover_page File.join(dir, 'cover.jpg') toc_page File.join(dir, 'toc.html') end epub.save('sample.epub') puts "complete! => 'sample.epub'"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eeepub-with-cover-support-0.8.8 | examples/simple_epub.rb |
eeepub-with-cover-support-0.8.7 | examples/simple_epub.rb |
eeepub-with-cover-support-0.8.6 | examples/simple_epub.rb |