rdoc_chm 2.4.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,17 @@
1
+ === 3.0.0 / 2012-05-11
2
+
3
+ * Updated to for RDoc 3.12 Capatibility
4
+ * Updated discover.rb
5
+ * Updated chm.rb
6
+ * render_template uses a new syntax
7
+ * variable outfile to out_file
8
+ * variable templatefile to template_file
9
+ * added method override "assemble_template" to perserve functionality
10
+ * added method override "generate_file_files" for work around to Rdoc bug #107
11
+ * updated RDoc version requirements
12
+ * added DESCRIPTION
13
+ * Removed Debug dumps from templates (RDoc 3.12 didn't understand them)
14
+
1
15
  === 2.4.2 / 2009-09-16
2
16
 
3
17
  * One minor enhancement
@@ -24,7 +24,7 @@ Or at the command line:
24
24
  == REQUIREMENTS:
25
25
 
26
26
  * A Windows OS
27
- * RDoc 2.4
27
+ * RDoc 3.12
28
28
  * Requires installation of Microsoft's HTML Help Workshop
29
29
  You can download a copy for free from:
30
30
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
data/Rakefile CHANGED
@@ -5,8 +5,6 @@ require 'hoe'
5
5
 
6
6
  $:.unshift 'lib'
7
7
 
8
- require 'rdoc/generator/chm'
9
-
10
8
  Hoe.plugin :git
11
9
 
12
10
  Hoe.spec 'rdoc_chm' do |rdoc_chm|
@@ -19,13 +17,12 @@ Hoe.spec 'rdoc_chm' do |rdoc_chm|
19
17
 
20
18
  rdoc_chm.readme_file = 'README.rdoc'
21
19
 
22
- rdoc_chm.extra_deps << ['rdoc', '>= 2.4']
20
+ rdoc_chm.extra_deps << ['rdoc', '~> 3.12']
23
21
 
24
22
  rdoc_chm.testlib = :minitest
25
23
 
26
- rdoc_chm.extra_dev_deps << ['minitest', '~> 1.3']
27
24
  rdoc_chm.spec_extras['required_rubygems_version'] = '>= 1.3'
28
- rdoc_chm.spec_extras['homepage'] = 'http://rdoc.rubyforge.org/rdoc_chm'
25
+ rdoc_chm.spec_extras['homepage'] = 'https://github.com/vertiginous/rdoc_chm'
29
26
  end
30
27
 
31
28
  desc "Build chm files"
@@ -1,2 +1,5 @@
1
- require 'rdoc/generator/chm'
2
-
1
+ begin
2
+ gem 'rdoc', '~> 3.12'
3
+ require 'rdoc/generator/chm'
4
+ rescue Gem::LoadError
5
+ end
@@ -1,4 +1,4 @@
1
- gem 'rdoc', '>= 2.4'
1
+ require 'rdoc/rdoc'
2
2
  require 'rdoc/generator/darkfish'
3
3
 
4
4
  class RDoc::AnyMethod
@@ -16,7 +16,9 @@ end
16
16
 
17
17
  class RDoc::Generator::CHM < RDoc::Generator::Darkfish
18
18
 
19
- VERSION = '2.4.2'
19
+ VERSION = '3.0.0'
20
+
21
+ DESCRIPTION = 'Microsoft Compiled HTML Help (chm) generator'
20
22
 
21
23
  RDoc::RDoc.add_generator( self )
22
24
 
@@ -28,21 +30,22 @@ class RDoc::Generator::CHM < RDoc::Generator::Darkfish
28
30
  end
29
31
 
30
32
  def check_for_html_help_workshop
31
- stat = File.stat(HHC_PATH)
32
- rescue
33
- $stderr <<
34
- "\n.chm output generation requires that Microsoft's Html Help\n" <<
35
- "Workshop is installed. RDoc looks for it in:\n\n " <<
36
- HHC_PATH <<
37
- "\n\nYou can download a copy for free from:\n\n" <<
38
- " http://msdn.microsoft.com/library/default.asp?" <<
39
- "url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp\n\n"
33
+ unless File.exists?(HHC_PATH)
34
+ warn <<
35
+ "\n.chm output generation requires that Microsoft's Html Help\n" <<
36
+ "Workshop is installed. RDoc looks for it in:\n\n " <<
37
+ HHC_PATH <<
38
+ "\n\nYou can download a copy for free from:\n\n" <<
39
+ " http://msdn.microsoft.com/library/default.asp?" <<
40
+ "url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp\n\n"
41
+ end
40
42
  end
41
43
 
44
+
42
45
  ##
43
46
  # Generate the html as normal, then wrap it in a help project
44
47
 
45
- def generate( top_levels )
48
+ def generate top_levels
46
49
  super
47
50
  @project_name = "#{@outputdir.basename}.hhp"
48
51
  generate_help_project
@@ -62,55 +65,55 @@ class RDoc::Generator::CHM < RDoc::Generator::Darkfish
62
65
  end
63
66
 
64
67
  def generate_file_index
65
- templatefile = @template_dir + 'fileindex.rhtml'
68
+ template_file = @template_dir + 'fileindex.rhtml'
66
69
 
67
- outfile = @outputdir + "fileindex.html"
68
- debug_msg " rendering #{outfile}"
69
- self.render_template( templatefile, binding(), outfile )
70
+ out_file = @outputdir + "fileindex.html"
71
+ debug_msg " rendering #{out_file}"
72
+ render_template template_file, out_file do |io| binding end
70
73
  end
71
74
 
72
75
  def generate_class_index
73
- templatefile = @template_dir + 'classindex.rhtml'
76
+ template_file = @template_dir + 'classindex.rhtml'
74
77
 
75
- outfile = @outputdir + "classindex.html"
76
- debug_msg " rendering #{outfile}"
77
- self.render_template( templatefile, binding(), outfile )
78
+ out_file = @outputdir + "classindex.html"
79
+ debug_msg " rendering #{out_file}"
80
+ render_template template_file, out_file do |io| binding end
78
81
  end
79
82
 
80
83
  ##
81
84
  # The project file links together all the various
82
85
  # files that go to make up the help.
83
86
  def generate_project_file
84
- templatefile = @template_dir + 'hpp_file.rhtml'
87
+ template_file = @template_dir + 'hpp_file.rhtml'
85
88
 
86
89
  @values = { :title => @options.title, :opname => @outputdir.basename }
87
90
 
88
91
  static_files = ['index.html', 'classindex.html', 'fileindex.html']
89
92
  @values[:html_files] = static_files + (@files+@classes).map{|f| f.path }
90
93
 
91
- outfile = @outputdir + @project_name
92
- debug_msg " rendering #{outfile}"
93
- self.render_template( templatefile, binding(), outfile )
94
+ out_file = @outputdir + @project_name
95
+ debug_msg " rendering #{out_file}"
96
+ render_template template_file, out_file do |io| binding end
94
97
  end
95
98
 
96
99
  ##
97
100
  # generate the CHM contents (contents.hhc)
98
101
  def generate_contents
99
- templatefile = @template_dir + 'contents.rhtml'
102
+ template_file = @template_dir + 'contents.rhtml'
100
103
 
101
- outfile = @outputdir + "contents.hhc"
102
- debug_msg " rendering #{outfile}"
103
- self.render_template( templatefile, binding(), outfile )
104
+ out_file = @outputdir + "contents.hhc"
105
+ debug_msg " rendering #{out_file}"
106
+ render_template template_file, out_file do |io| binding end
104
107
  end
105
108
 
106
109
  ##
107
110
  # generate the CHM index (index.hhk)
108
111
  def generate_chm_index
109
- templatefile = @template_dir + 'chm_index.rhtml'
112
+ template_file = @template_dir + 'chm_index.rhtml'
110
113
 
111
- outfile = @outputdir + "index.hhk"
112
- debug_msg " rendering #{outfile}"
113
- self.render_template( templatefile, binding(), outfile )
114
+ out_file = @outputdir + "index.hhk"
115
+ debug_msg " rendering #{out_file}"
116
+ render_template template_file, out_file do |io| binding end
114
117
  end
115
118
 
116
119
  ##
@@ -120,5 +123,50 @@ class RDoc::Generator::CHM < RDoc::Generator::Darkfish
120
123
  system(HHC_PATH, @project_name)
121
124
  end
122
125
 
126
+ ##
127
+ # This is an override to make sure that the new Darkfish template
128
+ # doesn't try to parse the CHM files as html partials
129
+ #
130
+ # TODO: If you want to refactor the html used in the template
131
+ # this should probably be a regex or something that checks to see
132
+ # if the file extension is html.
133
+ def assemble_template body_file
134
+ body = body_file.read
135
+ return body if body
136
+ end
137
+
138
+ ##
139
+ # The generate_file_files method in RDoc 3.12 is broken for 'legacy'
140
+ # template support. So this overrides that method so it works.
141
+ def generate_file_files
142
+ filepage_file = @template_dir + 'filepage.rhtml'
143
+
144
+ return unless filepage_file.exist?
145
+
146
+ debug_msg "Generating file documentation in #{@outputdir}"
147
+
148
+ out_file = nil
149
+ current = nil
150
+
151
+ @files.each do |file|
152
+ current = file
153
+ template_file = nil
154
+ out_file = @outputdir + file.path
155
+ debug_msg " working on %s (%s)" % [file.full_name, out_file]
156
+ # suppress 1.9.3 warning
157
+ rel_prefix = rel_prefix = @outputdir.relative_path_from(out_file.dirname)
158
+
159
+ @title += " - #{@options.title}"
160
+ template_file = filepage_file
161
+
162
+ render_template template_file, out_file do |io| binding end
163
+ end
164
+ rescue => e
165
+ error =
166
+ RDoc::Error.new "error generating #{out_file}: #{e.message} (#{e.class})"
167
+ error.set_backtrace e.backtrace
168
+
169
+ raise error
170
+ end
123
171
  end
124
172
 
@@ -12,7 +12,6 @@
12
12
  </head>
13
13
  <body class="indexpage">
14
14
 
15
- <% $stderr.sync = true %>
16
15
  <h1><%= h @options.title %></h1>
17
16
 
18
17
  <p>This is the API documentation for '<%= @options.title %>'.</p>
@@ -70,11 +70,6 @@
70
70
  <% end %>
71
71
  </div>
72
72
 
73
- <% if $DEBUG_RDOC %>
74
- <div id="debugging-toggle"><img src="<%= rel_prefix %>/images/bug.png"
75
- alt="toggle debugging" height="16" width="16" /></div>
76
- <% end %>
77
- </div>
78
73
  <!-- </div> -->
79
74
 
80
75
  <div id="description">
@@ -181,24 +176,5 @@
181
176
  end %>
182
177
 
183
178
  </div>
184
-
185
-
186
- <div id="rdoc-debugging-section-dump" class="debugging-section">
187
- <% if $DEBUG_RDOC
188
- require 'pp' %>
189
- <pre><%= h PP.pp(klass, _erbout) %></pre>
190
- </div>
191
- <% else %>
192
- <p>Disabled; run with --debug to generate this.</p>
193
- <% end %>
194
- </div>
195
-
196
- <div id="validator-badges">
197
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
198
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
199
- Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
200
- </div>
201
-
202
179
  </body>
203
180
  </html>
204
-
@@ -12,7 +12,6 @@
12
12
  </head>
13
13
  <body class="indexpage">
14
14
 
15
- <% $stderr.sync = true %>
16
15
  <h1><%= h @options.title %></h1>
17
16
 
18
17
  <p>This is the API documentation for '<%= @options.title %>'.</p>
@@ -17,7 +17,6 @@
17
17
  </head>
18
18
  <body class="indexpage">
19
19
 
20
- <% $stderr.sync = true %>
21
20
  <h1><%= h @options.title %></h1>
22
21
 
23
22
  <% if @options.main_page && main_page = @files.find { |f| f.full_name == @options.main_page } %>
@@ -51,26 +50,26 @@
51
50
  Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
52
51
  </div>
53
52
 
54
- <img class="hidden" src="images/brick.png"/>
55
- <img class="hidden" src="images/brick_link.png"/>
56
- <img class="hidden" src="images/bug.png"/>
57
- <img class="hidden" src="images/bullet_black.png"/>
58
- <img class="hidden" src="images/bullet_toggle_minus.png"/>
59
- <img class="hidden" src="images/bullet_toggle_plus.png"/>
60
- <img class="hidden" src="images/date.png"/>
61
- <img class="hidden" src="images/find.png"/>
62
- <img class="hidden" src="images/loadingAnimation.gif"/>
63
- <img class="hidden" src="images/macFFBgHack.png"/>
64
- <img class="hidden" src="images/package.png"/>
65
- <img class="hidden" src="images/page_green.png"/>
66
- <img class="hidden" src="images/page_white_text.png"/>
67
- <img class="hidden" src="images/page_white_width.png"/>
68
- <img class="hidden" src="images/plugin.png"/>
69
- <img class="hidden" src="images/ruby.png"/>
70
- <img class="hidden" src="images/tag_green.png"/>
71
- <img class="hidden" src="images/wrench.png"/>
72
- <img class="hidden" src="images/wrench_orange.png"/>
73
- <img class="hidden" src="images/zoom.png"/>
53
+ <img class="initially-hidden" src="images/brick.png"/>
54
+ <img class="initially-hidden" src="images/brick_link.png"/>
55
+ <img class="initially-hidden" src="images/bug.png"/>
56
+ <img class="initially-hidden" src="images/bullet_black.png"/>
57
+ <img class="initially-hidden" src="images/bullet_toggle_minus.png"/>
58
+ <img class="initially-hidden" src="images/bullet_toggle_plus.png"/>
59
+ <img class="initially-hidden" src="images/date.png"/>
60
+ <img class="initially-hidden" src="images/find.png"/>
61
+ <img class="initially-hidden" src="images/loadingAnimation.gif"/>
62
+ <img class="initially-hidden" src="images/macFFBgHack.png"/>
63
+ <img class="initially-hidden" src="images/package.png"/>
64
+ <img class="initially-hidden" src="images/page_green.png"/>
65
+ <img class="initially-hidden" src="images/page_white_text.png"/>
66
+ <img class="initially-hidden" src="images/page_white_width.png"/>
67
+ <img class="initially-hidden" src="images/plugin.png"/>
68
+ <img class="initially-hidden" src="images/ruby.png"/>
69
+ <img class="initially-hidden" src="images/tag_green.png"/>
70
+ <img class="initially-hidden" src="images/wrench.png"/>
71
+ <img class="initially-hidden" src="images/wrench_orange.png"/>
72
+ <img class="initially-hidden" src="images/zoom.png"/>
74
73
 
75
74
  </body>
76
75
  </html>
@@ -1,698 +1,543 @@
1
1
  /*
2
2
  * "Darkfish" Rdoc CSS
3
3
  * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
4
- *
4
+ *
5
5
  * Author: Michael Granger <ged@FaerieMUD.org>
6
- *
6
+ *
7
7
  */
8
8
 
9
9
  /* Base Green is: #6C8C22 */
10
10
 
11
- *{ padding: 0; margin: 0; }
11
+ * { padding: 0; margin: 0; }
12
12
 
13
13
  body {
14
- background: #efefef;
15
- font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
14
+ background: #efefef;
15
+ font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
16
+ margin-left: 40px;
16
17
  }
17
- /*body.class, body.module, body.file {
18
- margin-left: 40px;
19
- }*/
20
18
  body.file-popup {
21
- font-size: 90%;
22
- margin-left: 0;
19
+ font-size: 90%;
20
+ margin-left: 0;
23
21
  }
24
22
 
25
23
  h1 {
26
- font-size: 300%;
27
- text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
28
- color: #6C8C22;
24
+ font-size: 300%;
25
+ text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
26
+ color: #6C8C22;
29
27
  }
30
28
  h2,h3,h4 { margin-top: 1.5em; }
31
29
 
32
- a {
33
- color: #6C8C22;
34
- text-decoration: none;
30
+ :link,
31
+ :visited {
32
+ color: #6C8C22;
33
+ text-decoration: none;
35
34
  }
36
- a:hover {
37
- border-bottom: 1px dotted #6C8C22;
35
+ :link:hover,
36
+ :visited:hover {
37
+ border-bottom: 1px dotted #6C8C22;
38
38
  }
39
39
 
40
40
  pre {
41
- background: #ddd;
42
- padding: 0.5em 0;
41
+ background: #ddd;
42
+ padding: 0.5em 0;
43
43
  }
44
44
 
45
-
46
45
  /* @group Generic Classes */
47
46
 
48
47
  .initially-hidden {
49
- display: none;
48
+ display: none;
50
49
  }
51
50
 
52
- .quicksearch-field {
53
- width: 98%;
54
- background: #ddd;
55
- border: 1px solid #aaa;
56
- height: 1.5em;
57
- -webkit-border-radius: 4px;
51
+ #search-field {
52
+ width: 98%;
53
+ background: #eee;
54
+ border: none;
55
+ height: 1.5em;
56
+ -webkit-border-radius: 4px;
58
57
  }
59
- .quicksearch-field:focus {
60
- background: #f1edba;
58
+ #search-field:focus {
59
+ background: #f1edba;
60
+ }
61
+ #search-field:-moz-placeholder,
62
+ #search-field::-webkit-input-placeholder {
63
+ font-weight: bold;
64
+ color: #666;
61
65
  }
62
66
 
63
67
  .missing-docs {
64
- font-size: 120%;
65
- background: white url(images/wrench_orange.png) no-repeat 4px center;
66
- color: #ccc;
67
- line-height: 2em;
68
- border: 1px solid #d00;
69
- opacity: 1;
70
- padding-left: 20px;
71
- text-indent: 24px;
72
- letter-spacing: 3px;
73
- font-weight: bold;
74
- -webkit-border-radius: 5px;
75
- -moz-border-radius: 5px;
68
+ font-size: 120%;
69
+ background: white url(images/wrench_orange.png) no-repeat 4px center;
70
+ color: #ccc;
71
+ line-height: 2em;
72
+ border: 1px solid #d00;
73
+ opacity: 1;
74
+ padding-left: 20px;
75
+ text-indent: 24px;
76
+ letter-spacing: 3px;
77
+ font-weight: bold;
78
+ -webkit-border-radius: 5px;
79
+ -moz-border-radius: 5px;
76
80
  }
77
81
 
78
82
  .target-section {
79
- border: 2px solid #dcce90;
80
- border-left-width: 8px;
81
- padding: 0 1em;
82
- background: #fff3c2;
83
+ border: 2px solid #dcce90;
84
+ border-left-width: 8px;
85
+ padding: 0 1em;
86
+ background: #fff3c2;
83
87
  }
84
88
 
85
89
  /* @end */
86
90
 
87
-
88
91
  /* @group Index Page, Standalone file pages */
89
- body.indexpage {
90
- margin: 1em 3em;
92
+ .indexpage ul {
93
+ line-height: 160%;
94
+ list-style: none;
91
95
  }
92
- body.indexpage p,
93
- body.indexpage div,
94
- body.file p {
95
- margin: 1em 0;
96
+ .indexpage ul :link,
97
+ .indexpage ul :visited {
98
+ font-size: 16px;
96
99
  }
97
100
 
98
- .indexpage ul,
99
- .file #documentation ul {
100
- line-height: 160%;
101
- list-style: none;
102
- }
103
- .indexpage ul a,
104
- .file #documentation ul a {
105
- font-size: 16px;
101
+ .indexpage li {
102
+ padding-left: 20px;
106
103
  }
107
104
 
108
- .indexpage li,
109
- .file #documentation li {
110
- padding-left: 20px;
111
- background: url(images/bullet_black.png) no-repeat left 4px;
105
+ .indexpage ul > li {
106
+ background: url(images/bullet_black.png) no-repeat left 4px;
107
+ }
108
+ .indexpage li.method {
109
+ background: url(images/plugin.png) no-repeat left 4px;
112
110
  }
113
111
  .indexpage li.module {
114
- background: url(images/package.png) no-repeat left 4px;
112
+ background: url(images/package.png) no-repeat left 4px;
115
113
  }
116
114
  .indexpage li.class {
117
- background: url(images/ruby.png) no-repeat left 4px;
115
+ background: url(images/ruby.png) no-repeat left 4px;
118
116
  }
119
117
  .indexpage li.file {
120
- background: url(images/page_white_text.png) no-repeat left 4px;
118
+ background: url(images/page_white_text.png) no-repeat left 4px;
119
+ }
120
+ .indexpage li li {
121
+ background: url(images/tag_blue.png) no-repeat left 4px;
122
+ }
123
+ .indexpage li .toc-toggle {
124
+ width: 16px;
125
+ height: 16px;
126
+ background: url(images/add.png) no-repeat;
127
+ }
128
+
129
+ .indexpage li .toc-toggle.open {
130
+ background: url(images/delete.png) no-repeat;
121
131
  }
122
132
 
123
133
  /* @end */
124
134
 
125
135
  /* @group Top-Level Structure */
126
136
 
127
- .class #metadata,
128
- .file #metadata,
129
- .module #metadata {
130
- float: left;
131
- width: 260px;
137
+ #metadata {
138
+ float: left;
139
+ width: 260px;
132
140
  }
133
141
 
134
- .class #documentation,
135
- .file #documentation,
136
- .module #documentation {
142
+ #documentation {
137
143
  margin: 2em 1em 5em 5em;
138
- min-width: 340px;
139
- }
140
-
141
- .file #metadata {
142
- margin: 0.8em;
144
+ min-width: 340px;
143
145
  }
