diff options
author | Xavier Noria <fxn@hashref.com> | 2011-12-24 17:26:18 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-12-24 17:33:18 -0800 |
commit | 69cc645c70bdbd4e0a43f176a66197d6b07d1dd7 (patch) | |
tree | 7d6f5d62a6230f600eca5cb1dd7226aac1047995 /railties/guides/source/kindle/toc.ncx.erb | |
parent | bea3524e3f5a56e4dc87ae240a2c58301e73a128 (diff) | |
download | rails-69cc645c70bdbd4e0a43f176a66197d6b07d1dd7.tar.gz rails-69cc645c70bdbd4e0a43f176a66197d6b07d1dd7.tar.bz2 rails-69cc645c70bdbd4e0a43f176a66197d6b07d1dd7.zip |
(draft) guides for the Kindle and Kindle apps [Mip Earson & Xavier Noria]
Diffstat (limited to 'railties/guides/source/kindle/toc.ncx.erb')
-rw-r--r-- | railties/guides/source/kindle/toc.ncx.erb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/railties/guides/source/kindle/toc.ncx.erb b/railties/guides/source/kindle/toc.ncx.erb new file mode 100644 index 0000000000..2c6d8e3bdf --- /dev/null +++ b/railties/guides/source/kindle/toc.ncx.erb @@ -0,0 +1,64 @@ +<?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> |