rdoc 3.9.5 → 3.10.pre.1

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.

Files changed (183) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.autotest +6 -3
  3. data/History.txt +63 -13
  4. data/LICENSE.rdoc +57 -0
  5. data/Manifest.txt +60 -6
  6. data/Rakefile +24 -12
  7. data/TODO.rdoc +30 -0
  8. data/bin/rdoc +0 -2
  9. data/lib/rdoc.rb +55 -2
  10. data/lib/rdoc/alias.rb +0 -2
  11. data/lib/rdoc/anon_class.rb +0 -2
  12. data/lib/rdoc/any_method.rb +0 -3
  13. data/lib/rdoc/attr.rb +0 -2
  14. data/lib/rdoc/class_module.rb +40 -7
  15. data/lib/rdoc/code_object.rb +1 -3
  16. data/lib/rdoc/code_objects.rb +3 -21
  17. data/lib/rdoc/comment.rb +225 -0
  18. data/lib/rdoc/constant.rb +0 -2
  19. data/lib/rdoc/context.rb +37 -120
  20. data/lib/rdoc/context/section.rb +114 -0
  21. data/lib/rdoc/cross_reference.rb +16 -7
  22. data/lib/rdoc/encoding.rb +0 -2
  23. data/lib/rdoc/gauntlet.rb +1 -1
  24. data/lib/rdoc/generator.rb +7 -2
  25. data/lib/rdoc/generator/darkfish.rb +126 -20
  26. data/lib/rdoc/generator/json_index.rb +240 -0
  27. data/lib/rdoc/generator/markup.rb +17 -54
  28. data/lib/rdoc/generator/ri.rb +0 -3
  29. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
  30. data/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -0
  31. data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +18 -0
  32. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
  33. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +8 -0
  34. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +16 -0
  35. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
  36. data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +7 -0
  37. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
  38. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +10 -0
  39. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +10 -0
  40. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +10 -0
  41. data/lib/rdoc/generator/template/darkfish/class.rhtml +161 -0
  42. data/lib/rdoc/generator/template/darkfish/fileinfo.rhtml +32 -0
  43. data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
  44. data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
  45. data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  46. data/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
  47. data/lib/rdoc/generator/template/darkfish/index.rhtml +16 -61
  48. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +99 -64
  49. data/lib/rdoc/generator/template/darkfish/js/jquery.js +15 -29
  50. data/lib/rdoc/generator/template/darkfish/js/search.js +94 -0
  51. data/lib/rdoc/generator/template/darkfish/page.rhtml +16 -0
  52. data/lib/rdoc/generator/template/darkfish/rdoc.css +126 -286
  53. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +50 -0
  54. data/lib/rdoc/generator/template/json_index/js/navigation.js +142 -0
  55. data/lib/rdoc/generator/template/json_index/js/searcher.js +228 -0
  56. data/lib/rdoc/ghost_method.rb +0 -2
  57. data/lib/rdoc/include.rb +0 -2
  58. data/lib/rdoc/markup.rb +204 -43
  59. data/lib/rdoc/markup/attr_changer.rb +25 -0
  60. data/lib/rdoc/markup/attr_span.rb +29 -0
  61. data/lib/rdoc/markup/attribute.rb +51 -0
  62. data/lib/rdoc/markup/document.rb +22 -1
  63. data/lib/rdoc/markup/formatter.rb +4 -11
  64. data/lib/rdoc/markup/formatter_test_case.rb +1 -2
  65. data/lib/rdoc/markup/heading.rb +44 -0
  66. data/lib/rdoc/markup/include.rb +42 -0
  67. data/lib/rdoc/markup/inline.rb +1 -144
  68. data/lib/rdoc/markup/list.rb +2 -1
  69. data/lib/rdoc/markup/parser.rb +6 -16
  70. data/lib/rdoc/markup/pre_process.rb +64 -10
  71. data/lib/rdoc/markup/raw.rb +1 -1
  72. data/lib/rdoc/markup/special.rb +40 -0
  73. data/lib/rdoc/markup/text_formatter_test_case.rb +0 -2
  74. data/lib/rdoc/markup/to_ansi.rb +0 -2
  75. data/lib/rdoc/markup/to_bs.rb +0 -2
  76. data/lib/rdoc/markup/to_html.rb +102 -34
  77. data/lib/rdoc/markup/to_html_crossref.rb +36 -5
  78. data/lib/rdoc/markup/to_html_snippet.rb +270 -0
  79. data/lib/rdoc/markup/to_label.rb +55 -0
  80. data/lib/rdoc/markup/to_rdoc.rb +0 -3
  81. data/lib/rdoc/markup/to_table_of_contents.rb +62 -0
  82. data/lib/rdoc/markup/to_test.rb +0 -3
  83. data/lib/rdoc/markup/to_tt_only.rb +0 -3
  84. data/lib/rdoc/markup/verbatim.rb +18 -0
  85. data/lib/rdoc/meta_method.rb +0 -2
  86. data/lib/rdoc/method_attr.rb +17 -1
  87. data/lib/rdoc/normal_class.rb +0 -2
  88. data/lib/rdoc/normal_module.rb +0 -2
  89. data/lib/rdoc/options.rb +18 -3
  90. data/lib/rdoc/parser.rb +74 -42
  91. data/lib/rdoc/parser/c.rb +79 -118
  92. data/lib/rdoc/parser/rd.rb +22 -0
  93. data/lib/rdoc/parser/ruby.rb +86 -54
  94. data/lib/rdoc/parser/simple.rb +21 -9
  95. data/lib/rdoc/parser/text.rb +11 -0
  96. data/lib/rdoc/rd.rb +95 -0
  97. data/lib/rdoc/rd/block_parser.ry +638 -0
  98. data/lib/rdoc/rd/inline.rb +71 -0
  99. data/lib/rdoc/rd/inline_parser.ry +575 -0
  100. data/lib/rdoc/rdoc.rb +8 -23
  101. data/lib/rdoc/require.rb +0 -2
  102. data/lib/rdoc/ri.rb +4 -2
  103. data/lib/rdoc/ri/driver.rb +2 -6
  104. data/lib/rdoc/ri/store.rb +0 -1
  105. data/lib/rdoc/ruby_lex.rb +43 -20
  106. data/lib/rdoc/ruby_token.rb +44 -2
  107. data/lib/rdoc/single_class.rb +0 -2
  108. data/lib/rdoc/stats.rb +0 -5
  109. data/lib/rdoc/task.rb +2 -6
  110. data/lib/rdoc/test_case.rb +59 -0
  111. data/lib/rdoc/text.rb +42 -30
  112. data/lib/rdoc/token_stream.rb +45 -0
  113. data/lib/rdoc/tom_doc.rb +232 -0
  114. data/lib/rdoc/top_level.rb +36 -4
  115. data/test/test_attribute_manager.rb +26 -29
  116. data/test/test_rdoc_any_method.rb +2 -26
  117. data/test/test_rdoc_attr.rb +4 -4
  118. data/test/test_rdoc_class_module.rb +95 -12
  119. data/test/test_rdoc_code_object.rb +10 -3
  120. data/test/test_rdoc_comment.rb +504 -0
  121. data/test/test_rdoc_context.rb +60 -11
  122. data/test/test_rdoc_context_section.rb +16 -17
  123. data/test/test_rdoc_cross_reference.rb +17 -2
  124. data/test/test_rdoc_encoding.rb +4 -7
  125. data/test/test_rdoc_generator_darkfish.rb +12 -11
  126. data/test/test_rdoc_generator_json_index.rb +255 -0
  127. data/test/test_rdoc_generator_markup.rb +56 -0
  128. data/test/test_rdoc_generator_ri.rb +8 -11
  129. data/test/test_rdoc_markup.rb +9 -5
  130. data/test/test_rdoc_markup_attribute_manager.rb +5 -8
  131. data/test/test_rdoc_markup_document.rb +34 -6
  132. data/test/test_rdoc_markup_formatter.rb +11 -13
  133. data/test/test_rdoc_markup_heading.rb +20 -0
  134. data/test/test_rdoc_markup_include.rb +19 -0
  135. data/test/test_rdoc_markup_indented_paragraph.rb +4 -5
  136. data/test/test_rdoc_markup_paragraph.rb +2 -5
  137. data/test/test_rdoc_markup_parser.rb +87 -7
  138. data/test/test_rdoc_markup_pre_process.rb +60 -9
  139. data/test/test_rdoc_markup_raw.rb +4 -6
  140. data/test/test_rdoc_markup_to_ansi.rb +1 -4
  141. data/test/test_rdoc_markup_to_bs.rb +1 -4
  142. data/test/test_rdoc_markup_to_html.rb +170 -31
  143. data/test/test_rdoc_markup_to_html_crossref.rb +89 -11
  144. data/test/test_rdoc_markup_to_html_snippet.rb +668 -0
  145. data/test/test_rdoc_markup_to_label.rb +50 -0
  146. data/test/test_rdoc_markup_to_rdoc.rb +1 -4
  147. data/test/test_rdoc_markup_to_table_of_contents.rb +90 -0
  148. data/test/test_rdoc_markup_to_tt_only.rb +1 -4
  149. data/test/test_rdoc_markup_verbatim.rb +16 -0
  150. data/test/test_rdoc_method_attr.rb +16 -1
  151. data/test/test_rdoc_options.rb +17 -7
  152. data/test/test_rdoc_parser.rb +75 -6
  153. data/test/test_rdoc_parser_c.rb +56 -104
  154. data/test/test_rdoc_parser_rd.rb +52 -0
  155. data/test/test_rdoc_parser_ruby.rb +264 -323
  156. data/test/test_rdoc_parser_simple.rb +33 -17
  157. data/test/test_rdoc_rd.rb +30 -0
  158. data/test/test_rdoc_rd_block_parser.rb +527 -0
  159. data/test/test_rdoc_rd_inline.rb +63 -0
  160. data/test/test_rdoc_rd_inline_parser.rb +173 -0
  161. data/test/test_rdoc_rdoc.rb +7 -9
  162. data/test/test_rdoc_ri_driver.rb +10 -15
  163. data/test/test_rdoc_ri_paths.rb +6 -6
  164. data/test/test_rdoc_ri_store.rb +6 -13
  165. data/test/test_rdoc_ruby_lex.rb +53 -5
  166. data/test/test_rdoc_rubygems_hook.rb +2 -1
  167. data/test/test_rdoc_stats.rb +83 -103
  168. data/test/test_rdoc_task.rb +5 -4
  169. data/test/test_rdoc_text.rb +156 -11
  170. data/test/test_rdoc_token_stream.rb +42 -0
  171. data/test/test_rdoc_tom_doc.rb +458 -0
  172. data/test/test_rdoc_top_level.rb +49 -2
  173. data/test/xref_test_case.rb +4 -8
  174. metadata +217 -111
  175. metadata.gz.sig +0 -0
  176. checksums.yaml +0 -7
  177. checksums.yaml.gz.sig +0 -0
  178. data/CVE-2013-0256.rdoc +0 -49
  179. data/LICENSE.txt +0 -57
  180. data/lib/rdoc/generator/template/darkfish/classpage.rhtml +0 -321
  181. data/lib/rdoc/generator/template/darkfish/filepage.rhtml +0 -124
  182. data/lib/rdoc/generator/template/darkfish/js/quicksearch.js +0 -114
  183. data/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js +0 -10