144
146
 
145
147
  #validator-badges {
146
- clear: both;
147
- margin: 1em 1em 2em;
148
+ clear: both;
149
+ margin: 1em 1em 2em;
150
+ font-size: smaller;
148
151
  }
149
152
 
150
153
  /* @end */
151
154
 
152
155
  /* @group Metadata Section */
153
156
  #metadata .section {
154
- background-color: #dedede;
155
- -moz-border-radius: 5px;
156
- -webkit-border-radius: 5px;
157
- border: 1px solid #aaa;
158
- margin: 0 8px 16px;
159
- font-size: 90%;
160
- overflow: hidden;
157
+ background-color: #dedede;
158
+ -moz-border-radius: 5px;
159
+ -webkit-border-radius: 5px;
160
+ border: 1px solid #aaa;
161
+ margin: 0 8px 8px;
162
+ font-size: 90%;
163
+ overflow: hidden;
161
164
  }
162
165
  #metadata h3.section-header {
163
- margin: 0;
164
- padding: 2px 8px;
165
- background: #ccc;
166
- color: #666;
167
- -moz-border-radius-topleft: 4px;
168
- -moz-border-radius-topright: 4px;
169
- -webkit-border-top-left-radius: 4px;
170
- -webkit-border-top-right-radius: 4px;
171
- border-bottom: 1px solid #aaa;
166
+ margin: 0;
167
+ padding: 2px 8px;
168
+ background: #ccc;
169
+ color: #666;
170
+ -moz-border-radius-topleft: 4px;
171
+ -moz-border-radius-topright: 4px;
172
+ -webkit-border-top-left-radius: 4px;
173
+ -webkit-border-top-right-radius: 4px;
174
+ border-bottom: 1px solid #aaa;
172
175
  }
