Skip to content

Commit

Permalink
Fixed doc template to allow separate building of the documentation of…
Browse files Browse the repository at this point in the history
… each section. Usage: rake doc SECTION=lang.
  • Loading branch information
tobie committed Aug 22, 2009
1 parent ea9f797 commit 63f96ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/html/namespace.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 63f96ea

Please sign in to comment.