@@ -0,0 +1,240 @@
1
+ require 'json'
2
+
3
+ ##
4
+ # The JsonIndex generator is designed to complement an HTML generator and
5
+ # produces a JSON search index. This generator is derived from sdoc by
6
+ # Vladimir Kolesnikov and contains verbatim code written by him.
7
+ #
8
+ # This generator is designed to be used with a regular HTML generator:
9
+ #
10
+ # class RDoc::Generator::Darkfish
11
+ # def initialize options
12
+ # # ...
13
+ # @base_dir = Pathname.pwd.expand_path
14
+ #
15
+ # @json_index = RDoc::Generator::JsonIndex.new self, options
16
+ # end
17
+ #
18
+ # def generate top_levels
19
+ # # ...
20
+ # @json_index.generate top_levels
21
+ # end
22
+ # end
23
+ #
24
+ # == Index Format
25
+ #
26
+ # The index is output as a JSON file assigned to the global variable
27
+ # +search_data+. The structure is:
28
+ #
29
+ # var search_data = {
30
+ # "index": {
31
+ # "searchIndex":
32
+ # ["a", "b", ...],
33
+ # "longSearchIndex":
34
+ # ["a", "a::b", ...],
35
+ # "info": [
36
+ # ["A", "A", "A.html", "", ""],
37
+ # ["B", "A::B", "A::B.html", "", ""],
38
+ # ...
39
+ # ]
40
+ # }
41
+ # }
42
+ #
43
+ # The same item is described across the +searchIndex+, +longSearchIndex+ and
44
+ # +info+ fields. The +searchIndex+ field contains the item's short name, the
45
+ # +longSearchIndex+ field contains the full_name (when appropriate) and the
46
+ # +info+ field contains the item's name, full_name, path, parameters and a
47
+ # snippet of the item's comment.
48
+ #
49
+ # == LICENSE
50
+ #
51
+ # Copyright (c) 2009 Vladimir Kolesnikov
52
+ #
53
+ # Permission is hereby granted, free of charge, to any person obtaining
54
+ # a copy of this software and associated documentation files (the
55
+ # "Software"), to deal in the Software without restriction, including
56
+ # without limitation the rights to use, copy, modify, merge, publish,
57
+ # distribute, sublicense, and/or sell copies of the Software, and to
58
+ # permit persons to whom the Software is furnished to do so, subject to
59
+ # the following conditions:
60
+ #
61
+ # The above copyright notice and this permission notice shall be
62
+ # included in all copies or substantial portions of the Software.
63
+ #
64
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
65
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
66
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
67
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
68
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
69
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
70
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71
+
72
+ class RDoc::Generator::JsonIndex
73
+
74
+ include RDoc::Text
75
+
76
+ ##
77
+ # Where the search index lives in the generated output
78
+
79
+ SEARCH_INDEX_FILE = File.join 'js', 'search_index.js'
80
+
81
+ attr_reader :index # :nodoc:
82
+
83
+ ##
84
+ # Creates a new generator. +parent_generator+ is used to determine the
85
+ # class_dir and file_dir of links in the output index.
86
+ #
87
+ # +options+ are the same options passed to the parent generator.
88
+
89
+ def initialize parent_generator, options
90
+ @parent_generator = parent_generator
91
+ @options = options
92
+
93
+ @template_dir = File.expand_path '../template/json_index', __FILE__
94
+ @base_dir = @parent_generator.base_dir
95
+
96
+ @classes = nil
97
+ @files = nil
98
+ @index = nil
99
+ end
100
+
101
+ ##
102
+ # Output progress information if debugging is enabled
103
+
104
+ def debug_msg *msg
105
+ return unless $DEBUG_RDOC
106
+ $stderr.puts(*msg)
107
+ end
108
+
109
+ ##
110
+ # Creates the JSON index.
111
+
112
+ def generate top_levels
113
+ debug_msg "Generating JSON index"
114
+
115
+ reset top_levels.sort, RDoc::TopLevel.all_classes_and_modules.sort
116
+
117
+ index_classes
118
+ index_methods
119
+ index_pages
120
+
121
+ debug_msg " writing search index to %s" % SEARCH_INDEX_FILE
122
+ data = { :index => @index }
123
+
124
+ return if @options.dry_run
125
+
126
+ out_dir = @base_dir + @options.op_dir
127
+ index_file = out_dir + SEARCH_INDEX_FILE
128
+
129
+ FileUtils.mkdir_p index_file.dirname, :verbose => $DEBUG_RDOC
130
+
131
+ index_file.open 'w', 0644 do |io|
132
+ io.set_encoding Encoding::UTF_8 if Object.const_defined? :Encoding
133
+ io.write 'var search_data = '
134
+
135
+ JSON.dump data, io, 0
136
+ end
137
+
138
+ Dir.chdir @template_dir do
139
+ Dir['**/*.js'].each do |source|
140
+ dest = File.join out_dir, source
141
+
142
+ FileUtils.install source, dest, :mode => 0644, :verbose => $DEBUG_RDOC
143
+ end
144
+ end
145
+ end
146
+
147
+ ##
148
+ # Adds classes and modules to the index
149
+
150
+ def index_classes
151
+ debug_msg " generating class search index"
152
+
153
+ documented = @classes.uniq.select do |klass|
154
+ klass.document_self_or_methods
155
+ end
156
+
157
+ documented.each do |klass|
158
+ debug_msg " #{klass.full_name}"
159
+ record = klass.search_record
160
+ @index[:searchIndex] << search_string(record.shift)
161
+ @index[:longSearchIndex] << search_string(record.shift)
162
+ @index[:info] << record
163
+ end
164
+ end
165
+
166
+ ##
167
+ # Adds methods to the index
168
+
169
+ def index_methods
170
+ debug_msg " generating method search index"
171
+
172
+ list = @classes.uniq.map do |klass|
173
+ klass.method_list
174
+ end.flatten.sort_by do |method|
175
+ [method.name, method.parent.full_name]
176
+ end
177
+
178
+ list.each do |method|
179
+ debug_msg " #{method.full_name}"
180
+ record = method.search_record
181
+ @index[:searchIndex] << "#{search_string record.shift}()"
182
+ @index[:longSearchIndex] << "#{search_string record.shift}()"
183
+ @index[:info] << record
184
+ end
185
+ end
186
+
187
+ ##
188
+ # Adds pages to the index
189
+
190
+ def index_pages
191
+ debug_msg " generating pages search index"
192
+
193
+ pages = @files.select do |file|
194
+ file.text?
195
+ end
196
+
197
+ pages.each do |page|
198
+ debug_msg " #{page.page_name}"
199
+ record = page.search_record
200
+ @index[:searchIndex] << search_string(record.shift)
201
+ @index[:longSearchIndex] << ''
202
+ record.shift
203
+ @index[:info] << record
204
+ end
205
+ end
206
+
207
+ ##
208
+ # The directory classes are written to
209
+
210
+ def class_dir
211
+ @parent_generator.class_dir
212
+ end
213
+
214
+ ##
215
+ # The directory files are written to
216
+
217
+ def file_dir
218
+ @parent_generator.file_dir
219
+ end
220
+
221
+ def reset files, classes # :nodoc:
222
+ @files = files
223
+ @classes = classes
224
+
225
+ @index = {
226
+ :searchIndex => [],
227
+ :longSearchIndex => [],
228
+ :info => []
229
+ }
230
+ end
231
+
232
+ ##
233
+ # Removes whitespace and downcases +string+
234
+
235
+ def search_string string
236
+ string.downcase.gsub(/\s/, '')
237
+ end
238
+
239
+ end
240
+
@@ -1,14 +1,9 @@
1
- # This file is loaded by generators. It allows RDoc's CodeObject tree to
2
- # avoid loading generator code to increase startup time (for ri).
3
-
4
- require 'rdoc/text'
5
- require 'rdoc/code_objects'
6
- require 'rdoc/generator'
7
- require 'rdoc/markup/to_html_crossref'
8
- require 'rdoc/ruby_token'
9
1
 