176
+ #metadata #home-section h3.section-header {
177
+ border-bottom: 0;
178
+ }
179
+
173
180
  #metadata ul,
174
181
  #metadata dl,
175
182
  #metadata p {
176
- padding: 8px;
177
- list-style: none;
183
+ padding: 8px;
184
+ list-style: none;
185
+ }
186
+
187
+ #file-metadata {
188
+ margin-top: 2em;
178
189
  }
179
190
 
180
191
  #file-metadata ul {
181
- padding-left: 28px;
182
- list-style-image: url(images/page_green.png);
192
+ padding-left: 28px;
193
+ list-style-image: url(images/page_green.png);
183
194
  }
184
195
 
185
196
  dl.svninfo {
186
- color: #666;
187
- margin: 0;
197
+ color: #666;
198
+ margin: 0;
188
199
  }
189
200
  dl.svninfo dt {
190
- font-weight: bold;
201
+ font-weight: bold;
191
202
  }
192
203
 
193
204
  ul.link-list li {
194
- white-space: nowrap;
205
+ white-space: nowrap;
195
206
  }
196
207
  ul.link-list .type {
197
- font-size: 8px;
198
- text-transform: uppercase;
199
- color: white;
200
- background: #969696;
201
- padding: 2px 4px;
202
- -webkit-border-radius: 5px;
208
+ font-size: 8px;
209
+ text-transform: uppercase;
210
+ color: white;
211
+ background: #969696;
212
+ padding: 2px 4px;
213
+ -webkit-border-radius: 5px;
203
214
  }
