aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/kindle/toc.ncx.erb
blob: 24ca6c88c938c70269554a93af021072805b31ea (plain) (blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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 &amp; 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>