rails/guides/source/epub/rails_guides.opf.erb
Geon George 56e96d9344 Replaces mobi guide with epub for docs because of discontinued support
Removes kindlerb logic

Adds template for epub generator

Renames the kindle dir to /epub

Adds epub module to generator and replaces kindle

Fixes mimetype

Creates basic epub book

Deletes old kindle module

Adds zip package

Updates rubyzip gem name

Removes now unused gepub gem

Adds the required container file for epubs

Fixes media type

Adds new epub generation logic

Removes all buttons from output html

Refactors and generates valid epub files

Removes frontmatter logic used for kindlegen

Filters out epub files in zip

Updates link to kindle doc on sidebar

Fixes rubocop issues

Adds deprecation warning for the old kindle task

Refactors and cleans up epub module

Cleans up epub code

Cleans up private internal method code style

Removes unnecessary imagemagick check
2022-08-05 00:18:20 +05:30

49 lines
2.0 KiB
Plaintext

<?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>