204
215
 
205
216
  /* @end */
206
217
 
218
+ /* @group Class Metadata Section */
219
+ #class-metadata {
220
+ margin-top: 2em;
221
+ }
222
+ /* @end */
207
223
 
208
224
  /* @group Project Metadata Section */
209
225
  #project-metadata {
210
- margin-top: 3em;
211
- }
212
-
213
- .file #project-metadata {
214
- margin-top: 0em;
226
+ margin-top: 2em;
215
227
  }
216
228
 
217
229
  #project-metadata .section {
218
- border: 1px solid #aaa;
230
+ border: 1px solid #aaa;
219
231
  }
220
232
  #project-metadata h3.section-header {
221
- border-bottom: 1px solid #aaa;
222
- position: relative;
223
- }
224
- #project-metadata h3.section-header .search-toggle {
225
- position: absolute;
226
- right: 5px;
233
+ border-bottom: 1px solid #aaa;
234
+ position: relative;
227
235
  }
228
236
 
229
-
230
237
  #project-metadata form {
231
- color: #777;
232
- background: #ccc;
233
- padding: 8px 8px 16px;
234
- border-bottom: 1px solid #bbb;
235
- }
236
- #project-metadata fieldset {
237
- border: 0;
238
+ color: #777;
239
+ background: #ccc;
238
240
  }
