rdoc 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rdoc might be problematic. Click here for more details.
- data.tar.gz.sig +2 -0
- data/.document +4 -0
- data/History.txt +35 -0
- data/Manifest.txt +36 -15
- data/README.txt +11 -27
- data/Rakefile +3 -0
- data/lib/rdoc.rb +1 -1
- data/lib/rdoc/cache.rb +32 -0
- data/lib/rdoc/code_objects.rb +121 -59
- data/lib/rdoc/generator.rb +196 -133
- data/lib/rdoc/generator/darkfish.rb +471 -0
- data/lib/rdoc/generator/html.rb +71 -60
- data/lib/rdoc/generator/html/html.rb +115 -115
- data/lib/rdoc/generator/html/one_page_html.rb +56 -56
- data/lib/rdoc/generator/ri.rb +2 -0
- data/lib/rdoc/generator/template/darkfish/.document +0 -0
- data/lib/rdoc/generator/template/darkfish/classpage.rhtml +302 -0
- data/lib/rdoc/generator/template/darkfish/filepage.rhtml +114 -0
- data/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/lib/rdoc/generator/template/darkfish/index.rhtml +57 -0
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +116 -0
- data/lib/rdoc/generator/template/darkfish/js/jquery.js +32 -0
- data/lib/rdoc/generator/template/darkfish/js/quicksearch.js +114 -0
- data/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js +10 -0
- data/lib/rdoc/generator/template/darkfish/rdoc.css +696 -0
- data/lib/rdoc/generator/xml.rb +19 -12
- data/lib/rdoc/generator/xml/rdf.rb +50 -50
- data/lib/rdoc/generator/xml/xml.rb +58 -58
- data/lib/rdoc/known_classes.rb +0 -1
- data/lib/rdoc/markup/preprocess.rb +4 -3
- data/lib/rdoc/markup/to_html.rb +4 -1
- data/lib/rdoc/markup/to_html_crossref.rb +28 -31
- data/lib/rdoc/options.rb +25 -20
- data/lib/rdoc/parser.rb +10 -2
- data/lib/rdoc/parser/c.rb +38 -29
- data/lib/rdoc/parser/f95.rb +32 -32
- data/lib/rdoc/parser/ruby.rb +5 -2
- data/lib/rdoc/parser/simple.rb +1 -0
- data/lib/rdoc/rdoc.rb +99 -47
- data/lib/rdoc/ri/cache.rb +6 -6
- data/lib/rdoc/ri/display.rb +22 -75
- data/lib/rdoc/ri/driver.rb +237 -78
- data/lib/rdoc/stats.rb +91 -28
- data/lib/rdoc/template.rb +6 -2
- data/test/test.ja.rdoc +8 -0
- data/test/test.ja.txt +8 -0
- data/test/test_attribute_manager.rb +9 -6
- data/test/test_rdoc_markup.rb +4 -2
- data/test/test_rdoc_markup_attribute_manager.rb +13 -3
- data/test/test_rdoc_markup_to_html.rb +18 -2
- data/test/test_rdoc_markup_to_html_crossref.rb +186 -249
- data/test/test_rdoc_parser.rb +17 -1
- data/test/test_rdoc_parser_c.rb +65 -10
- data/test/test_rdoc_parser_perl.rb +4 -2
- data/test/test_rdoc_parser_ruby.rb +6 -4
- data/test/test_rdoc_ri_attribute_formatter.rb +4 -2
- data/test/test_rdoc_ri_default_display.rb +8 -4
- data/test/test_rdoc_ri_driver.rb +4 -2
- data/test/test_rdoc_ri_formatter.rb +6 -4
- data/test/test_rdoc_ri_overstrike_formatter.rb +4 -2
- metadata +84 -33
- metadata.gz.sig +0 -0
- data/lib/rdoc/generator/chm.rb +0 -113
- data/lib/rdoc/generator/chm/chm.rb +0 -100
- data/lib/rdoc/generator/html/frameless.rb +0 -92
- data/lib/rdoc/generator/html/hefss.rb +0 -150
- data/lib/rdoc/generator/html/kilmer.rb +0 -151
- data/lib/rdoc/generator/html/kilmerfactory.rb +0 -427
- data/lib/rdoc/generator/texinfo.rb +0 -81
- data/lib/rdoc/generator/texinfo/class.texinfo.erb +0 -44
- data/lib/rdoc/generator/texinfo/file.texinfo.erb +0 -6
- data/lib/rdoc/generator/texinfo/method.texinfo.erb +0 -6
- data/lib/rdoc/generator/texinfo/texinfo.erb +0 -28
- data/test/rdoc_markup_to_html_crossref_reference.rb +0 -31
- data/test/test_rdoc_info_formatting.rb +0 -175
- data/test/test_rdoc_info_sections.rb +0 -136
@@ -1,151 +0,0 @@
|
|
1
|
-
require 'rdoc/generator/html'
|
2
|
-
require 'rdoc/generator/html/kilmerfactory'
|
3
|
-
|
4
|
-
module RDoc::Generator::HTML::KILMER
|
5
|
-
|
6
|
-
FONTS = "Verdana, Arial, Helvetica, sans-serif"
|
7
|
-
|
8
|
-
CENTRAL_STYLE = <<-EOF
|
9
|
-
body,td,p { font-family: <%= values["fonts"] %>;
|
10
|
-
color: #000040;
|
11
|
-
}
|
12
|
-
|
13
|
-
.attr-rw { font-size: xx-small; color: #444488 }
|
14
|
-
|
15
|
-
.title-row { background-color: #CCCCFF;
|
16
|
-
color: #000010;
|
17
|
-
}
|
18
|
-
|
19
|
-
.big-title-font {
|
20
|
-
color: black;
|
21
|
-
font-weight: bold;
|
22
|
-
font-family: <%= values["fonts"] %>;
|
23
|
-
font-size: large;
|
24
|
-
height: 60px;
|
25
|
-
padding: 10px 3px 10px 3px;
|
26
|
-
}
|
27
|
-
|
28
|
-
.small-title-font { color: black;
|
29
|
-
font-family: <%= values["fonts"] %>;
|
30
|
-
font-size:10; }
|
31
|
-
|
32
|
-
.aqua { color: black }
|
33
|
-
|
34
|
-
#diagram img {
|
35
|
-
border: 0;
|
36
|
-
}
|
37
|
-
|
38
|
-
.method-name, .attr-name {
|
39
|
-
font-family: font-family: <%= values["fonts"] %>;
|
40
|
-
font-weight: bold;
|
41
|
-
font-size: small;
|
42
|
-
margin-left: 20px;
|
43
|
-
color: #000033;
|
44
|
-
}
|
45
|
-
|
46
|
-
.tablesubtitle, .tablesubsubtitle {
|
47
|
-
width: 100%;
|
48
|
-
margin-top: 1ex;
|
49
|
-
margin-bottom: .5ex;
|
50
|
-
padding: 5px 0px 5px 3px;
|
51
|
-
font-size: large;
|
52
|
-
color: black;
|
53
|
-
background-color: #CCCCFF;
|
54
|
-
border: thin;
|
55
|
-
}
|
56
|
-
|
57
|
-
.name-list {
|
58
|
-
margin-left: 5px;
|
59
|
-
margin-bottom: 2ex;
|
60
|
-
line-height: 105%;
|
61
|
-
}
|
62
|
-
|
63
|
-
.description {
|
64
|
-
margin-left: 5px;
|
65
|
-
margin-bottom: 2ex;
|
66
|
-
line-height: 105%;
|
67
|
-
font-size: small;
|
68
|
-
}
|
69
|
-
|
70
|
-
.methodtitle {
|
71
|
-
font-size: small;
|
72
|
-
font-weight: bold;
|
73
|
-
text-decoration: none;
|
74
|
-
color: #000033;
|
75
|
-
background: #ccc;
|
76
|
-
}
|
77
|
-
|
78
|
-
.srclink {
|
79
|
-
font-size: small;
|
80
|
-
font-weight: bold;
|
81
|
-
text-decoration: none;
|
82
|
-
color: #0000DD;
|
83
|
-
background-color: white;
|
84
|
-
}
|
85
|
-
|
86
|
-
.srcbut { float: right }
|
87
|
-
|
88
|
-
.ruby-comment { color: green; font-style: italic }
|
89
|
-
.ruby-constant { color: #4433aa; font-weight: bold; }
|
90
|
-
.ruby-identifier { color: #222222; }
|
91
|
-
.ruby-ivar { color: #2233dd; }
|
92
|
-
.ruby-keyword { color: #3333FF; font-weight: bold }
|
93
|
-
.ruby-node { color: #777777; }
|
94
|
-
.ruby-operator { color: #111111; }
|
95
|
-
.ruby-regexp { color: #662222; }
|
96
|
-
.ruby-value { color: #662222; font-style: italic }
|
97
|
-
EOF
|
98
|
-
|
99
|
-
INDEX_STYLE = <<-EOF
|
100
|
-
body {
|
101
|
-
background-color: #ddddff;
|
102
|
-
font-family: #{FONTS};
|
103
|
-
font-size: 11px;
|
104
|
-
font-style: normal;
|
105
|
-
line-height: 14px;
|
106
|
-
color: #000040;
|
107
|
-
}
|
108
|
-
|
109
|
-
div.banner {
|
110
|
-
background: #0000aa;
|
111
|
-
color: white;
|
112
|
-
padding: 1;
|
113
|
-
margin: 0;
|
114
|
-
font-size: 90%;
|
115
|
-
font-weight: bold;
|
116
|
-
line-height: 1.1;
|
117
|
-
text-align: center;
|
118
|
-
width: 100%;
|
119
|
-
}
|
120
|
-
EOF
|
121
|
-
|
122
|
-
FACTORY = RDoc::Generator::HTML::
|
123
|
-
KilmerFactory.new(:central_css => CENTRAL_STYLE,
|
124
|
-
:index_css => INDEX_STYLE)
|
125
|
-
|
126
|
-
STYLE = FACTORY.get_STYLE()
|
127
|
-
|
128
|
-
METHOD_LIST = FACTORY.get_METHOD_LIST()
|
129
|
-
|
130
|
-
BODY = FACTORY.get_BODY()
|
131
|
-
|
132
|
-
FILE_PAGE = FACTORY.get_FILE_PAGE()
|
133
|
-
|
134
|
-
CLASS_PAGE = FACTORY.get_CLASS_PAGE()
|
135
|
-
|
136
|
-
SRC_PAGE = FACTORY.get_SRC_PAGE()
|
137
|
-
|
138
|
-
FR_INDEX_BODY = FACTORY.get_FR_INDEX_BODY()
|
139
|
-
|
140
|
-
FILE_INDEX = FACTORY.get_FILE_INDEX()
|
141
|
-
|
142
|
-
CLASS_INDEX = FACTORY.get_CLASS_INDEX()
|
143
|
-
|
144
|
-
METHOD_INDEX = FACTORY.get_METHOD_INDEX()
|
145
|
-
|
146
|
-
INDEX = FACTORY.get_INDEX()
|
147
|
-
|
148
|
-
def self.write_extra_pages(values)
|
149
|
-
FACTORY.write_extra_pages(values)
|
150
|
-
end
|
151
|
-
end
|
@@ -1,427 +0,0 @@
|
|
1
|
-
require 'rdoc/generator/html'
|
2
|
-
require 'rdoc/generator/html/common'
|
3
|
-
|
4
|
-
#
|
5
|
-
# This class generates Kilmer-style templates. Right now,
|
6
|
-
# rdoc is shipped with two such templates:
|
7
|
-
# * kilmer
|
8
|
-
# * hefss
|
9
|
-
#
|
10
|
-
# Kilmer-style templates use frames. The left side of the page has
|
11
|
-
# three frames stacked on top of each other: one lists
|
12
|
-
# files, one lists classes, and one lists methods. If source code
|
13
|
-
# is not inlined, an additional frame runs across the bottom of
|
14
|
-
# the page and will be used to display method source code.
|
15
|
-
# The central (and largest frame) display class and file
|
16
|
-
# pages.
|
17
|
-
#
|
18
|
-
# The constructor of this class accepts a Hash containing stylistic
|
19
|
-
# attributes. Then, a get_BLAH instance method of this class returns a
|
20
|
-
# value for the template's BLAH constant. get_BODY, for instance, returns
|
21
|
-
# the value of the template's BODY constant.
|
22
|
-
#
|
23
|
-
class RDoc::Generator::HTML::KilmerFactory
|
24
|
-
|
25
|
-
include RDoc::Generator::HTML::Common
|
26
|
-
|
27
|
-
#
|
28
|
-
# The contents of the stylesheet that should be used for the
|
29
|
-
# central frame (for the class and file pages).
|
30
|
-
#
|
31
|
-
# This must be specified in the Hash passed to the constructor.
|
32
|
-
#
|
33
|
-
attr_reader :central_css
|
34
|
-
|
35
|
-
#
|
36
|
-
# The contents of the stylesheet that should be used for the
|
37
|
-
# index pages.
|
38
|
-
#
|
39
|
-
# This must be specified in the Hash passed to the constructor.
|
40
|
-
#
|
41
|
-
attr_reader :index_css
|
42
|
-
|
43
|
-
#
|
44
|
-
# The heading that should be displayed before listing methods.
|
45
|
-
#
|
46
|
-
# If not supplied, this defaults to "Methods".
|
47
|
-
#
|
48
|
-
attr_reader :method_list_heading
|
49
|
-
|
50
|
-
#
|
51
|
-
# The heading that should be displayed before listing classes and
|
52
|
-
# modules.
|
53
|
-
#
|
54
|
-
# If not supplied, this defaults to "Classes and Modules".
|
55
|
-
#
|
56
|
-
attr_reader :class_and_module_list_heading
|
57
|
-
|
58
|
-
#
|
59
|
-
# The heading that should be displayed before listing attributes.
|
60
|
-
#
|
61
|
-
# If not supplied, this defaults to "Attributes".
|
62
|
-
#
|
63
|
-
attr_reader :attribute_list_heading
|
64
|
-
|
65
|
-
#
|
66
|
-
# ====Description:
|
67
|
-
# This method constructs a KilmerFactory instance, which
|
68
|
-
# can be used to build Kilmer-style template classes.
|
69
|
-
# The +style_attributes+ argument is a Hash that contains the
|
70
|
-
# values of the classes attributes (Symbols mapped to Strings).
|
71
|
-
#
|
72
|
-
# ====Parameters:
|
73
|
-
# [style_attributes]
|
74
|
-
# A Hash describing the appearance of the Kilmer-style.
|
75
|
-
#
|
76
|
-
def initialize(style_attributes)
|
77
|
-
@central_css = style_attributes[:central_css]
|
78
|
-
if(!@central_css)
|
79
|
-
raise ArgumentError, "did not specify a value for :central_css"
|
80
|
-
end
|
81
|
-
|
82
|
-
@index_css = style_attributes[:index_css]
|
83
|
-
if(!@index_css)
|
84
|
-
raise ArgumentError, "did not specify a value for :index_css"
|
85
|
-
end
|
86
|
-
|
87
|
-
@method_list_heading = style_attributes[:method_list_heading]
|
88
|
-
if(!@method_list_heading)
|
89
|
-
@method_list_heading = "Methods"
|
90
|
-
end
|
91
|
-
|
92
|
-
@class_and_module_list_heading = style_attributes[:class_and_module_list_heading]
|
93
|
-
if(!@class_and_module_list_heading)
|
94
|
-
@class_and_module_list_heading = "Classes and Modules"
|
95
|
-
end
|
96
|
-
|
97
|
-
@attribute_list_heading = style_attributes[:attribute_list_heading]
|
98
|
-
if(!@attribute_list_heading)
|
99
|
-
@attribute_list_heading = "Attributes"
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
def get_STYLE
|
104
|
-
return @central_css
|
105
|
-
end
|
106
|
-
|
107
|
-
def get_METHOD_LIST
|
108
|
-
return %{
|
109
|
-
<% if values["diagram"] then %>
|
110
|
-
<div id="diagram">
|
111
|
-
<table width="100%"><tr><td align="center">
|
112
|
-
<%= values["diagram"] %>
|
113
|
-
</td></tr></table>
|
114
|
-
</div>
|
115
|
-
<% end %>
|
116
|
-
|
117
|
-
<% if values["description"] then %>
|
118
|
-
<div class="description"><%= values["description"] %></div>
|
119
|
-
<% end %>
|
120
|
-
|
121
|
-
<% if values["requires"] then %>
|
122
|
-
<table cellpadding="5" width="100%">
|
123
|
-
<tr><td class="tablesubtitle">Required files</td></tr>
|
124
|
-
</table><br />
|
125
|
-
<div class="name-list">
|
126
|
-
<% values["requires"].each do |requires| %>
|
127
|
-
<%= href requires["aref"], requires["name"] %>
|
128
|
-
<% end %><%# values["requires"] %>
|
129
|
-
</div>
|
130
|
-
<% end %>
|
131
|
-
|
132
|
-
<% if values["methods"] then %>
|
133
|
-
<table cellpadding="5" width="100%">
|
134
|
-
<tr><td class="tablesubtitle">#{@method_list_heading}</td></tr>
|
135
|
-
</table><br />
|
136
|
-
<div class="name-list">
|
137
|
-
<% values["methods"].each do |methods| %>
|
138
|
-
<%= href methods["aref"], methods["name"] %>,
|
139
|
-
<% end %><%# values["methods"] %>
|
140
|
-
</div>
|
141
|
-
<% end %>
|
142
|
-
|
143
|
-
<% if values["includes"] then %>
|
144
|
-
<div class="tablesubsubtitle">Included modules</div><br />
|
145
|
-
<div class="name-list">
|
146
|
-
<% values["includes"].each do |includes| %>
|
147
|
-
<span class="method-name"><%= href includes["aref"], includes["name"] %></span>
|
148
|
-
<% end %><%# values["includes"] %>
|
149
|
-
</div>
|
150
|
-
<% end %>
|
151
|
-
|
152
|
-
<% values["sections"].each do |sections| %>
|
153
|
-
<div id="section">
|
154
|
-
<% if sections["sectitle"] then %>
|
155
|
-
<h2 class="section-title"><a name="<%= sections["secsequence"] %>"><%= sections["sectitle"] %></a></h2>
|
156
|
-
<% if sections["seccomment"] then %>
|
157
|
-
<div class="section-comment">
|
158
|
-
<%= sections["seccomment"] %>
|
159
|
-
</div>
|
160
|
-
<% end %>
|
161
|
-
<% end %>
|
162
|
-
<% if sections["attributes"] then %>
|
163
|
-
<table cellpadding="5" width="100%">
|
164
|
-
<tr><td class="tablesubtitle">#{@attribute_list_heading}</td></tr>
|
165
|
-
</table><br />
|
166
|
-
<table cellspacing="5">
|
167
|
-
<% sections["attributes"].each do |attributes| %>
|
168
|
-
<tr valign="top">
|
169
|
-
<% if attributes["rw"] then %>
|
170
|
-
<td align="center" class="attr-rw"> [<%= attributes["rw"] %>] </td>
|
171
|
-
<% end %>
|
172
|
-
<% unless attributes["rw"] then %>
|
173
|
-
<td></td>
|
174
|
-
<% end %>
|
175
|
-
<td class="attr-name"><%= attributes["name"] %></td>
|
176
|
-
<td><%= attributes["a_desc"] %></td>
|
177
|
-
</tr>
|
178
|
-
<% end %><%# sections["attributes"] %>
|
179
|
-
</table>
|
180
|
-
<% end %>
|
181
|
-
|
182
|
-
<% if sections["classlist"] then %>
|
183
|
-
<table cellpadding="5" width="100%">
|
184
|
-
<tr><td class="tablesubtitle">#{@class_and_module_list_heading}</td></tr>
|
185
|
-
</table><br />
|
186
|
-
<%= sections["classlist"] %><br />
|
187
|
-
<% end %>
|
188
|
-
|
189
|
-
<% if sections["method_list"] then %>
|
190
|
-
<% sections["method_list"].each do |method_list| %>
|
191
|
-
<% if method_list["methods"] then %>
|
192
|
-
<table cellpadding="5" width="100%">
|
193
|
-
<tr><td class="tablesubtitle"><%= method_list["type"] %> <%= method_list["category"] %> methods</td></tr>
|
194
|
-
</table>
|
195
|
-
<% method_list["methods"].each do |methods| %>
|
196
|
-
<table width="100%" cellspacing="0" cellpadding="5" border="0">
|
197
|
-
<tr><td class="methodtitle">
|
198
|
-
<a name="<%= methods["aref"] %>">
|
199
|
-
<% if methods["callseq"] then %>
|
200
|
-
<b><%= methods["callseq"] %></b>
|
201
|
-
<% end %>
|
202
|
-
<% unless methods["callseq"] then %>
|
203
|
-
<b><%= methods["name"] %></b><%= methods["params"] %>
|
204
|
-
<% end %>
|
205
|
-
</a>
|
206
|
-
<% if methods["codeurl"] then %>
|
207
|
-
<a href="<%= methods["codeurl"] %>" target="source" class="srclink">src</a>
|
208
|
-
<% end %>
|
209
|
-
</td></tr>
|
210
|
-
</table>
|
211
|
-
<% if methods["m_desc"] then %>
|
212
|
-
<div class="description">
|
213
|
-
<%= methods["m_desc"] %>
|
214
|
-
</div>
|
215
|
-
<% end %>
|
216
|
-
<% if methods["aka"] then %>
|
217
|
-
<div class="aka">
|
218
|
-
This method is also aliased as
|
219
|
-
<% methods["aka"].each do |aka| %>
|
220
|
-
<a href="<%= methods["aref"] %>"><%= methods["name"] %></a>
|
221
|
-
<% end %><%# methods["aka"] %>
|
222
|
-
</div>
|
223
|
-
<% end %>
|
224
|
-
<% if methods["sourcecode"] then %>
|
225
|
-
<pre class="source">
|
226
|
-
<%= methods["sourcecode"] %>
|
227
|
-
</pre>
|
228
|
-
<% end %>
|
229
|
-
<% end %><%# method_list["methods"] %>
|
230
|
-
<% end %>
|
231
|
-
<% end %><%# sections["method_list"] %>
|
232
|
-
<% end %>
|
233
|
-
|
234
|
-
<% end %><%# values["sections"] %>
|
235
|
-
</div>
|
236
|
-
}
|
237
|
-
end
|
238
|
-
|
239
|
-
def get_BODY
|
240
|
-
return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
|
241
|
-
<head>
|
242
|
-
<title><%= values["title"] %></title>
|
243
|
-
<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
|
244
|
-
<link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
|
245
|
-
<script type="text/javascript">
|
246
|
-
<!--
|
247
|
-
function popCode(url) {
|
248
|
-
parent.frames.source.location = url
|
249
|
-
}
|
250
|
-
//-->
|
251
|
-
</script>
|
252
|
-
</head>
|
253
|
-
<body>
|
254
|
-
<div class="bodyContent">
|
255
|
-
<%= template_include %> <!-- banner header -->
|
256
|
-
|
257
|
-
#{get_METHOD_LIST()}
|
258
|
-
</div>
|
259
|
-
</body>
|
260
|
-
</html>
|
261
|
-
}
|
262
|
-
end
|
263
|
-
|
264
|
-
def get_FILE_PAGE
|
265
|
-
return %{
|
266
|
-
<table width="100%">
|
267
|
-
<tr class="title-row">
|
268
|
-
<td><table width="100%"><tr>
|
269
|
-
<td class="big-title-font" colspan="2">File<br /><%= values["short_name"] %></td>
|
270
|
-
<td align="right"><table cellspacing="0" cellpadding="2">
|
271
|
-
<tr>
|
272
|
-
<td class="small-title-font">Path:</td>
|
273
|
-
<td class="small-title-font"><%= values["full_path"] %>
|
274
|
-
<% if values["cvsurl"] then %>
|
275
|
-
(<a href="<%= values["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
|
276
|
-
<% end %>
|
277
|
-
</td>
|
278
|
-
</tr>
|
279
|
-
<tr>
|
280
|
-
<td class="small-title-font">Modified:</td>
|
281
|
-
<td class="small-title-font"><%= values["dtm_modified"] %></td>
|
282
|
-
</tr>
|
283
|
-
</table>
|
284
|
-
</td></tr></table></td>
|
285
|
-
</tr>
|
286
|
-
</table><br />
|
287
|
-
}
|
288
|
-
end
|
289
|
-
|
290
|
-
def get_CLASS_PAGE
|
291
|
-
return %{
|
292
|
-
<table width="100%" border="0" cellspacing="0">
|
293
|
-
<tr class="title-row">
|
294
|
-
<td class="big-title-font">
|
295
|
-
<%= values["classmod"] %><br /><%= values["full_name"] %>
|
296
|
-
</td>
|
297
|
-
<td align="right">
|
298
|
-
<table cellspacing="0" cellpadding="2">
|
299
|
-
<tr valign="top">
|
300
|
-
<td class="small-title-font">In:</td>
|
301
|
-
<td class="small-title-font">
|
302
|
-
<% values["infiles"].each do |infiles| %>
|
303
|
-
<%= href infiles["full_path_url"], infiles["full_path"] %>
|
304
|
-
<% if infiles["cvsurl"] then %>
|
305
|
-
(<a href="<%= infiles["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
|
306
|
-
<% end %>
|
307
|
-
<% end %><%# values["infiles"] %>
|
308
|
-
</td>
|
309
|
-
</tr>
|
310
|
-
<% if values["parent"] then %>
|
311
|
-
<tr>
|
312
|
-
<td class="small-title-font">Parent:</td>
|
313
|
-
<td class="small-title-font">
|
314
|
-
<% if values["par_url"] then %>
|
315
|
-
<a href="<%= values["par_url"] %>" class="cyan">
|
316
|
-
<% end %>
|
317
|
-
<%= values["parent"] %>
|
318
|
-
<% if values["par_url"] then %>
|
319
|
-
</a>
|
320
|
-
<% end %>
|
321
|
-
</td>
|
322
|
-
</tr>
|
323
|
-
<% end %>
|
324
|
-
</table>
|
325
|
-
</td>
|
326
|
-
</tr>
|
327
|
-
</table><br />
|
328
|
-
}
|
329
|
-
end
|
330
|
-
|
331
|
-
def get_SRC_PAGE
|
332
|
-
return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
|
333
|
-
<head><title><%= values["title"] %></title>
|
334
|
-
<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
|
335
|
-
<link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
|
336
|
-
</head>
|
337
|
-
<body>
|
338
|
-
<pre><%= values["code"] %></pre>
|
339
|
-
</body>
|
340
|
-
</html>
|
341
|
-
}
|
342
|
-
end
|
343
|
-
|
344
|
-
def get_FR_INDEX_BODY
|
345
|
-
return %{<%= template_include %>}
|
346
|
-
end
|
347
|
-
|
348
|
-
def get_FILE_INDEX
|
349
|
-
return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
|
350
|
-
<head>
|
351
|
-
<title><%= values["title"] %></title>
|
352
|
-
<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
|
353
|
-
<style type="text/css">
|
354
|
-
<!--
|
355
|
-
#{@index_css}
|
356
|
-
-->
|
357
|
-
</style>
|
358
|
-
<base target="docwin" />
|
359
|
-
</head>
|
360
|
-
<body>
|
361
|
-
<div class="index">
|
362
|
-
<div class="banner"><%= values["list_title"] %></div>
|
363
|
-
<% values["entries"].each do |entries| %>
|
364
|
-
<a href="<%= entries["href"] %>"><%= entries["name"] %></a><br />
|
365
|
-
<% end %><%# values["entries"] %>
|
366
|
-
</div>
|
367
|
-
</body></html>
|
368
|
-
}
|
369
|
-
end
|
370
|
-
|
371
|
-
def get_CLASS_INDEX
|
372
|
-
return get_FILE_INDEX
|
373
|
-
end
|
374
|
-
|
375
|
-
def get_METHOD_INDEX
|
376
|
-
return get_FILE_INDEX
|
377
|
-
end
|
378
|
-
|
379
|
-
def get_INDEX
|
380
|
-
return XHTML_FRAME_PREAMBLE + HTML_ELEMENT + %{
|
381
|
-
<head>
|
382
|
-
<title><%= values["title"] %></title>
|
383
|
-
<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
|
384
|
-
</head>
|
385
|
-
|
386
|
-
<frameset cols="20%,*">
|
387
|
-
<frameset rows="15%,35%,50%">
|
388
|
-
<frame src="fr_file_index.html" title="Files" name="Files" />
|
389
|
-
<frame src="fr_class_index.html" name="Classes" />
|
390
|
-
<frame src="fr_method_index.html" name="Methods" />
|
391
|
-
</frameset>
|
392
|
-
<% if values["inline_source"] then %>
|
393
|
-
<frame src="<%= values["initial_page"] %>" name="docwin" />
|
394
|
-
<% end %>
|
395
|
-
<% unless values["inline_source"] then %>
|
396
|
-
<frameset rows="80%,20%">
|
397
|
-
<frame src="<%= values["initial_page"] %>" name="docwin" />
|
398
|
-
<frame src="blank.html" name="source" />
|
399
|
-
</frameset>
|
400
|
-
<% end %>
|
401
|
-
</frameset>
|
402
|
-
|
403
|
-
</html>
|
404
|
-
}
|
405
|
-
end
|
406
|
-
|
407
|
-
def get_BLANK
|
408
|
-
# This will be displayed in the source code frame before
|
409
|
-
# any source code has been selected.
|
410
|
-
return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
|
411
|
-
<head>
|
412
|
-
<title>Source Code Frame <%= values["title_suffix"] %></title>
|
413
|
-
<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
|
414
|
-
<link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
|
415
|
-
</head>
|
416
|
-
<body>
|
417
|
-
</body>
|
418
|
-
</html>
|
419
|
-
}
|
420
|
-
end
|
421
|
-
|
422
|
-
def write_extra_pages(values)
|
423
|
-
template = RDoc::TemplatePage.new(get_BLANK())
|
424
|
-
File.open("blank.html", "w") { |f| template.write_html_on(f, values) }
|
425
|
-
end
|
426
|
-
|
427
|
-
end
|