1 require 'rdoc/generator/html'
3 module RDoc::Generator::HTML::KILMER
5 FONTS = "Verdana, Arial, Helvetica, sans-serif"
8 body,td,p { font-family: <%= values["fonts"] %>;
12 .attr-rw { font-size: xx-small; color: #444488 }
14 .title-row { background-color: #CCCCFF;
21 font-family: <%= values["fonts"] %>;
24 padding: 10px 3px 10px 3px;
27 .small-title-font { color: black;
28 font-family: <%= values["fonts"] %>;
31 .aqua { color: black }
33 .method-name, .attr-name {
34 font-family: font-family: <%= values["fonts"] %>;
41 .tablesubtitle, .tablesubsubtitle {
45 padding: 5px 0px 5px 3px;
48 background-color: #CCCCFF;
68 text-decoration: none;
70 background-color: white;
76 text-decoration: none;
78 background-color: white;
85 .srcbut { float: right }
90 <title><%= values["title"] %></title>
91 <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>">
92 <link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
93 <script type="text/javascript" language="JavaScript">
95 function popCode(url) {
96 parent.frames.source.location = url
101 <body bgcolor="white">
103 <%= template_include %> <!-- banner header -->
105 <% if values["diagram"] then %>
106 <table width="100%"><tr><td align="center">
107 <%= values["diagram"] %>
111 <% if values["description"] then %>
112 <div class="description"><%= values["description"] %></div>
115 <% if values["requires"] then %>
116 <table cellpadding="5" width="100%">
117 <tr><td class="tablesubtitle">Required files</td></tr>
119 <div class="name-list">
120 <% values["requires"].each do |requires| %>
121 <%= href requires["aref"], requires["name"] %>
122 <% end %><%# values["requires"] %>
126 <% if values["methods"] then %>
127 <table cellpadding="5" width="100%">
128 <tr><td class="tablesubtitle">Methods</td></tr>
130 <div class="name-list">
131 <% values["methods"].each do |methods| %>
132 <%= href methods["aref"], methods["name"] %>,
133 <% end %><%# values["methods"] %>
138 <% values["sections"].each do |sections| %>
140 <% if sections["sectitle"] then %>
141 <h2 class="section-title"><a name="<%= sections["secsequence"] %>"><%= sections["sectitle"] %></a></h2>
142 <% if sections["seccomment"] then %>
143 <div class="section-comment">
144 <%= sections["seccomment"] %>
149 <% if sections["attributes"] then %>
150 <table cellpadding="5" width="100%">
151 <tr><td class="tablesubtitle">Attributes</td></tr>
153 <table cellspacing="5">
154 <% sections["attributes"].each do |attributes| %>
156 <% if attributes["rw"] then %>
157 <td align="center" class="attr-rw"> [<%= attributes["rw"] %>] </td>
159 <% unless attributes["rw"] then %>
162 <td class="attr-name"><%= attributes["name"] %></td>
163 <td><%= attributes["a_desc"] %></td>
165 <% end %><%# sections["attributes"] %>
169 <% if sections["classlist"] then %>
170 <table cellpadding="5" width="100%">
171 <tr><td class="tablesubtitle">Classes and Modules</td></tr>
173 <%= sections["classlist"] %><br />
176 <%= template_include %> <!-- method descriptions -->
178 <% end %><%# values["sections"] %>
186 <tr class="title-row">
187 <td><table width="100%"><tr>
188 <td class="big-title-font" colspan="2"><font size="-3"><b>File</b><br /></font><%= values["short_name"] %></td>
189 <td align="right"><table cellspacing="0" cellpadding="2">
191 <td class="small-title-font">Path:</td>
192 <td class="small-title-font"><%= values["full_path"] %>
193 <% if values["cvsurl"] then %>
194 (<a href="<%= values["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
199 <td class="small-title-font">Modified:</td>
200 <td class="small-title-font"><%= values["dtm_modified"] %></td>
203 </td></tr></table></td>
209 <table width="100%" border="0" cellspacing="0">
210 <tr class="title-row">
211 <td class="big-title-font">
212 <font size="-3"><b><%= values["classmod"] %></b><br /></font><%= values["full_name"] %>
215 <table cellspacing="0" cellpadding="2">
217 <td class="small-title-font">In:</td>
218 <td class="small-title-font">
219 <% values["infiles"].each do |infiles| %>
220 <%= href infiles["full_path_url"], infiles["full_path"] %>
221 <% if infiles["cvsurl"] then %>
222 (<a href="<%= infiles["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
224 <% end %><%# values["infiles"] %>
227 <% if values["parent"] then %>
229 <td class="small-title-font">Parent:</td>
230 <td class="small-title-font">
231 <% if values["par_url"] then %>
232 <a href="<%= values["par_url"] %>" class="cyan">
234 <%= values["parent"] %>
235 <% if values["par_url"] then %>
248 <% if values["includes"] then %>
249 <div class="tablesubsubtitle">Included modules</div><br />
250 <div class="name-list">
251 <% values["includes"].each do |includes| %>
252 <span class="method-name"><%= href includes["aref"], includes["name"] %></span>
253 <% end %><%# values["includes"] %>
257 <% if values["method_list"] then %>
258 <% values["method_list"].each do |method_list| $stderr.puts({ :method_list => method_list }.inspect) %>
259 <% if values["methods"] then %>
260 <table cellpadding=5 width="100%">
261 <tr><td class="tablesubtitle"><%= values["type"] %> <%= values["category"] %> methods</td></tr>
263 <% values["methods"].each do |methods| $stderr.puts({ :methods => methods }.inspect) %>
264 <table width="100%" cellspacing="0" cellpadding="5" border="0">
265 <tr><td class="methodtitle">
266 <a name="<%= values["aref"] %>">
267 <% if values["callseq"] then %>
268 <b><%= values["callseq"] %></b>
270 <% unless values["callseq"] then %>
271 <b><%= values["name"] %></b><%= values["params"] %>
273 <% if values["codeurl"] then %>
274 <a href="<%= values["codeurl"] %>" target="source" class="srclink">src</a>
278 <% if values["m_desc"] then %>
279 <div class="description">
280 <%= values["m_desc"] %>
283 <% if values["aka"] then %>
285 This method is also aliased as
286 <% values["aka"].each do |aka| $stderr.puts({ :aka => aka }.inspect) %>
287 <a href="<%= values["aref"] %>"><%= values["name"] %></a>
288 <% end %><%# values["aka"] %>
291 <% if values["sourcecode"] then %>
293 <%= values["sourcecode"] %>
296 <% end %><%# values["methods"] %>
298 <% end %><%# values["method_list"] %>
304 <head><title><%= values["title"] %></title>
305 <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>">
306 <style type="text/css">
307 .ruby-comment { color: green; font-style: italic }
308 .ruby-constant { color: #4433aa; font-weight: bold; }
309 .ruby-identifier { color: #222222; }
310 .ruby-ivar { color: #2233dd; }
311 .ruby-keyword { color: #3333FF; font-weight: bold }
312 .ruby-node { color: #777777; }
313 .ruby-operator { color: #111111; }
314 .ruby-regexp { color: #662222; }
315 .ruby-value { color: #662222; font-style: italic }
316 .kw { color: #3333FF; font-weight: bold }
317 .cmt { color: green; font-style: italic }
318 .str { color: #662222; font-style: italic }
319 .re { color: #662222; }
322 <body bgcolor="white">
323 <pre><%= values["code"] %></pre>
329 <%= template_include %>
335 <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>">
339 background-color: #ddddff;
340 font-family: #{FONTS};
361 <base target="docwin">
364 <div class="banner"><%= values["list_title"] %></div>
365 <% values["entries"].each do |entries| %>
366 <a href="<%= entries["href"] %>"><%= entries["name"] %></a><br />
367 <% end %><%# values["entries"] %>
371 CLASS_INDEX = FILE_INDEX
372 METHOD_INDEX = FILE_INDEX
377 <title><%= values["title"] %></title>
378 <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>">
381 <frameset cols="20%,*">
382 <frameset rows="15%,35%,50%">
383 <frame src="fr_file_index.html" title="Files" name="Files">
384 <frame src="fr_class_index.html" name="Classes">
385 <frame src="fr_method_index.html" name="Methods">
387 <% if values["inline_source"] then %>
388 <frame src="<%= values["initial_page"] %>" name="docwin">
390 <% unless values["inline_source"] then %>
391 <frameset rows="80%,20%">
392 <frame src="<%= values["initial_page"] %>" name="docwin">
393 <frame src="blank.html" name="source">
397 <body bgcolor="white">
398 Click <a href="html/index.html">here</a> for a non-frames
399 version of this page.
407 # A blank page to use as a target
409 <html><body bgcolor="white"></body></html>
412 def write_extra_pages
413 template = TemplatePage.new(BLANK)
414 File.open("blank.html", "w") { |f| template.write_html_on(f, {}) }