239
241
 
240
- #no-class-search-results {
241
- margin: 0 auto 1em;
242
- text-align: center;
243
- font-size: 14px;
244
- font-weight: bold;
245
- color: #aaa;
242
+ /* @end */
243
+
244
+ /* @group Documentation Section */
245
+ .description {
246
+ font-size: 100%;
247
+ color: #333;
246
248
  }
247
249
 
248
- /* @end */
250
+ .description p {
251
+ margin: 1em 0.4em;
252
+ }
249
253
 
254
+ .description li p {
255
+ margin: 0;
256
+ }
250
257
 
251
- /* @group Documentation Section */
252
- #description {
253
- font-size: 100%;
254
- color: #333;
258
+ .description ol,
259
+ .description ul {
260
+ margin-left: 1.5em;
261
+ }
262
+ .description ol li,
263
+ .description ul li {
264
+ line-height: 1.4em;
255
265
  }
256
266
 
257
- #description p {
258
- margin: 1em 0.4em;
267
+ .note-list {
268
+ margin: 8px 0;
259
269
  }
260
270
 
261
- #description ul {
262
- margin-left: 2em;
271
+ .label-list {
272
+ margin: 8px 1.5em;
273
+ border: 1px solid #ccc;
263
274
  }
264
- #description ul li {
265
- line-height: 1.4em;
275
+ .description .label-list {
276
+ font-size: 14px;
266
277
  }
267
278
 
268
- #description dl,
269
- #documentation dl {
270
- margin: 8px 1.5em;
271
- border: 1px solid #ccc;
279
+ .note-list dt {
280
+ font-weight: bold;
272
281
  }
273
- #description dl {
274
- font-size: 14px;
282
+ .note-list dd {
283
+ padding: 0 12px;
275
284
  }
276
285
 
277
- #description dt,
278
- #documentation dt {
279
- padding: 2px 4px;
280
- font-weight: bold;
281
- background: #ddd;
286
+ .label-list dt {
287
+ padding: 2px 4px;
288
+ font-weight: bold;
289
+ background: #ddd;
282
290
  }
283
- #description dd,
284
- #documentation dd {
285
- padding: 2px 12px;
291
+ .label-list dd {
292
+ padding: 2px 12px;
286
293
  }
