diff options
author | Rodrigo Martins <rodrigo@rrmartins.com> | 2012-10-17 03:34:10 -0300 |
---|---|---|
committer | Rodrigo Martins <rodrigo@rrmartins.com> | 2012-10-17 03:34:10 -0300 |
commit | f5b9ed4fbc3215a5fce48985ea372ad3f1182252 (patch) | |
tree | 9be24364d5130ebbdaffd262e1fcd1fd6b32b5fc /guides/source/kindle | |
parent | 09682e9e7328b1c1466ae87af08f1785a0b5d7e3 (diff) | |
download | rails-f5b9ed4fbc3215a5fce48985ea372ad3f1182252.tar.gz rails-f5b9ed4fbc3215a5fce48985ea372ad3f1182252.tar.bz2 rails-f5b9ed4fbc3215a5fce48985ea372ad3f1182252.zip |
divided into folder with the language
Diffstat (limited to 'guides/source/kindle')
-rw-r--r-- | guides/source/kindle/KINDLE.md | 26 | ||||
-rw-r--r-- | guides/source/kindle/copyright.html.erb | 1 | ||||
-rw-r--r-- | guides/source/kindle/layout.html.erb | 27 | ||||
-rw-r--r-- | guides/source/kindle/rails_guides.opf.erb | 52 | ||||
-rw-r--r-- | guides/source/kindle/toc.html.erb | 24 | ||||
-rw-r--r-- | guides/source/kindle/toc.ncx.erb | 64 | ||||
-rw-r--r-- | guides/source/kindle/welcome.html.erb | 5 |
7 files changed, 0 insertions, 199 deletions
diff --git a/guides/source/kindle/KINDLE.md b/guides/source/kindle/KINDLE.md deleted file mode 100644 index 08937e053e..0000000000 --- a/guides/source/kindle/KINDLE.md +++ /dev/null @@ -1,26 +0,0 @@ -# Rails Guides on the Kindle - - -## Synopsis - - 1. Obtain `kindlegen` from the link below and put the binary in your path - 2. Run `KINDLE=1 rake generate_guides` to generate the guides and compile the `.mobi` file - 3. Copy `output/kindle/rails_guides.mobi` to your Kindle - -## Resources - - * [Stack Overflow: Kindle Periodical Format](http://stackoverflow.com/questions/5379565/kindle-periodical-format) - * Example Periodical [.ncx](https://gist.github.com/808c971ed087b839d462) and [.opf](https://gist.github.com/d6349aa8488eca2ee6d0) - * [Kindle Publishing Guidelines](http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf) - * [KindleGen & Kindle Previewer](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621) - -## TODO - -### Post release - - * Integrate generated Kindle document into published HTML guides - * Tweak heading styles (most docs use h3/h4/h5, which end up being smaller than the text under it) - * Tweak table styles (smaller text? Many of the tables are unusable on a Kindle in portrait mode) - * Have the HTML/XML TOC 'drill down' into the TOCs of the individual guides - * `.epub` generation. - diff --git a/guides/source/kindle/copyright.html.erb b/guides/source/kindle/copyright.html.erb deleted file mode 100644 index bd51d87383..0000000000 --- a/guides/source/kindle/copyright.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render 'license' %>
\ No newline at end of file diff --git a/guides/source/kindle/layout.html.erb b/guides/source/kindle/layout.html.erb deleted file mode 100644 index f0a286210b..0000000000 --- a/guides/source/kindle/layout.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - -<title><%= yield(:page_title) || 'Ruby on Rails Guides' %></title> - -<link rel="stylesheet" type="text/css" href="stylesheets/kindle.css" /> - -</head> -<body class="guide"> - - <% if content_for? :header_section %> - <%= yield :header_section %> - <div class="pagebreak"> - <% end %> - - <% if content_for? :index_section %> - <%= yield :index_section %> - <div class="pagebreak"> - <% end %> - - <%= yield.html_safe %> -</body> -</html> diff --git a/guides/source/kindle/rails_guides.opf.erb b/guides/source/kindle/rails_guides.opf.erb deleted file mode 100644 index 4e07664fd0..0000000000 --- a/guides/source/kindle/rails_guides.opf.erb +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="RailsGuides"> -<metadata> - <meta name="cover" content="cover" /> - <dc-metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> - - <dc:title>Ruby on Rails Guides (<%= @version %>)</dc:title> - - <dc:language>en-us</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-%d') %></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> - </dc-metadata> - <x-metadata> - <output content-type="application/x-mobipocket-subscription-magazine" encoding="utf-8"/> - </x-metadata> -</metadata> - -<manifest> - <!-- HTML content files [mandatory] --> - <% documents_flat.each do |document| %> - <item id="<%= document['url'] %>" media-type="text/html" href="<%= document['url'] %>" /> - <% end %> - - <% %w{toc.html credits.html welcome.html copyright.html}.each do |url| %> - <item id="<%= url %>" media-type="text/html" 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"/> -</manifest> - -<spine toc="toc"> - <itemref idref="toc.html" /> - <itemref idref="welcome.html" /> - <itemref idref="credits.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> diff --git a/guides/source/kindle/toc.html.erb b/guides/source/kindle/toc.html.erb deleted file mode 100644 index e013797dee..0000000000 --- a/guides/source/kindle/toc.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -<% content_for :page_title do %> -Ruby on Rails Guides -<% end %> - -<h1>Table of Contents</h1> -<div id="toc"> - <ul><li><a href="welcome.html">Welcome</a></li></ul> -<% documents_by_section.each_with_index do |section, i| %> - <h3><%= "#{i + 1}." %> <%= section['name'] %></h3> - <ul> - <% section['documents'].each do |document| %> - <li> - <a href="<%= document['url'] %>"><%= document['name'] %></a> - <% if document['work_in_progress']%>(WIP)<% end %> - </li> - <% end %> - </ul> -<% end %> -<hr /> -<ul> - <li><a href="credits.html">Credits</a></li> - <li><a href="copyright.html">Copyright & License</a></li> -<ul> -</div> diff --git a/guides/source/kindle/toc.ncx.erb b/guides/source/kindle/toc.ncx.erb deleted file mode 100644 index 2c6d8e3bdf..0000000000 --- a/guides/source/kindle/toc.ncx.erb +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" - "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> - -<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en-US"> -<head> - <meta name="dtb:uid" content="RailsGuides"/> - <meta name="dtb:depth" content="2"/> - <meta name="dtb:totalPageCount" content="0"/> - <meta name="dtb:maxPageNumber" content="0"/> -</head> -<docTitle><text>Ruby on Rails Guides</text></docTitle> -<docAuthor><text>docrails</text></docAuthor> -<navMap> - <navPoint playOrder="0" class="periodical" id="periodical"> - <navLabel> - <text>Table of Contents</text> - </navLabel> - <content src="toc.html"/> - - <navPoint class="section" id="welcome" playOrder="1"> - <navLabel> - <text>Introduction</text> - </navLabel> - <content src="welcome.html"/> - - <navPoint class="article" id="welcome" playOrder="2"> - <navLabel> - <text>Welcome</text> - </navLabel> - <content src="welcome.html"/> - </navPoint> - <navPoint class="article" id="credits" playOrder="3"> - <navLabel><text>Credits</text></navLabel> - <content src="credits.html"> - </navPoint> - <navPoint class="article" id="copyright" playOrder="4"> - <navLabel><text>Copyright & License</text></navLabel> - <content src="copyright.html"> - </navPoint> - </navPoint> - - <% play_order = 4 %> - <% documents_by_section.each_with_index do |section, section_no| %> - <navPoint class="section" id="chapter_<%= section_no + 1 %>" playOrder="<% play_order +=1 %>"> - <navLabel> - <text><%= section['name'] %></text> - </navLabel> - <content src="<%=section['documents'].first['url'] %>"/> - - <% section['documents'].each_with_index do |document, document_no| %> - <navPoint class="article" id="_<%=section_no+1%>.<%=document_no+1%>" playOrder="<%=play_order +=1 %>"> - <navLabel> - <text><%= document['name'] %></text> - </navLabel> - <content src="<%=document['url'] %>"/> - </navPoint> - <% end %> - </navPoint> - <% end %> - - </navPoint> -</navMap> -</ncx> diff --git a/guides/source/kindle/welcome.html.erb b/guides/source/kindle/welcome.html.erb deleted file mode 100644 index 610a71570f..0000000000 --- a/guides/source/kindle/welcome.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<%= render 'welcome' %> - -<h3>Kindle Edition</h3> - -The Kindle Edition of the Rails Guides should be considered a work in progress. Feedback is really welcome. Please see the "Feedback" section at the end of each guide for instructions. |