2008-01-12 22:13:37 -05:00
|
|
|
require 'rdoc/generator/html'
|
2008-09-24 22:43:03 -04:00
|
|
|
require 'rdoc/generator/html/kilmerfactory'
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-01-12 22:13:37 -05:00
|
|
|
module RDoc::Generator::HTML::HEFSS
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-01-12 22:02:49 -05:00
|
|
|
FONTS = "Verdana, Arial, Helvetica, sans-serif"
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
CENTRAL_STYLE = <<-EOF
|
|
|
|
body,p { font-family: <%= values["fonts"] %>;
|
2003-12-01 02:12:49 -05:00
|
|
|
color: #000040; background: #BBBBBB;
|
|
|
|
}
|
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
td { font-family: <%= values["fonts"] %>;
|
2003-12-01 02:12:49 -05:00
|
|
|
color: #000040;
|
|
|
|
}
|
|
|
|
|
|
|
|
.attr-rw { font-size: small; color: #444488 }
|
|
|
|
|
|
|
|
.title-row {color: #eeeeff;
|
|
|
|
background: #BBBBDD;
|
|
|
|
}
|
|
|
|
|
|
|
|
.big-title-font { color: white;
|
2008-09-24 22:43:03 -04:00
|
|
|
font-family: <%= values["fonts"] %>;
|
2008-01-12 22:02:49 -05:00
|
|
|
font-size: large;
|
2003-12-01 02:12:49 -05:00
|
|
|
height: 50px}
|
|
|
|
|
|
|
|
.small-title-font { color: purple;
|
2008-09-24 22:43:03 -04:00
|
|
|
font-family: <%= values["fonts"] %>;
|
2003-12-01 02:12:49 -05:00
|
|
|
font-size: small; }
|
|
|
|
|
|
|
|
.aqua { color: purple }
|
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
#diagram img {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2003-12-01 02:12:49 -05:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ruby-comment { color: green; font-style: italic }
|
|
|
|
.ruby-constant { color: #4433aa; font-weight: bold; }
|
|
|
|
.ruby-identifier { color: #222222; }
|
|
|
|
.ruby-ivar { color: #2233dd; }
|
|
|
|
.ruby-keyword { color: #3333FF; font-weight: bold }
|
|
|
|
.ruby-node { color: #777777; }
|
|
|
|
.ruby-operator { color: #111111; }
|
|
|
|
.ruby-regexp { color: #662222; }
|
|
|
|
.ruby-value { color: #662222; font-style: italic }
|
2008-09-24 22:43:03 -04:00
|
|
|
|
|
|
|
.srcbut { float: right }
|
2008-01-12 22:02:49 -05:00
|
|
|
EOF
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
INDEX_STYLE = <<-EOF
|
|
|
|
body {
|
|
|
|
background-color: #bbbbbb;
|
|
|
|
font-family: #{FONTS};
|
|
|
|
font-size: 11px;
|
|
|
|
font-style: normal;
|
|
|
|
line-height: 14px;
|
|
|
|
color: #000040;
|
2003-12-01 02:12:49 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
div.banner {
|
|
|
|
background: #bbbbcc;
|
2008-09-24 22:43:03 -04:00
|
|
|
color: white;
|
2003-12-01 02:12:49 -05:00
|
|
|
padding: 1;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 90%;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.1;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2008-09-24 22:43:03 -04:00
|
|
|
EOF
|
2008-01-07 05:40:50 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
FACTORY = RDoc::Generator::HTML::
|
|
|
|
KilmerFactory.new(:central_css => CENTRAL_STYLE,
|
|
|
|
:index_css => INDEX_STYLE,
|
|
|
|
:method_list_heading => "Subroutines and Functions",
|
|
|
|
:class_and_module_list_heading => "Classes and Modules",
|
|
|
|
:attribute_list_heading => "Arguments")
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
STYLE = FACTORY.get_STYLE()
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
METHOD_LIST = FACTORY.get_METHOD_LIST()
|
2009-03-05 22:56:38 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
BODY = FACTORY.get_BODY()
|
2009-03-05 22:56:38 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
FILE_PAGE = FACTORY.get_FILE_PAGE()
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
CLASS_PAGE = FACTORY.get_CLASS_PAGE()
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
SRC_PAGE = FACTORY.get_SRC_PAGE()
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
FR_INDEX_BODY = FACTORY.get_FR_INDEX_BODY()
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
FILE_INDEX = FACTORY.get_FILE_INDEX()
|
2003-12-01 02:12:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
CLASS_INDEX = FACTORY.get_CLASS_INDEX()
|
|
|
|
|
|
|
|
METHOD_INDEX = FACTORY.get_METHOD_INDEX()
|
2008-01-12 22:02:49 -05:00
|
|
|
|
2008-09-24 22:43:03 -04:00
|
|
|
INDEX = FACTORY.get_INDEX()
|
|
|
|
|
|
|
|
def self.write_extra_pages(values)
|
|
|
|
FACTORY.write_extra_pages(values)
|
|
|
|
end
|
|
|
|
end
|