287
- #description dd + dt,
288
- #documentation dd + dt {
289
- margin-top: 0.7em;
294
+ .label-list dd + dt,
295
+ .note-list dd + dt {
296
+ margin-top: 0.7em;
290
297
  }
291
298
 
292
299
  #documentation .section {
293
- font-size: 90%;
300
+ font-size: 90%;
301
+ }
302
+
303
+ #documentation h2.section-header {
304
+ margin-top: 1em;
305
+ padding: 0.25em 0.5em;
306
+ background: #ccc;
307
+ color: #333;
308
+ font-size: 175%;
309
+ border: 1px solid #bbb;
310
+ -moz-border-radius: 3px;
311
+ -webkit-border-radius: 3px;
312
+ }
313
+
314
+ .documentation-section-title {
315
+ position: relative;
316
+ }
317
+ .documentation-section-title .section-click-top {
318
+ position: absolute;
319
+ top: 6px;
320
+ right: 12px;
321
+ font-size: 10px;
322
+ color: #9b9877;
323
+ visibility: hidden;
324
+ padding-right: 0.5px;
325
+ }
326
+
327
+ .documentation-section-title:hover .section-click-top {
328
+ visibility: visible;
294
329
  }
330
+
295
331
  #documentation h3.section-header {
296
- margin-top: 2em;
297
- padding: 0.75em 0.5em;
298
- background-color: #dedede;
299
- color: #333;
300
- font-size: 150%;
301
- border: 1px solid #bbb;
302
- -moz-border-radius: 3px;
303
- -webkit-border-radius: 3px;
332
+ margin-top: 1em;
333
+ padding: 0.25em 0.5em;
334
+ background-color: #dedede;
335
+ color: #333;
336
+ font-size: 150%;
337
+ border: 1px solid #bbb;
338
+ -moz-border-radius: 3px;
339
+ -webkit-border-radius: 3px;
304
340
  }
305
341
 
306
342
  #constants-list > dl,
307
343
  #attributes-list > dl {
308
- margin: 1em 0 2em;
309
- border: 0;
344
+ margin: 1em 0 2em;
345
+ border: 0;
310
346
  }
311
347
  #constants-list > dl dt,
312
348
  #attributes-list > dl dt {
313
- padding-left: 0;
314
- font-weight: bold;
315
- font-family: Monaco, "Andale Mono";
316
- background: inherit;
349
+ padding-left: 0;
350
+ font-weight: bold;
351
+ font-family: Monaco, "Andale Mono";
352
+ background: inherit;
317
353
  }
318
354
  #constants-list > dl dt a,
319
355
  #attributes-list > dl dt a {
320
- color: inherit;
356
+ color: inherit;
321
357
  }
322
358
  #constants-list > dl dd,
323
359
  #attributes-list > dl dd {
324
- margin: 0 0 1em 0;
325
- padding: 0;
326
- color: #666;
360
+ margin: 0 0 1em 0;
361
+ padding: 0;
362
+ color: #666;
363
+ }
364
+
365
+ .documentation-section h2 {
366
+ position: relative;
367
+ }
368
+
369
+ .documentation-section h2 a {
370
+ position: absolute;
371
+ top: 8px;
372
+ right: 10px;
373
+ font-size: 12px;
374
+ color: #9b9877;
375
+ visibility: hidden;
376
+ }
377
+
378
+ .documentation-section h2:hover a {
379
+ visibility: visible;
327
380
  }
328
381
 
329
382
  /* @group Method Details */
330
383
 
331
384
  #documentation .method-source-code {
332
- display: none;
385
+ display: none;
333
386
  }
334
387
 
335
388
  #documentation .method-detail {
336
- margin: 0.5em 0;
337
- padding: 0.5em 0;
338
- cursor: pointer;
389
+ margin: 0.5em 0;
390
+ padding: 0.5em 0;
391
+ cursor: pointer;
339
392
  }
340
393
  #documentation .method-detail:hover {
341
- background-color: #f1edba;
342
- }
343
- #documentation .method-alias {
344
- font-style: oblique;
394
+ background-color: #f1edba;
345
395
  }
346
396
  #documentation .method-heading {
347
- position: relative;
348
- padding: 2px 4px 0 20px;
349
- font-size: 125%;
350
- font-weight: bold;
351
- color: #333;
352
- background: url(images/brick.png) no-repeat left bottom;
397
+ position: relative;
398
+ padding: 2px 4px 0 20px;
399
+ font-size: 125%;
400
+ font-weight: bold;
401
+ color: #333;
402
+ background: url(images/brick.png) no-repeat left bottom;
353
403
  }
354
- #documentation .method-heading a {
355
- color: inherit;
404
+ #documentation .method-heading :link,
405
+ #documentation .method-heading :visited {
406
+ color: inherit;
356
407
  }
357
408
  #documentation .method-click-advice {
358
- position: absolute;
359
- top: 2px;
360
- right: 5px;
361
- font-size: 10px;
362
- color: #9b9877;
363
- visibility: hidden;
364
- padding-right: 20px;
365
- line-height: 20px;
366
- background: url(images/zoom.png) no-repeat right top;
409
+ position: absolute;
410
+ top: 2px;
411
+ right: 5px;
412
+ font-size: 10px;
413
+ color: #9b9877;
414
+ visibility: hidden;
415
+ padding-right: 20px;
416
+ line-height: 20px;
417
+ background: url(images/zoom.png) no-repeat right top;
367
418
  }
368
- #documentation .method-detail:hover .method-click-advice {
369
- visibility: visible;
419
+ #documentation .method-heading:hover .method-click-advice {
420
+ visibility: visible;
370
421
  }
371
422
 
372
423
  #documentation .method-alias .method-heading {
373
- color: #666;
374
- background: url(images/brick_link.png) no-repeat left bottom;
424
+ color: #666;
425
+ background: url(images/brick_link.png) no-repeat left bottom;
375
426
  }
