Fixed doc template to allow separate building of the documentation of each section. Usage: rake doc SECTION=lang.

This commit is contained in:
Tobie Langel 2009-08-22 03:56:41 +02:00
parent ea9f79728a
commit 63f96ea463
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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">