guides 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guides/generator.rb +11 -1
- data/lib/guides/templates/source/layout.html.erb +3 -1
- data/lib/guides/version.rb +1 -1
- metadata +1 -1
data/lib/guides/generator.rb
CHANGED
@@ -219,7 +219,17 @@ module Guides
|
|
219
219
|
index << view.content_tag(:li, link.html_safe + children_ul.html_safe)
|
220
220
|
end
|
221
221
|
|
222
|
-
|
222
|
+
index_section = <<-INDEX
|
223
|
+
<div id="subCol">
|
224
|
+
<h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
|
225
|
+
<ol class="chapters">
|
226
|
+
#{index}
|
227
|
+
</ol>
|
228
|
+
</div>
|
229
|
+
INDEX
|
230
|
+
|
231
|
+
view.content_for(:index_items) { index.html_safe }
|
232
|
+
view.content_for(:index_section) { index_section.html_safe }
|
223
233
|
|
224
234
|
i.result
|
225
235
|
end
|
@@ -56,7 +56,9 @@
|
|
56
56
|
<% end %>
|
57
57
|
<div id="subCol">
|
58
58
|
<h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
|
59
|
-
<ol class="chapters"
|
59
|
+
<ol class="chapters">
|
60
|
+
<%= yield(:index_items) %>
|
61
|
+
</ol>
|
60
62
|
</div>
|
61
63
|
</div>
|
62
64
|
</div>
|
data/lib/guides/version.rb
CHANGED