From f6b65ba547b32b5f9c8a2bf97edae5528e87d996 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Thu, 28 Jan 2010 18:45:57 -0500 Subject: [PATCH] Added custom @see YARD template --- Rakefile | 2 +- templates/default/tags/html/see.erb | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 templates/default/tags/html/see.erb diff --git a/Rakefile b/Rakefile index 1390acf..2a5eac5 100644 --- a/Rakefile +++ b/Rakefile @@ -99,7 +99,7 @@ task :ydoc do require File.join(File.dirname(__FILE__), 'lib', 'mongo') out = File.join('ydoc', Mongo::VERSION) FileUtils.rm_rf('ydoc') - system "yardoc lib/**/*.rb lib/mongo/**/*.rb -o #{out} --title MongoRuby-#{Mongo::VERSION}" + system "yardoc lib/**/*.rb lib/mongo/**/*.rb -p templates -o #{out} --title MongoRuby-#{Mongo::VERSION}" end desc "Publish documentation to mongo.rubyforge.org" diff --git a/templates/default/tags/html/see.erb b/templates/default/tags/html/see.erb new file mode 100644 index 0000000..8187de8 --- /dev/null +++ b/templates/default/tags/html/see.erb @@ -0,0 +1,12 @@ +<% if object.has_tag?(:see) %> +

See Also:

+ +<% end %>