Permalink
Browse files

Tag 0.2.1

git-svn-id: http://soen.ca/svn/projects/ruby/yard/tags/0.2.1@801 a99b2113-df67-db11-8bcc-000c76553aea
  • Loading branch information...
loren
loren committed Feb 24, 2008
1 parent aac637c commit 2b8a715f61201f6bf2a6033a26137d41bc677409
Showing with 183 additions and 14,393 deletions.
  1. +27 −5 bin/yardoc
  2. +0 −356 doc/Logger.html
  3. +0 −1,114 doc/RubyLex.html
  4. +0 −371 doc/RubyLex_BufferedReader.html
  5. +0 −70 doc/RubyToken_TkError.html
  6. +0 −152 doc/RubyToken_TkId.html
  7. +0 −83 doc/RubyToken_TkKW.html
  8. +0 −146 doc/RubyToken_TkNode.html
  9. +0 −164 doc/RubyToken_TkOPASGN.html
  10. +0 −98 doc/RubyToken_TkOp.html
  11. +0 −152 doc/RubyToken_TkUnknownChar.html
  12. +0 −76 doc/RubyToken_TkVal.html
  13. +0 −378 doc/RubyToken_Token.html
  14. +0 −315 doc/TestCodeObject.html
  15. +0 −76 doc/TestNamespace.html
  16. +0 −105 doc/YARD_AttributeHandler.html
  17. +0 −88 doc/YARD_AuthorTag.html
  18. +0 −329 doc/YARD_BaseTag.html
  19. +0 −341 doc/YARD_BaseTypeTag.html
  20. +0 −105 doc/YARD_ClassHandler.html
  21. +0 −194 doc/YARD_ClassObject.html
  22. +0 −110 doc/YARD_ClassVariableHandler.html
  23. +0 −95 doc/YARD_ClassVariableObject.html
  24. +0 −1,493 doc/YARD_CodeObject.html
  25. +0 −353 doc/YARD_CodeObjectHandler.html
  26. +0 −202 doc/YARD_CodeObjectWithMethods.html
  27. +0 −110 doc/YARD_ConstantHandler.html
  28. +0 −95 doc/YARD_ConstantObject.html
  29. +0 −88 doc/YARD_DeprecatedTag.html
  30. +0 −105 doc/YARD_ExceptionHandler.html
  31. +0 −180 doc/YARD_Formatter.html
  32. +0 −105 doc/YARD_MethodHandler.html
  33. +0 −120 doc/YARD_MethodObject.html
  34. +0 −105 doc/YARD_MixinHandler.html
  35. +0 −105 doc/YARD_ModuleHandler.html
  36. +0 −109 doc/YARD_ModuleObject.html
  37. +0 −219 doc/YARD_NameStruct.html
  38. +0 −467 doc/YARD_Namespace.html
  39. +0 −270 doc/YARD_ParamTag.html
  40. +0 −62 doc/YARD_QuickDoc.html
  41. +0 −140 doc/YARD_ReturnTag.html
  42. +0 −1,189 doc/YARD_RubyLex.html
  43. +0 −396 doc/YARD_RubyLex_BufferedReader.html
  44. +0 −73 doc/YARD_RubyToken_TkError.html
  45. +0 −166 doc/YARD_RubyToken_TkId.html
  46. +0 −87 doc/YARD_RubyToken_TkKW.html
  47. +0 −154 doc/YARD_RubyToken_TkNode.html
  48. +0 −179 doc/YARD_RubyToken_TkOPASGN.html
  49. +0 −102 doc/YARD_RubyToken_TkOp.html
  50. +0 −166 doc/YARD_RubyToken_TkUnknownChar.html
  51. +0 −85 doc/YARD_RubyToken_TkVal.html
  52. +0 −407 doc/YARD_RubyToken_Token.html
  53. +0 −329 doc/YARD_SourceParser.html
  54. +0 −294 doc/YARD_Statement.html
  55. +0 −122 doc/YARD_StatementList.html
  56. +0 −761 doc/YARD_Tag.html
  57. +0 −76 doc/YARD_TokenList.html
  58. +0 −105 doc/YARD_VisibilityHandler.html
  59. +0 −105 doc/YARD_YieldHandler.html
  60. +0 −54 doc/all-classes.html
  61. +0 −253 doc/all-methods.html
  62. +0 −15 doc/index.html
  63. +12 −5 lib/code_object.rb
  64. +4 −0 lib/formatter.rb
  65. +1 −1 lib/handlers/constant_handler.rb
  66. +1 −0 lib/handlers/mixin_handler.rb
  67. +0 −13 lib/ruby_lex.rb
  68. +4 −1 lib/source_parser.rb
  69. +1 −1 lib/yard.rb
  70. +7 −3 templates/default/html/class.erb
  71. +126 −0 templates/default/html/module.erb
@@ -18,20 +18,41 @@ ac.puts <<-eof
<body>
<h3>All Classes</h3>
eof
am = File.open("doc/all-modules.html", "w")
am.puts <<-eof
<html>
<head>
<base target="main" />
</head>
<body>
<h3>All Modules</h3>
eof
meths = []
Namespace.all.sort.each do |path|
object = Namespace.at(path)
if object.is_a?(MethodObject) && object.visibility == :public
if object.is_a?(MethodObject) && (object.visibility == :protected || object.visibility == :public)
meths << [object.name, object]
end

next unless object.is_a? ClassObject
ac.puts "<a href='" + path.gsub("::","_") + ".html'>" + path + "</a><br />"
indexfile = nil

case object
when ClassObject
indexfile = ac
when ModuleObject
indexfile = am
else
next
end

indexfile.puts "<a href='" + path.gsub("::","_") + ".html'>" + path + "</a><br />"
puts "Generating " + (docfile = "doc/#{path.gsub('::','_')}.html") + "..."
File.open(docfile, "w") {|f| f.write(object.to_s) }
end
ac.puts "</body></html>"
ac.close
am.puts "</body></html>"
am.close

File.open("doc/all-methods.html", "w") do |f|
f.puts <<-eof
@@ -41,7 +62,7 @@ File.open("doc/all-methods.html", "w") do |f|
</head>
<body>
<h3>All Methods</h3>
eof
eof
meths.sort {|a,b| a.first <=> b.first }.each do |name, object|
f.puts "<a href='" + object.parent.path.gsub("::", "_") + ".html##{object.scope}_method-#{name}'>#{name}</a><br />"
end
@@ -63,8 +84,9 @@ File.open("doc/index.html", "w") do |f|
<title>Ruby Classes</title>
</head>
<frameset cols="250,*">
<frameset rows="*,40%">
<frameset rows="40%,40%,20%">
<frame src="all-classes.html">
<frame src="all-modules.html">
<frame src="all-methods.html">
</frameset>
<frame name="main" src="#{main_page}">
Oops, something went wrong.

0 comments on commit 2b8a715

Please sign in to comment.