From 759e797c1d677d0695885dc959d6ebaecc538252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 17 Oct 2012 10:19:31 -0300 Subject: Revert "Change with start of translation in internationalization, this time with pt_br." This reverts commit 09682e9e7328b1c1466ae87af08f1785a0b5d7e3. Conflicts: guides/source/en/association_basics.md REASON: Translation work can not be done in the docrails repository --- guides/source/en/kindle/KINDLE.md | 26 ----------- guides/source/en/kindle/copyright.html.erb | 1 - guides/source/en/kindle/layout.html.erb | 27 ------------ guides/source/en/kindle/rails_guides.opf.erb | 52 ---------------------- guides/source/en/kindle/toc.html.erb | 24 ----------- guides/source/en/kindle/toc.ncx.erb | 64 ---------------------------- guides/source/en/kindle/welcome.html.erb | 5 --- 7 files changed, 199 deletions(-) delete mode 100644 guides/source/en/kindle/KINDLE.md delete mode 100644 guides/source/en/kindle/copyright.html.erb delete mode 100644 guides/source/en/kindle/layout.html.erb delete mode 100644 guides/source/en/kindle/rails_guides.opf.erb delete mode 100644 guides/source/en/kindle/toc.html.erb delete mode 100644 guides/source/en/kindle/toc.ncx.erb delete mode 100644 guides/source/en/kindle/welcome.html.erb (limited to 'guides/source/en/kindle') diff --git a/guides/source/en/kindle/KINDLE.md b/guides/source/en/kindle/KINDLE.md deleted file mode 100644 index 08937e053e..0000000000 --- a/guides/source/en/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/en/kindle/copyright.html.erb b/guides/source/en/kindle/copyright.html.erb deleted file mode 100644 index bd51d87383..0000000000 --- a/guides/source/en/kindle/copyright.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render 'license' %> \ No newline at end of file diff --git a/guides/source/en/kindle/layout.html.erb b/guides/source/en/kindle/layout.html.erb deleted file mode 100644 index f0a286210b..0000000000 --- a/guides/source/en/kindle/layout.html.erb +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - -<%= yield(:page_title) || 'Ruby on Rails Guides' %> - - - - - - - <% if content_for? :header_section %> - <%= yield :header_section %> -
- <% end %> - - <% if content_for? :index_section %> - <%= yield :index_section %> -
- <% end %> - - <%= yield.html_safe %> - - diff --git a/guides/source/en/kindle/rails_guides.opf.erb b/guides/source/en/kindle/rails_guides.opf.erb deleted file mode 100644 index 4e07664fd0..0000000000 --- a/guides/source/en/kindle/rails_guides.opf.erb +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - Ruby on Rails Guides (<%= @version %>) - - en-us - Ruby on Rails - Ruby on Rails - Reference - <%= Time.now.strftime('%Y-%m-%d') %> - - These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together. - - - - - - - - - <% documents_flat.each do |document| %> - - <% end %> - - <% %w{toc.html credits.html welcome.html copyright.html}.each do |url| %> - - <% end %> - - - - - - - - - - - - <% documents_flat.each do |document| %> - - <% end %> - - - - - - - diff --git a/guides/source/en/kindle/toc.html.erb b/guides/source/en/kindle/toc.html.erb deleted file mode 100644 index e013797dee..0000000000 --- a/guides/source/en/kindle/toc.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -<% content_for :page_title do %> -Ruby on Rails Guides -<% end %> - -

Table of Contents

-
- -<% documents_by_section.each_with_index do |section, i| %> -

<%= "#{i + 1}." %> <%= section['name'] %>

-
    - <% section['documents'].each do |document| %> -
  • - <%= document['name'] %> - <% if document['work_in_progress']%>(WIP)<% end %> -
  • - <% end %> -
-<% end %> -
-
diff --git a/guides/source/en/kindle/toc.ncx.erb b/guides/source/en/kindle/toc.ncx.erb deleted file mode 100644 index 2c6d8e3bdf..0000000000 --- a/guides/source/en/kindle/toc.ncx.erb +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - -Ruby on Rails Guides -docrails - - - - Table of Contents - - - - - - Introduction - - - - - - Welcome - - - - - Credits - - - - Copyright & License - - - - - <% play_order = 4 %> - <% documents_by_section.each_with_index do |section, section_no| %> - - - <%= section['name'] %> - - - - <% section['documents'].each_with_index do |document, document_no| %> - - - <%= document['name'] %> - - - - <% end %> - - <% end %> - - - - diff --git a/guides/source/en/kindle/welcome.html.erb b/guides/source/en/kindle/welcome.html.erb deleted file mode 100644 index 610a71570f..0000000000 --- a/guides/source/en/kindle/welcome.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<%= render 'welcome' %> - -

Kindle Edition

- -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. -- cgit v1.2.3