module

RDoc::Generator::HTML::ONE_PAGE_HTML

v1_9_1_378 - Show latest stable

No documentation available for this module.

Included modules

  • RDoc::Generator::HTML::Common

Constants

CONTENTS_XML = <<-EOF\n<% if defined? classes and classes["description"] then %>\n<%= classes["description"] %>\n<% end %>\n\n<% if defined? files and files["requires"] then %>\n<h4>Requires:</h4>\n<ul>\n<% files["requires"].each do |requires| %>\n<% if requires["aref"] then %>\n<li><a href="<%= requires["aref"] %>"><%= requires["name"] %></a></li>\n<% end %>\n<% unless requires["aref"] then %>\n<li><%= requires["name"] %></li>\n<% end %>\n<% end %><%# files["requires"] %>\n</ul>\n<% end %>\n\n<% if defined? classes and classes["includes"] then %>\n<h4>Includes</h4>\n<ul>\n<% classes["includes"].each do |includes| %>\n<% if includes["aref"] then %>\n<li><a href="<%= includes["aref"] %>"><%= includes["name"] %></a></li>\n<% end %>\n<% unless includes["aref"] then %>\n<li><%= includes["name"] %></li>\n<% end %>\n<% end %><%# classes["includes"] %>\n</ul>\n<% end %>\n\n<% if defined? classes and classes["sections"] then %>\n<% classes["sections"].each do |sections| %>\n<% if sections["attributes"] then %>\n<h4>Attributes</h4>\n<table>\n<% sections["attributes"].each do |attributes| %>\n<tr><td><%= attributes["name"] %></td><td><%= attributes["rw"] %></td><td><%= attributes["a_desc"] %></td></tr>\n<% end %><%# sections["attributes"] %>\n</table>\n<% end %>\n\n<% if sections["method_list"] then %>\n<h3>Methods</h3>\n<% sections["method_list"].each do |method_list| %>\n<% if method_list["methods"] then %>\n<% method_list["methods"].each do |methods| %>\n<h4><%= methods["type"] %> <%= methods["category"] %> method: \n<% if methods["callseq"] then %>\n<a name="<%= methods["aref"] %>"><%= methods["callseq"] %></a>\n<% end %>\n<% unless methods["callseq"] then %>\n<a name="<%= methods["aref"] %>"><%= methods["name"] %><%= methods["params"] %></a></h4>\n<% end %>\n\n<% if methods["m_desc"] then %>\n<%= methods["m_desc"] %>\n<% end %>\n\n<% if methods["sourcecode"] then %>\n<blockquote><pre>\n<%= methods["sourcecode"] %>\n</pre></blockquote>\n<% end %>\n<% end %><%# method_list["methods"] %>\n<% end %>\n<% end %><%# sections["method_list"] %>\n<% end %>\n<% end %><%# classes["sections"] %>\n<% end %>\nEOF

ONE_PAGE = XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{\n<head>\n<title><%= values["title"] %></title>\n<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />\n</head>\n<body>\n<% values["files"].each do |files| %>\n<h2>File: <a name="<%= files["href"] %>"><%= files["short_name"] %></a></h2>\n<table>\n<tr><td>Path:</td><td><%= files["full_path"] %></td></tr>\n<tr><td>Modified:</td><td><%= files["dtm_modified"] %></td></tr>\n</table>\n} + CONTENTS_XML + %{\n<% end %><%# values["files"] %>\n\n<% if values["classes"] then %>\n<h2>Classes</h2>\n<% values["classes"].each do |classes| %>\n<% if classes["parent"] then %>\n<h3><%= classes["classmod"] %> <a name="<%= classes["href"] %>"><%= classes["full_name"] %></a> &lt; <%= href classes["par_url"], classes["parent"] %></h3>\n<% end %>\n<% unless classes["parent"] then %>\n<h3><%= classes["classmod"] %> <%= classes["full_name"] %></h3>\n<% end %>\n\n<% if classes["infiles"] then %>\n(in files\n<% classes["infiles"].each do |infiles| %>\n<%= href infiles["full_path_url"], infiles["full_path"] %>\n<% end %><%# classes["infiles"] %>\n)\n<% end %>\n} + CONTENTS_XML + %{\n<% end %><%# values["classes"] %>\n<% end %>\n</body>\n</html>\n}

Files

  • lib/rdoc/generator/html/one_page_html.rb