Fixed doc template to allow separate building of the documentation of each section. Usage: rake doc SECTION=lang.
This commit is contained in:
parent
ea9f79728a
commit
63f96ea463
2
Rakefile
2
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
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue