From 63f96ea463518e0d2e2d5e689a0a748466dfdd0d Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Sat, 22 Aug 2009 03:56:41 +0200 Subject: [PATCH] Fixed doc template to allow separate building of the documentation of each section. Usage: rake doc SECTION=lang. --- Rakefile | 2 +- templates/html/namespace.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) %>