376
427
 
377
428
  #documentation .method-description,
378
429
  #documentation .aliases {
379
- margin: 0 20px;
380
- line-height: 1.2em;
381
- color: #666;
430
+ margin: 0 20px;
431
+ color: #666;
432
+ }
433
+
434
+ #documentation .method-description p,
435
+ #documentation .aliases p {
436
+ line-height: 1.2em;
382
437
  }
438
+
383
439
  #documentation .aliases {
384
- padding-top: 4px;
385
- font-style: italic;
386
- cursor: default;
440
+ padding-top: 4px;
441
+ font-style: italic;
442
+ cursor: default;
387
443
  }
388
444
  #documentation .method-description p {
389
- padding: 0;
445
+ margin-bottom: 0.5em;
446
+ }
447
+ #documentation .method-description ul {
448
+ margin-left: 1.5em;
390
449
  }
391
- #documentation .method-description p + p {
392
- margin-bottom: 0.5em;
450
+ pre {
451
+ margin: 0.5em 0;
393
452
  }
394
453
 
395
454
  #documentation .attribute-method-heading {
396
- background: url(images/tag_green.png) no-repeat left bottom;
455
+ background: url(images/tag_green.png) no-repeat left bottom;
397
456
  }
398
457
  #documentation #attribute-method-details .method-detail:hover {
399
- background-color: transparent;
400
- cursor: default;
458
+ background-color: transparent;
459
+ cursor: default;
401
460
  }
402
461
  #documentation .attribute-access-type {
403
- font-size: 60%;
404
- text-transform: uppercase;
405
- vertical-align: super;
406
- padding: 0 2px;
462
+ font-size: 60%;
463
+ text-transform: uppercase;
464
+ vertical-align: super;
465
+ padding: 0 2px;
407
466
  }
408
467
  /* @end */
409
468
 
410
469
  /* @end */
411
470
 
412
-
413
-
414
471
  /* @group Source Code */
415
472
 
416
- a.source-toggle {
417
- font-size: 90%;
418
- }
419
- a.source-toggle img {
420
-
421
- }
422
-
423
- div.method-source-code {
424
- background: #262626;
425
- color: #efefef;
426
- margin: 1em;
427
- padding: 0.5em;
428
- border: 1px dashed #999;
429
- overflow: hidden;
473
+ pre {
474
+ overflow: auto;
475
+ background: #262626;
476
+ color: white;
477
+ border: 1px dashed #999;
478
+ padding: 0.5em;
430
479
  }
431
480
 
432
- div.method-source-code pre {
433
- background: #262626;
434
- padding: 0;
435
- color: white;
436
- overflow: hidden;
437
- }
438
- IMG.hidden {
439
- display: none;
481
+ .description pre {
482
+ margin: 0 0.4em;
440
483
  }
441
- /* @group Ruby keyword styles */
442
484
 
443
- .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
444
-
445
- .ruby-constant { color: #7fffd4; background: transparent; }
446
- .ruby-keyword { color: #00ffff; background: transparent; }
447
- .ruby-ivar { color: #eedd82; background: transparent; }
448
- .ruby-operator { color: #00ffee; background: transparent; }
485
+ .ruby-constant { color: #7fffd4; background: transparent; }
486
+ .ruby-keyword { color: #00ffff; background: transparent; }
487
+ .ruby-ivar { color: #eedd82; background: transparent; }
488
+ .ruby-operator { color: #00ffee; background: transparent; }
449
489
  .ruby-identifier { color: #ffdead; background: transparent; }
450
- .ruby-node { color: #ffa07a; background: transparent; }
451
- .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
452
- .ruby-regexp { color: #ffa07a; background: transparent; }
453
- .ruby-value { color: #7fffd4; background: transparent; }
454
-
455
- /* @end */
456
- /* @end */
457
-
458
-
459
- /* @group File Popup Contents */
460
-
461
- .file #metadata,
462
- .file-popup #metadata {
463
- }
464
-
465
- .file-popup dl {
466
- font-size: 80%;
467
- padding: 0.75em;
468
- background-color: #dedede;
469
- color: #333;
470
- border: 1px solid #bbb;
471
- -moz-border-radius: 3px;
472
- -webkit-border-radius: 3px;
473
- }
474
- .file dt {
475
- font-weight: bold;
476
- padding-left: 22px;
477
- line-height: 20px;
478
- background: url(images/page_white_width.png) no-repeat left top;
479
- }
480
- .file dt.modified-date {
481
- background: url(images/date.png) no-repeat left top;
482
- }
483
- .file dt.requires {
484
- background: url(images/plugin.png) no-repeat left top;
485
- }
486
- .file dt.scs-url {
487
- background: url(images/wrench.png) no-repeat left top;
488
- }
489
-
490
- .file dl dd {
491
- margin: 0 0 1em 0;
492
- }
493
- .file #metadata dl dd ul {
494
- list-style: circle;
495
- margin-left: 20px;
496
- padding-top: 0;
497
- }
498
- .file #metadata dl dd ul li {
499
- }
500
-
501
-
502
- .file h2 {
503
- margin-top: 2em;
504
- padding: 0.75em 0.5em;
505
- background-color: #dedede;
506
- color: #333;
507
- font-size: 120%;
508
- border: 1px solid #bbb;
509
- -moz-border-radius: 3px;
510
- -webkit-border-radius: 3px;
511
- }
490
+ .ruby-node { color: #ffa07a; background: transparent; }
491
+ .ruby-comment { color: #dc0000; font-weight: bold; background: transparent; }
492
+ .ruby-regexp { color: #ffa07a; background: transparent; }
493
+ .ruby-value { color: #7fffd4; background: transparent; }
512
494
 
513
495
  /* @end */
514
496
 
515
497
 
516
-
517
-
518
- /* @group ThickBox Styles */
519
- #TB_window {
520
- font: 12px Arial, Helvetica, sans-serif;
521
- color: #333333;
522
- }
523
-
524
- #TB_secondLine {
525
- font: 10px Arial, Helvetica, sans-serif;
526
- color:#666666;
527
- }
528
-
529
- #TB_window a:link {color: #666666;}
530
- #TB_window a:visited {color: #666666;}
531
- #TB_window a:hover {color: #000;}
532
- #TB_window a:active {color: #666666;}
533
- #TB_window a:focus{color: #666666;}
534
-
535
- #TB_overlay {
536
- position: fixed;
537
- z-index:100;
538
- top: 0px;
539
- left: 0px;
540
- height:100%;
541
- width:100%;
542
- }
543
-
544
- .TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
545
- .TB_overlayBG {
546
- background-color:#000;
547
- filter:alpha(opacity=75);
548
- -moz-opacity: 0.75;
549
- opacity: 0.75;
550
- }
551
-
552
- * html #TB_overlay { /* ie6 hack */
553
- position: absolute;
554
- height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
555
- }
556
-
557
- #TB_window {
558
- position: fixed;
559
- background: #ffffff;
560
- z-index: 102;
561
- color:#000000;
562
- display:none;
563
- border: 4px solid #525252;
564
- text-align:left;
565
- top:50%;
566
- left:50%;
567
- }
568
-
569
- * html #TB_window { /* ie6 hack */
570
- position: absolute;
571
- margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
572
- }
573
-
574
- #TB_window img#TB_Image {
575
- display:block;
576
- margin: 15px 0 0 15px;
577
- border-right: 1px solid #ccc;
578
- border-bottom: 1px solid #ccc;
579
- border-top: 1px solid #666;
580
- border-left: 1px solid #666;
581
- }
582
-
583
- #TB_caption{
584
- height:25px;
585
- padding:7px 30px 10px 25px;
586
- float:left;
587
- }
588
-
589
- #TB_closeWindow{
590
- height:25px;
591
- padding:11px 25px 10px 0;
592
- float:right;
593
- }
594
-
595
- #TB_closeAjaxWindow{
596
- padding:7px 10px 5px 0;
597
- margin-bottom:1px;
598
- text-align:right;
599
- float:right;
600
- }
601
-
602
- #TB_ajaxWindowTitle{
603
- float:left;
604
- padding:7px 0 5px 10px;
605
- margin-bottom:1px;
606
- font-size: 22px;
607
- }
608
-
609
- #TB_title{
610
- background-color: #6C8C22;
611
- color: #dedede;
612
- height:40px;
613
- }
614
- #TB_title a {
615
- color: white !important;
616
- border-bottom: 1px dotted #dedede;
617
- }
618
-
619
- #TB_ajaxContent{
620
- clear:both;
621
- padding:2px 15px 15px 15px;
622
- overflow:auto;
623
- text-align:left;
624
- line-height:1.4em;
498
+ /* @group search results */
499
+ #search-results h1 {
500
+ font-size: 1em;
501
+ font-weight: normal;
502
+ text-shadow: none;
625
503
  }
626
504
 
627
- #TB_ajaxContent.TB_modal{
628
- padding:15px;
505
+ #search-results .current {
506
+ background: #ccc;
507
+ border-bottom: 1px solid transparent;
629
508
  }
