minor: reorganized yard templates

This commit is contained in:
Kyle Banker 2010-02-01 20:25:18 -05:00
parent a8a5b585c9
commit 4080e45d7f
4 changed files with 1 additions and 13 deletions

View File

@ -99,7 +99,7 @@ task :ydoc do
require File.join(File.dirname(__FILE__), 'lib', 'mongo') require File.join(File.dirname(__FILE__), 'lib', 'mongo')
out = File.join('ydoc', Mongo::VERSION) out = File.join('ydoc', Mongo::VERSION)
FileUtils.rm_rf('ydoc') FileUtils.rm_rf('ydoc')
system "yardoc lib/**/*.rb lib/mongo/**/*.rb -e yard_ext.rb -p templates -o #{out} --title MongoRuby-#{Mongo::VERSION}" system "yardoc lib/**/*.rb lib/mongo/**/*.rb -e docs/yard_ext.rb -p docs/templates -o #{out} --title MongoRuby-#{Mongo::VERSION}"
end end
desc "Publish documentation to mongo.rubyforge.org" desc "Publish documentation to mongo.rubyforge.org"

View File

@ -1,12 +0,0 @@
<% if object.has_tag?(:see) %>
<h3>See Also:</h3>
<ul class="see">
<% for tag in object.tags(:see) %>
<% if tag.name =~ /^http/ %>
<li><%= linkify(tag.name, tag.text || tag.name) %></li>
<% else %>
<li><%= tag.text %></li>
<% end %>
<% end %>
</ul>
<% end %>