10
2
  ##
11
3
  # Handle common RDoc::Markup tasks for various CodeObjects
4
+ #
5
+ # This module is loaded by generators. It allows RDoc's CodeObject tree to
6
+ # avoid loading generator code to improve startup time for +ri+.
12
7
 
13
8
  module RDoc::Generator::Markup
14
9
 
@@ -45,6 +40,8 @@ module RDoc::Generator::Markup
45
40
 
46
41
  @formatter = RDoc::Markup::ToHtmlCrossref.new(this.path, this, show_hash,
47
42
  hyperlink_all)
43
+ @formatter.code_object = self
44
+ @formatter
48
45
  end
49
46
 
50
47
  ##
@@ -62,10 +59,14 @@ module RDoc::Generator::Markup
62
59
 
63
60
  end
64
61
 
65
- class RDoc::AnyMethod
62
+ class RDoc::CodeObject
66
63
 
67
64
  include RDoc::Generator::Markup
68
65
 
66
+ end
67
+
68
+ class RDoc::AnyMethod
69
+
69
70
  @add_line_numbers = false
70
71
 
71
72
  class << self
@@ -111,32 +112,7 @@ class RDoc::AnyMethod
111
112
  def markup_code
112
113
  return '' unless @token_stream
113
114
 
114
- src = ""
115
-
116
- @token_stream.each do |t|
117
- next unless t
118
-
119
- style = case t
120
- when RDoc::RubyToken::TkCONSTANT then 'ruby-constant'
121
- when RDoc::RubyToken::TkKW then 'ruby-keyword'
122
- when RDoc::RubyToken::TkIVAR then 'ruby-ivar'
123
- when RDoc::RubyToken::TkOp then 'ruby-operator'
124
- when RDoc::RubyToken::TkId then 'ruby-identifier'
125
- when RDoc::RubyToken::TkNode then 'ruby-node'
126
- when RDoc::RubyToken::TkCOMMENT then 'ruby-comment'
127
- when RDoc::RubyToken::TkREGEXP then 'ruby-regexp'
128
- when RDoc::RubyToken::TkSTRING then 'ruby-string'
129
- when RDoc::RubyToken::TkVal then 'ruby-value'
130
- end
131
-
132
- text = CGI.escapeHTML t.text
133
-
134
- if style then
135
- src << "<span class=\"#{style}\">#{text}</span>"
136
- else
137
- src << text
138
- end
139
- end
115
+ src = RDoc::TokenStream.to_html @token_stream
140
116
 
