Module: RDocF95::Generator::HTML::KILMER
- Defined in:
- lib/rdoc-f95/generator/html/kilmer.rb
Constant Summary collapse
- FONTS =
"Verdana, Arial, Helvetica, sans-serif"- STYLE =
"body,td,p { font-family: <%= values[\"fonts\"] %>;\n color: #000040;\n}\n\n.attr-rw { font-size: xx-small; color: #444488 }\n\n.title-row { background-color: #CCCCFF;\n color: #000010;\n}\n\n.big-title-font {\ncolor: black;\nfont-weight: bold;\nfont-family: <%= values[\"fonts\"] %>;\nfont-size: large;\nheight: 60px;\npadding: 10px 3px 10px 3px;\n}\n\n.small-title-font { color: black;\n font-family: <%= values[\"fonts\"] %>;\n font-size:10; }\n\n.aqua { color: black }\n\n.method-name, .attr-name {\n font-family: font-family: <%= values[\"fonts\"] %>;\n font-weight: bold;\n font-size: small;\n margin-left: 20px;\n color: #000033;\n}\n\n.tablesubtitle, .tablesubsubtitle {\n width: 100%;\n margin-top: 1ex;\n margin-bottom: .5ex;\n padding: 5px 0px 5px 3px;\n font-size: large;\n color: black;\n background-color: #CCCCFF;\n border: thin;\n}\n\n.name-list {\nmargin-left: 5px;\nmargin-bottom: 2ex;\nline-height: 105%;\n}\n\n.description {\nmargin-left: 5px;\nmargin-bottom: 2ex;\nline-height: 105%;\nfont-size: small;\n}\n\n.methodtitle {\nfont-size: small;\nfont-weight: bold;\ntext-decoration: none;\ncolor: #000033;\nbackground-color: white;\n}\n\n.srclink {\nfont-size: small;\nfont-weight: bold;\ntext-decoration: none;\ncolor: #0000DD;\nbackground-color: white;\n}\n\n.paramsig {\n font-size: small;\n}\n\n.srcbut { float: right }\n"- BODY =
"<html><head>\n<title><%= values[\"title\"] %></title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<%= values[\"charset\"] %>\">\n<link rel=\"stylesheet\" href=\"<%= values[\"style_url\"] %>\" type=\"text/css\" media=\"screen\" />\n<script type=\"text/javascript\" language=\"JavaScript\">\n<!--\nfunction popCode(url) {\n parent.frames.source.location = url\n}\n//-->\n</script>\n</head>\n<body bgcolor=\"white\">\n\n<%= template_include %> <!-- banner header -->\n\n<% if values[\"diagram\"] then %>\n<table width=\"100%\"><tr><td align=\"center\">\n<%= values[\"diagram\"] %>\n</td></tr></table>\n<% end %>\n\n<% if values[\"description\"] then %>\n<div class=\"description\"><%= values[\"description\"] %></div>\n<% end %>\n\n<% if values[\"requires\"] then %>\n<table cellpadding=\"5\" width=\"100%\">\n<tr><td class=\"tablesubtitle\">Required files</td></tr>\n</table><br />\n<div class=\"name-list\">\n<% values[\"requires\"].each do |requires| %>\n<%= href requires[\"aref\"], requires[\"name\"] %>\n<% end # values[\"requires\"] %>\n<% end %>\n</div>\n\n<% if values[\"methods\"] then %>\n<table cellpadding=\"5\" width=\"100%\">\n<tr><td class=\"tablesubtitle\">Methods</td></tr>\n</table><br />\n<div class=\"name-list\">\n<% values[\"methods\"].each do |methods| %>\n<%= href methods[\"aref\"], methods[\"name\"] %>,\n<% end # values[\"methods\"] %>\n</div>\n<% end %>\n\n\n<% values[\"sections\"].each do |sections| %>\n <div id=\"section\">\n<% if sections[\"sectitle\"] then %>\n <h2 class=\"section-title\"><a name=\"<%= sections[\"secsequence\"] %>\"><%= sections[\"sectitle\"] %></a></h2>\n<% if sections[\"seccomment\"] then %>\n <div class=\"section-comment\">\n <%= sections[\"seccomment\"] %>\n </div>\n<% end %>\n<% end %>\n\n<% if sections[\"attributes\"] then %>\n<table cellpadding=\"5\" width=\"100%\">\n<tr><td class=\"tablesubtitle\">Attributes</td></tr>\n</table><br />\n<table cellspacing=\"5\">\n<% sections[\"attributes\"].each do |attributes| %>\n <tr valign=\"top\">\n<% if attributes[\"rw\"] then %>\n <td align=\"center\" class=\"attr-rw\"> [<%= attributes[\"rw\"] %>] </td>\n<% end %>\n<% unless attributes[\"rw\"] then %>\n <td></td>\n<% end %>\n <td class=\"attr-name\"><%= attributes[\"name\"] %></td>\n <td><%= attributes[\"a_desc\"] %></td>\n </tr>\n<% end # sections[\"attributes\"] %>\n</table>\n<% end %>\n\n<% if sections[\"classlist\"] then %>\n<table cellpadding=\"5\" width=\"100%\">\n<tr><td class=\"tablesubtitle\">Classes and Modules</td></tr>\n</table><br />\n<%= sections[\"classlist\"] %><br />\n<% end %>\n\n<%= template_include %> <!-- method descriptions -->\n\n<% end # values[\"sections\"] %>\n\n</body>\n</html>\n"- FILE_PAGE =
"<table width=\"100%\">\n <tr class=\"title-row\">\n <td><table width=\"100%\"><tr>\n <td class=\"big-title-font\" colspan=\"2\"><font size=\"-3\"><b>File</b><br /></font><%= values[\"short_name\"] %></td>\n <td align=\"right\"><table cellspacing=\"0\" cellpadding=\"2\">\n <tr>\n <td class=\"small-title-font\">Path:</td>\n <td class=\"small-title-font\"><%= values[\"full_path\"] %>\n<% if values[\"cvsurl\"] then %>\n (<a href=\"<%= values[\"cvsurl\"] %>\"><acronym title=\"Concurrent Versioning System\">CVS</acronym></a>)\n<% end %>\n </td>\n </tr>\n <tr>\n <td class=\"small-title-font\">Modified:</td>\n <td class=\"small-title-font\"><%= values[\"dtm_modified\"] %></td>\n </tr>\n </table>\n </td></tr></table></td>\n</tr>\n</table><br />\n"- CLASS_PAGE =
"<table width=\"100%\" border=\"0\" cellspacing=\"0\">\n <tr class=\"title-row\">\n <td class=\"big-title-font\">\n <font size=\"-3\"><b><%= values[\"classmod\"] %></b><br /></font><%= values[\"full_name\"] %>\n </td>\n <td align=\"right\">\n <table cellspacing=\"0\" cellpadding=\"2\">\n <tr valign=\"top\">\n <td class=\"small-title-font\">In:</td>\n <td class=\"small-title-font\">\n<% values[\"infiles\"].each do |infiles| %>\n<%= href infiles[\"full_path_url\"], infiles[\"full_path\"] %>\n<% if infiles[\"cvsurl\"] then %>\n (<a href=\"<%= infiles[\"cvsurl\"] %>\"><acronym title=\"Concurrent Versioning System\">CVS</acronym></a>)\n<% end %>\n<% end # values[\"infiles\"] %>\n </td>\n </tr>\n<% if values[\"parent\"] then %>\n <tr>\n <td class=\"small-title-font\">Parent:</td>\n <td class=\"small-title-font\">\n<% if values[\"par_url\"] then %>\n <a href=\"<%= values[\"par_url\"] %>\" class=\"cyan\">\n<% end %>\n<%= values[\"parent\"] %>\n<% if values[\"par_url\"] then %>\n </a>\n<% end %>\n </td>\n </tr>\n<% end %>\n </table>\n</td>\n</tr>\n</table><br />\n"- METHOD_LIST =
"<% if values[\"includes\"] then %>\n<div class=\"tablesubsubtitle\">Included modules</div><br />\n<div class=\"name-list\">\n<% values[\"includes\"].each do |includes| %>\n <span class=\"method-name\"><%= href includes[\"aref\"], includes[\"name\"] %></span>\n<% end # values[\"includes\"] %>\n</div>\n<% end %>\n\n<% if values[\"method_list\"] then %>\n<% values[\"method_list\"].each do |method_list| $stderr.puts({ :method_list => method_list }.inspect) %>\n<% if values[\"methods\"] then %>\n<table cellpadding=5 width=\"100%\">\n<tr><td class=\"tablesubtitle\"><%= values[\"type\"] %> <%= values[\"category\"] %> methods</td></tr>\n</table>\n<% values[\"methods\"].each do |methods| $stderr.puts({ :methods => methods }.inspect) %>\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\">\n<tr><td class=\"methodtitle\">\n<a name=\"<%= values[\"aref\"] %>\">\n<% if values[\"callseq\"] then %>\n<b><%= values[\"callseq\"] %></b>\n<% end %>\n<% unless values[\"callseq\"] then %>\n <b><%= values[\"name\"] %></b><%= values[\"params\"] %>\n<% end %>\n<% if values[\"codeurl\"] then %>\n<a href=\"<%= values[\"codeurl\"] %>\" target=\"source\" class=\"srclink\">src</a>\n<% end %>\n</a></td></tr>\n</table>\n<% if values[\"m_desc\"] then %>\n<div class=\"description\">\n<%= values[\"m_desc\"] %>\n</div>\n<% end %>\n<% if values[\"aka\"] then %>\n<div class=\"aka\">\nThis method is also aliased as\n<% values[\"aka\"].each do |aka| $stderr.puts({ :aka => aka }.inspect) %>\n<a href=\"<%= values[\"aref\"] %>\"><%= values[\"name\"] %></a>\n<% end # values[\"aka\"] %>\n</div>\n<% end %>\n<% if values[\"sourcecode\"] then %>\n<pre class=\"source\">\n<%= values[\"sourcecode\"] %>\n</pre>\n<% end %>\n<% end # values[\"methods\"] %>\n<% end %>\n<% end # values[\"method_list\"] %>\n<% end %>\n"- SRC_PAGE =
"<html>\n<head><title><%= values[\"title\"] %></title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<%= values[\"charset\"] %>\">\n<style type=\"text/css\">\n.ruby-comment { color: green; font-style: italic }\n.ruby-constant { color: #4433aa; font-weight: bold; }\n.ruby-identifier { color: #222222; }\n.ruby-ivar { color: #2233dd; }\n.ruby-keyword { color: #3333FF; font-weight: bold }\n.ruby-node { color: #777777; }\n.ruby-operator { color: #111111; }\n.ruby-regexp { color: #662222; }\n.ruby-value { color: #662222; font-style: italic }\n.kw { color: #3333FF; font-weight: bold }\n.cmt { color: green; font-style: italic }\n.str { color: #662222; font-style: italic }\n.re { color: #662222; }\n</style>\n</head>\n<body bgcolor=\"white\">\n<pre><%= values[\"code\"] %></pre>\n</body>\n</html>\n"- FR_INDEX_BODY =
%{ <%= template_include %> }- FILE_INDEX =
"<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<%= values[\"charset\"] %>\">\n<style>\n<!--\nbody {\nbackground-color: #ddddff;\nfont-family: \#{FONTS};\nfont-size: 11px;\nfont-style: normal;\nline-height: 14px;\ncolor: #000040;\n}\n\ndiv.banner {\nbackground: #0000aa;\ncolor: white;\npadding: 1;\nmargin: 0;\nfont-size: 90%;\nfont-weight: bold;\nline-height: 1.1;\ntext-align: center;\nwidth: 100%;\n}\n\n-->\n</style>\n<base target=\"docwin\">\n</head>\n<body>\n<div class=\"banner\"><%= values[\"list_title\"] %></div>\n<% values[\"entries\"].each do |entries| %>\n<a href=\"<%= entries[\"href\"] %>\"><%= entries[\"name\"] %></a><br />\n<% end # values[\"entries\"] %>\n</body></html>\n"- CLASS_INDEX =
FILE_INDEX- METHOD_INDEX =
FILE_INDEX- INDEX =
"<html>\n<head>\n<title><%= values[\"title\"] %></title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<%= values[\"charset\"] %>\">\n</head>\n\n<frameset cols=\"20%,*\">\n <frameset rows=\"15%,35%,50%\">\n <frame src=\"fr_file_index.html\" title=\"Files\" name=\"Files\">\n <frame src=\"fr_class_index.html\" name=\"Classes\">\n <frame src=\"fr_method_index.html\" name=\"Methods\">\n </frameset>\n<% if values[\"inline_source\"] then %>\n <frame src=\"<%= values[\"initial_page\"] %>\" name=\"docwin\">\n<% end %>\n<% unless values[\"inline_source\"] then %>\n <frameset rows=\"80%,20%\">\n <frame src=\"<%= values[\"initial_page\"] %>\" name=\"docwin\">\n <frame src=\"blank.html\" name=\"source\">\n </frameset>\n<% end %>\n <noframes>\n <body bgcolor=\"white\">\n Click <a href=\"html/index.html\">here</a> for a non-frames\n version of this page.\n </body>\n </noframes>\n</frameset>\n\n</html>\n"- BLANK =
A blank page to use as a target
%{ <html><body bgcolor="white"></body></html> }
Instance Method Summary collapse
Instance Method Details
#write_extra_pages ⇒ Object
412 413 414 415 |
# File 'lib/rdoc-f95/generator/html/kilmer.rb', line 412 def write_extra_pages template = TemplatePage.new(BLANK) File.open("blank.html", "w") { |f| template.write_html_on(f, {}) } end |