1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="RailsGuides">
<metadata xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<dc:identifier id="RailsGuides" opf:scheme="uuid"><%= @uuid %></dc:identifier>
<dc:title>Ruby on Rails Guides (<%= @version || "main@#{@edge[0, 7]}" %>)</dc:title>
<dc:language>en</dc:language>
<dc:creator>Ruby on Rails</dc:creator>
<dc:publisher>Ruby on Rails</dc:publisher>
<dc:subject>Reference</dc:subject>
<dc:date><%= Time.now.strftime('%Y-%m-%dT%H:%M:%SZ') %></dc:date>
<dc:description>These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.</dc:description>
<meta name="cover" content="cover"/>
</metadata>
<manifest>
<!-- HTML content files [mandatory] -->
<% documents_flat.each do |document| %>
<item id="<%= document['url'] %>" media-type="application/xhtml+xml" href="<%= document['url'] %>" />
<% end %>
<% %w{toc.html welcome.html copyright.html}.each do |url| %>
<item id="<%= url %>" media-type="application/xhtml+xml" href="<%= url %>" />
<% end %>
<item id="toc" media-type="application/x-dtbncx+xml" href="toc.ncx"/>
<item id="cover" media-type="image/jpeg" href="images/rails_guides_kindle_cover.jpg"/>
<item id="stylesheet" href="stylesheets/epub.css" media-type="text/css"/>
<!-- Images -->
<% all_images.each do |image| %>
<item id="<%= image %>" media-type="image/<%= image.split('.').last %>" href="<%= image %>" />
<% end %>
</manifest>
<spine toc="toc">
<itemref idref="toc.html" />
<itemref idref="welcome.html" />
<itemref idref="copyright.html" />
<% documents_flat.each do |document| %>
<itemref idref="<%= document['url'] %>" />
<% end %>
</spine>
<guide>
<reference type="toc" title="Table of Contents" href="toc.html"></reference>
</guide>
</package>
|