141
117
  # dedent the source
142
118
  indent = src.length
@@ -158,27 +134,14 @@ class RDoc::AnyMethod
158
134
 
159
135
  end
160
136
 
161
- class RDoc::Attr
162
-
163
- include RDoc::Generator::Markup
164
-
165
- end
166
-
167
- class RDoc::Alias
137
+ class RDoc::ClassModule
168
138
 
169
- include RDoc::Generator::Markup
170
-
171
- end
172
-
173
- class RDoc::Constant
174
-
175
- include RDoc::Generator::Markup
176
-
177
- end
178
-
179
- class RDoc::Context
139
+ ##
140
+ # Handy wrapper for marking up this class or module's comment
180
141
 
181
- include RDoc::Generator::Markup
142
+ def description
143
+ markup @comment_location
144
+ end
182
145
 
183
146
  end
184
147
 
@@ -1,6 +1,3 @@
1
- require 'rdoc/generator'
2
- require 'rdoc/ri'
3
-
4
1
  ##
5
2
  # Generates ri data files
6
3
 
@@ -0,0 +1,5 @@
1
+ <footer id="validator-badges">
2
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
3
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> <%= RDoc::VERSION %>.
4
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %>.
5
+ </footer>
@@ -0,0 +1,16 @@
1
+ <meta content="text/html; charset=<%= @options.charset %>" http-equiv="Content-Type">
2
+
3
+ <title><%= h @title %></title>
4
+
5
+ <link type="text/css" media="screen" href="<%= rel_prefix %>/rdoc.css" rel="stylesheet">
6
+
7
+ <script type="text/javascript">
8
+ var rdoc_rel_prefix = "<%= rel_prefix %>/";
9
+ </script>
10
+
11
+ <script type="text/javascript" charset="utf-8" src="<%= rel_prefix %>/js/jquery.js"></script>
12
+ <script type="text/javascript" charset="utf-8" src="<%= rel_prefix %>/js/navigation.js"></script>
13
+ <script type="text/javascript" charset="utf-8" src="<%= rel_prefix %>/js/search_index.js"></script>
14
+ <script type="text/javascript" charset="utf-8" src="<%= rel_prefix %>/js/search.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="<%= rel_prefix %>/js/searcher.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="<%= rel_prefix %>/js/darkfish.js"></script>
@@ -0,0 +1,18 @@
1
+ <% if !svninfo.empty? then %>
2
+ <nav id="file-svninfo-section" class="section">
3
+ <h3 class="section-header">VCS Info</h3>
4
+ <div class="section-body">
5
+ <dl class="svninfo">
6
+ <dt>Rev
7
+ <dd><%= svninfo[:rev] %>
8
+
9
+ <dt>Last Checked In
10
+ <dd><%= svninfo[:commitdate].strftime('%Y-%m-%d %H:%M:%S') %>
11
+ (<%= svninfo[:commitdelta] %> ago)
12
+
13
+ <dt>Checked in by
14
+ <dd><%= svninfo[:committer] %>
15
+ </dl>
16
+ </div>
17
+ </nav>
18
+ <% end %>
@@ -0,0 +1,9 @@
1
+ <nav id="classindex-section" class="section project-section">
2
+ <h3 class="section-header">Class and Module Index</h3>
3
+
4
+ <ul class="link-list">
5
+ <% @modsort.each do |index_klass| %>
6
+ <li><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.full_name %></a>
7
+ <% end %>
8
+ </ul>
9
+ </nav>
@@ -0,0 +1,8 @@
1
+ <nav id="file-list-section" class="section">
2
+ <h3 class="section-header">Defined In</h3>
3
+ <ul>
4
+ <% klass.in_files.each do |tl| %>
5
+ <li><%= h tl.absolute_name %>
6
+ <% end %>
7
+ </ul>
8
+ </nav>
@@ -0,0 +1,16 @@
1
+ <% unless klass.includes.empty? then %>
2
+ <!-- Included Modules -->
3
+ <nav id="includes-section" class="section">
4
+ <h3 class="section-header">Included Modules</h3>
5
+
6
+ <ul class="link-list">
7
+ <% klass.each_include do |inc| %>
8
+ <% unless String === inc.module then %>
9
+ <li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
10
+ <% else %>
11
+ <li><span class="include"><%= inc.name %></span>
12
+ <% end %>
13
+ <% end %>
14
+ </ul>
15
+ </nav>
16
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <% unless klass.method_list.empty? then %>
2
+ <!-- Method Quickref -->
3
+ <nav id="method-list-section" class="section">
4
+ <h3 class="section-header">Methods</h3>
5
+
6
+ <ul class="link-list">
7
+ <% klass.each_method do |meth| %>
8
+ <li><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= h meth.name %></a>
9
+ <% end %>
10
+ </ul>
11
+ </nav>
12
+ <% end %>