Permalink
Browse files

Fixed doc template to allow separate building of the documentation of…

… each section. Usage: rake doc SECTION=lang.
  • Loading branch information...
1 parent ea9f797 commit 63f96ea463518e0d2e2d5e689a0a748466dfdd0d @tobie tobie committed Aug 22, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 templates/html/namespace.erb
View
@@ -85,7 +85,7 @@ end
namespace :doc do
desc "Builds the documentation."
task :build => [:require] do
- PrototypeHelper.build_doc_for('prototype.js')
+ PrototypeHelper.build_doc_for(ENV['SECTION'] ? "#{ENV['SECTION']}.js" : 'prototype.js')
end
task :require do
@@ -93,7 +93,7 @@
<% end %>
</ul>
- <% unless @doc_instance.mixins.empty? %>
+ <% unless @doc_instance.mixins.compact.empty? %>
<% d.mixins.each do |mixin| %>
<h4 class="inherited">Inherited from <%= auto_link(mixin) %></h4>
<ul class="method-list">

0 comments on commit 63f96ea

Please sign in to comment.