module RDoc
module Page
FONTS = "Verdana, Arial, Helvetica, sans-serif"
STYLE = %{
body,td,p { font-family: %fonts%;
color: #000040;
}
.attr-rw { font-size: xx-small; color: #444488 }
.title-row { background-color: #CCCCFF;
color: #000010;
}
.big-title-font {
color: black;
font-weight: bold;
font-family: %fonts%;
font-size: large;
height: 60px;
padding: 10px 3px 10px 3px;
}
.small-title-font { color: black;
font-family: %fonts%;
font-size:10; }
.aqua { color: black }
.method-name, .attr-name {
font-family: font-family: %fonts%;
font-weight: bold;
font-size: small;
margin-left: 20px;
color: #000033;
}
.tablesubtitle, .tablesubsubtitle {
width: 100%;
margin-top: 1ex;
margin-bottom: .5ex;
padding: 5px 0px 5px 3px;
font-size: large;
color: black;
background-color: #CCCCFF;
border: thin;
}
.name-list {
margin-left: 5px;
margin-bottom: 2ex;
line-height: 105%;
}
.description {
margin-left: 5px;
margin-bottom: 2ex;
line-height: 105%;
font-size: small;
}
.methodtitle {
font-size: small;
font-weight: bold;
text-decoration: none;
color: #000033;
background-color: white;
}
.srclink {
font-size: small;
font-weight: bold;
text-decoration: none;
color: #0000DD;
background-color: white;
}
.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
START:methods
HREF:aref:name:,
END:methods
ENDIF:methods
START:sections
IF:sectitle
IF:seccomment
ENDIF:seccomment
ENDIF:sectitle
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!
END:sections
}
###############################################################################
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
Included modules
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
IF:aka
This method is also aliased as
START:aka
%name%
END:aka
ENDIF:aka
IF:sourcecode
%sourcecode%
ENDIF:sourcecode
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%
IF:inline_source
ENDIF:inline_source
IFNOT:inline_source
ENDIF:inline_source
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