Sha256: 2a1ecbdc9687e70da692abd76178a16de2b6fa58cad5fe33ff7a28e92dab312b
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 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'} ] end epub.save('sample.epub') puts "complete! => 'sample.epub'"
Version data entries
5 entries across 5 versions & 2 rubygems