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
ENDIF:diagram
IF:description
%description%
ENDIF:description
IF:requires
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
START:attributes
IF:rw
[%rw%]
ENDIF:rw
IFNOT:rw
ENDIF:rw
%name%
%a_desc%
END:attributes
ENDIF:attributes
IF:classlist
%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 = %{
}
###################################################################
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
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 = %{
%list_title%
START:entries
%name%
END:entries
}
CLASS_INDEX = FILE_INDEX
METHOD_INDEX = FILE_INDEX
INDEX = %{
%title%
Click here for a non-frames
version of this page.
}
# 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