630
509
 
631
- #TB_ajaxContent p{
632
- padding:5px 0px 5px 0px;
510
+ #search-results li {
511
+ list-style: none;
512
+ border-bottom: 1px solid #aaa;
513
+ -moz-border-radius: 4px;
514
+ -webkit-border-radius: 4px;
515
+ border-radius: 4px;
516
+ margin-bottom: 0.5em;
633
517
  }
634
518
 
635
- #TB_load{
636
- position: fixed;
637
- display:none;
638
- height:13px;
639
- width:208px;
640
- z-index:103;
641
- top: 50%;
642
- left: 50%;
643
- margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
519
+ #search-results li:last-child {
520
+ border-bottom: none;
521
+ margin-bottom: 0;
644
522
  }
645
523
 
646
- * html #TB_load { /* ie6 hack */
647
- position: absolute;
648
- margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
524
+ #search-results li p {
525
+ padding: 0;
526
+ margin: 0.5em;
649
527
  }
650
528
 
651
- #TB_HideSelect{
652
- z-index:99;
653
- position:fixed;
654
- top: 0;
655
- left: 0;
656
- background-color:#fff;
657
- border:none;
658
- filter:alpha(opacity=0);
659
- -moz-opacity: 0;
660
- opacity: 0;
661
- height:100%;
662
- width:100%;
529
+ #search-results .search-namespace {
530
+ font-weight: bold;
663
531
  }
664
532
 
665
- * html #TB_HideSelect { /* ie6 hack */
666
- position: absolute;
667
- height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
533
+ #search-results li em {
534
+ background: yellow;
535
+ font-style: normal;
668
536
  }
669
537
 
670
- #TB_iframeContent{
671
- clear:both;
672
- border:none;
673
- margin-bottom:-1px;
674
- margin-top:1px;
675
- _margin-bottom:1px;
538
+ #search-results pre {
539
+ margin: 0.5em;
676
540
  }
677
541
 
678
542
  /* @end */
679
543
 
680
- /* @group Debugging Section */
681
-
682
- #debugging-toggle {
683
- text-align: center;
684
- }
685
- #debugging-toggle img {
686
- cursor: pointer;
687
- }
688
-
689
- #rdoc-debugging-section-dump {
690
- display: none;
691
- margin: 0 2em 2em;
692
- background: #ccc;
693
- border: 1px solid #999;
694
- }
695
-
696
-
697
-
698
- /* @end */