From d464704f111d211c1f1ff9ef23ef1d755054be00 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 15 Aug 2007 19:08:43 +0000 Subject: add tag v1_8_5_54 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_54@12952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .../lib/rdoc/generators/template/html/hefss.rb | 418 +++++++++++++++++++++ 1 file changed, 418 insertions(+) create mode 100644 ruby_1_8_5/lib/rdoc/generators/template/html/hefss.rb (limited to 'ruby_1_8_5/lib/rdoc/generators/template/html/hefss.rb') diff --git a/ruby_1_8_5/lib/rdoc/generators/template/html/hefss.rb b/ruby_1_8_5/lib/rdoc/generators/template/html/hefss.rb new file mode 100644 index 0000000000..e68ca85823 --- /dev/null +++ b/ruby_1_8_5/lib/rdoc/generators/template/html/hefss.rb @@ -0,0 +1,418 @@ +module RDoc +module Page + + +FONTS = "Verdana, Arial, Helvetica, sans-serif" + +STYLE = %{ +body,p { font-family: Verdana, Arial, Helvetica, sans-serif; + color: #000040; background: #BBBBBB; +} + +td { font-family: Verdana, Arial, Helvetica, sans-serif; + color: #000040; +} + +.attr-rw { font-size: small; color: #444488 } + +.title-row {color: #eeeeff; + background: #BBBBDD; +} + +.big-title-font { color: white; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: large; + height: 50px} + +.small-title-font { color: purple; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: small; } + +.aqua { color: purple } + +.method-name, attr-name { + font-family: monospace; font-weight: bold; +} + +.tablesubtitle { + width: 100%; + margin-top: 1ex; + margin-bottom: .5ex; + padding: 5px 0px 5px 20px; + font-size: large; + color: purple; + background: #BBBBCC; +} + +.tablesubsubtitle { + width: 100%; + margin-top: 1ex; + margin-bottom: .5ex; + padding: 5px 0px 5px 20px; + font-size: medium; + color: white; + background: #BBBBCC; +} + +.name-list { + font-family: monospace; + margin-left: 40px; + margin-bottom: 2ex; + line-height: 140%; +} + +.description { + margin-left: 40px; + margin-bottom: 2ex; + line-height: 140%; +} + +.methodtitle { + font-size: medium; + text_decoration: none; + padding: 3px 3px 3px 20px; + color: #0000AA; +} + +.column-title { + font-size: medium; + font-weight: bold; + text_decoration: none; + padding: 3px 3px 3px 20px; + color: #3333CC; + } + +.variable-name { + font-family: monospace; + font-size: medium; + text_decoration: none; + padding: 3px 3px 3px 20px; + color: #0000AA; +} + +.row-name { + font-size: medium; + font-weight: medium; + font-family: monospace; + text_decoration: none; + padding: 3px 3px 3px 20px; +} + +.paramsig { + font-size: small; +} + +.srcbut { float: right } + +} + + +############################################################################ + + +BODY = %{ + + %title% + + + + + + +!INCLUDE! + +IF:diagram +
+%diagram% +
+ENDIF:diagram + +IF:description +
%description%
+ENDIF:description + +IF:requires + + +
Required files

+
+START:requires +HREF:aref:name: +END:requires +ENDIF:requires +
+ +IF:methods + + +
Subroutines and Functions

+
+START:methods +HREF:aref:name:, +END:methods +
+ENDIF:methods + +IF:attributes + + +
Arguments

+ +START:attributes + +IF:rw + +ENDIF:rw +IFNOT:rw + +ENDIF:rw + + + +END:attributes +
 [%rw%] %name%%a_desc%
+ENDIF:attributes + +IF:classlist + + +
Modules

+%classlist%
+ENDIF:classlist + + !INCLUDE! + + + +} + +############################################################################### + +FILE_PAGE = <<_FILE_PAGE_ + + + + +
+ +
File
%short_name%
+ + + + + + + + +
Path:%full_path% +IF:cvsurl +  (CVS) +ENDIF:cvsurl +
Modified:%dtm_modified%
+

+_FILE_PAGE_ + +################################################################### + +CLASS_PAGE = %{ + + + + + +
+ %classmod%
%full_name% +
+ + + + + +IF:parent + + + + +ENDIF:parent +
In: +START:infiles +HREF:full_path_url:full_path: +IF:cvsurl + (CVS) +ENDIF:cvsurl +END:infiles +
Parent: +IF:par_url + +ENDIF:par_url +%parent% +IF:par_url + +ENDIF:par_url +
+

+} + +################################################################### + +METHOD_LIST = %{ +IF:includes +
Uses

+
+START:includes + HREF:aref:name: +END:includes +
+ENDIF:includes + +IF:method_list +START:method_list +IF:methods + + +
%type% %category% methods
+START:methods + + +
+ +%name%%params% +IF:codeurl +src +ENDIF:codeurl +
+IF:m_desc +
+%m_desc% +
+ENDIF:m_desc +END:methods +ENDIF:methods +END:method_list +ENDIF:method_list +} + +=begin +=end + +########################## Source code ########################## + +SRC_PAGE = %{ + +%title% + + + + +
%code%
+ + +} + +########################## Index ################################ + +FR_INDEX_BODY = %{ +!INCLUDE! +} + +FILE_INDEX = %{ + + + + + + + + +START:entries +%name%
+END:entries + +} + +CLASS_INDEX = FILE_INDEX +METHOD_INDEX = FILE_INDEX + +INDEX = %{ + + + %title% + + + + + + + + + + + + + + + <body bgcolor="#BBBBBB"> + Click <a href="html/index.html">here</a> for a non-frames + version of this page. + </body> + + + + +} + +# and a blank page to use as a target +BLANK = %{ + +} + +def write_extra_pages + template = TemplatePage.new(BLANK) + File.open("blank.html", "w") { |f| template.write_html_on(f, {}) } +end + +end +end -- cgit v1.2.3