diff --git a/Rakefile b/Rakefile index a97a41a..5b8a3c1 100755 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/templates/html/namespace.erb b/templates/html/namespace.erb index d8af183..f82a033 100644 --- a/templates/html/namespace.erb +++ b/templates/html/namespace.erb @@ -93,7 +93,7 @@ <% end %> - <% unless @doc_instance.mixins.empty? %> + <% unless @doc_instance.mixins.compact.empty? %> <% d.mixins.each do |mixin| %>

Inherited from <%= auto_link(mixin) %>