rdoc 6.3.4.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +195 -0
  3. data/History.rdoc +65 -63
  4. data/LEGAL.rdoc +7 -1
  5. data/LICENSE.rdoc +6 -0
  6. data/README.md +236 -0
  7. data/RI.md +842 -0
  8. data/TODO.rdoc +8 -7
  9. data/doc/markup_reference/markdown.md +659 -0
  10. data/doc/markup_reference/rdoc.rdoc +1169 -0
  11. data/exe/rdoc +0 -1
  12. data/lib/rdoc/{alias.rb → code_object/alias.rb} +4 -18
  13. data/lib/rdoc/{any_method.rb → code_object/any_method.rb} +50 -24
  14. data/lib/rdoc/{attr.rb → code_object/attr.rb} +16 -14
  15. data/lib/rdoc/{class_module.rb → code_object/class_module.rb} +225 -58
  16. data/lib/rdoc/{constant.rb → code_object/constant.rb} +44 -10
  17. data/lib/rdoc/code_object/context/section.rb +182 -0
  18. data/lib/rdoc/{context.rb → code_object/context.rb} +78 -106
  19. data/lib/rdoc/{extend.rb → code_object/extend.rb} +0 -1
  20. data/lib/rdoc/{include.rb → code_object/include.rb} +0 -1
  21. data/lib/rdoc/{method_attr.rb → code_object/method_attr.rb} +46 -48
  22. data/lib/rdoc/{mixin.rb → code_object/mixin.rb} +6 -4
  23. data/lib/rdoc/{normal_class.rb → code_object/normal_class.rb} +2 -3
  24. data/lib/rdoc/{normal_module.rb → code_object/normal_module.rb} +2 -3
  25. data/lib/rdoc/{require.rb → code_object/require.rb} +1 -2
  26. data/lib/rdoc/{single_class.rb → code_object/single_class.rb} +5 -1
  27. data/lib/rdoc/{top_level.rb → code_object/top_level.rb} +60 -63
  28. data/lib/rdoc/code_object.rb +11 -39
  29. data/lib/rdoc/code_objects.rb +1 -2
  30. data/lib/rdoc/comment.rb +202 -99
  31. data/lib/rdoc/cross_reference.rb +75 -62
  32. data/lib/rdoc/encoding.rb +8 -24
  33. data/lib/rdoc/erb_partial.rb +1 -2
  34. data/lib/rdoc/erbio.rb +3 -8
  35. data/lib/rdoc/generator/aliki.rb +200 -0
  36. data/lib/rdoc/generator/darkfish.rb +156 -122
  37. data/lib/rdoc/generator/json_index.rb +8 -24
  38. data/lib/rdoc/generator/markup.rb +70 -34
  39. data/lib/rdoc/generator/pot/message_extractor.rb +7 -7
  40. data/lib/rdoc/generator/pot/po.rb +1 -1
  41. data/lib/rdoc/generator/pot/po_entry.rb +8 -8
  42. data/lib/rdoc/generator/pot.rb +1 -5
  43. data/lib/rdoc/generator/ri.rb +1 -2
  44. data/lib/rdoc/generator/template/aliki/DESIGN.md +536 -0
  45. data/lib/rdoc/generator/template/aliki/_aside_toc.rhtml +8 -0
  46. data/lib/rdoc/generator/template/aliki/_footer.rhtml +23 -0
  47. data/lib/rdoc/generator/template/aliki/_head.rhtml +163 -0
  48. data/lib/rdoc/generator/template/aliki/_header.rhtml +56 -0
  49. data/lib/rdoc/generator/template/aliki/_icons.rhtml +208 -0
  50. data/lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml +16 -0
  51. data/lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml +15 -0
  52. data/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml +27 -0
  53. data/lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml +27 -0
  54. data/lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml +16 -0
  55. data/lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml +41 -0
  56. data/lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml +67 -0
  57. data/lib/rdoc/generator/template/aliki/_sidebar_search.rhtml +15 -0
  58. data/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml +21 -0
  59. data/lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml +3 -0
  60. data/lib/rdoc/generator/template/aliki/class.rhtml +230 -0
  61. data/lib/rdoc/generator/template/aliki/css/rdoc.css +2181 -0
  62. data/lib/rdoc/generator/template/aliki/index.rhtml +22 -0
  63. data/lib/rdoc/generator/template/aliki/js/aliki.js +513 -0
  64. data/lib/rdoc/generator/template/aliki/js/bash_highlighter.js +167 -0
  65. data/lib/rdoc/generator/template/aliki/js/c_highlighter.js +299 -0
  66. data/lib/rdoc/generator/template/aliki/js/search_controller.js +129 -0
  67. data/lib/rdoc/generator/template/aliki/js/search_navigation.js +105 -0
  68. data/lib/rdoc/generator/template/aliki/js/search_ranker.js +239 -0
  69. data/lib/rdoc/generator/template/aliki/js/theme-toggle.js +112 -0
  70. data/lib/rdoc/generator/template/aliki/page.rhtml +18 -0
  71. data/lib/rdoc/generator/template/aliki/servlet_not_found.rhtml +14 -0
  72. data/lib/rdoc/generator/template/aliki/servlet_root.rhtml +65 -0
  73. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +3 -3
  74. data/lib/rdoc/generator/template/darkfish/_head.rhtml +35 -14
  75. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +1 -5
  76. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +11 -9
  77. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +11 -9
  78. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +7 -6
  79. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +20 -11
  80. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +25 -5
  81. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +4 -9
  82. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +2 -1
  83. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +4 -4
  84. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +28 -7
  85. data/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
  86. data/lib/rdoc/generator/template/darkfish/class.rhtml +138 -90
  87. data/lib/rdoc/generator/template/darkfish/css/rdoc.css +420 -358
  88. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
  89. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
  90. data/lib/rdoc/generator/template/darkfish/index.rhtml +14 -12
  91. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +59 -3
  92. data/lib/rdoc/generator/template/darkfish/js/search.js +15 -5
  93. data/lib/rdoc/generator/template/darkfish/page.rhtml +7 -6
  94. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +12 -9
  95. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +24 -21
  96. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +35 -21
  97. data/lib/rdoc/generator/template/json_index/js/navigation.js +8 -8
  98. data/lib/rdoc/generator/template/json_index/js/searcher.js +48 -6
  99. data/lib/rdoc/generator.rb +6 -5
  100. data/lib/rdoc/i18n/text.rb +3 -3
  101. data/lib/rdoc/i18n.rb +1 -1
  102. data/lib/rdoc/known_classes.rb +5 -4
  103. data/lib/rdoc/markdown/entities.rb +0 -1
  104. data/lib/rdoc/markdown/literals.kpeg +0 -2
  105. data/lib/rdoc/markdown/literals.rb +0 -1
  106. data/lib/rdoc/markdown.kpeg +140 -62
  107. data/lib/rdoc/markdown.rb +1015 -873
  108. data/lib/rdoc/markup/blank_line.rb +25 -24
  109. data/lib/rdoc/markup/block_quote.rb +1 -2
  110. data/lib/rdoc/markup/document.rb +10 -11
  111. data/lib/rdoc/markup/element.rb +21 -0
  112. data/lib/rdoc/markup/formatter.rb +134 -115
  113. data/lib/rdoc/markup/hard_break.rb +30 -28
  114. data/lib/rdoc/markup/heading.rb +163 -72
  115. data/lib/rdoc/markup/include.rb +3 -4
  116. data/lib/rdoc/markup/indented_paragraph.rb +4 -5
  117. data/lib/rdoc/markup/inline_parser.rb +312 -0
  118. data/lib/rdoc/markup/list.rb +6 -7
  119. data/lib/rdoc/markup/list_item.rb +6 -7
  120. data/lib/rdoc/markup/paragraph.rb +2 -3
  121. data/lib/rdoc/markup/parser.rb +29 -19
  122. data/lib/rdoc/markup/pre_process.rb +39 -18
  123. data/lib/rdoc/markup/raw.rb +52 -56
  124. data/lib/rdoc/markup/rule.rb +2 -3
  125. data/lib/rdoc/markup/table.rb +49 -32
  126. data/lib/rdoc/markup/to_ansi.rb +58 -8
  127. data/lib/rdoc/markup/to_bs.rb +47 -38
  128. data/lib/rdoc/markup/to_html.rb +343 -105
  129. data/lib/rdoc/markup/to_html_crossref.rb +143 -58
  130. data/lib/rdoc/markup/to_html_snippet.rb +78 -76
  131. data/lib/rdoc/markup/to_joined_paragraph.rb +3 -9
  132. data/lib/rdoc/markup/to_label.rb +34 -25
  133. data/lib/rdoc/markup/to_markdown.rb +74 -51
  134. data/lib/rdoc/markup/to_rdoc.rb +141 -82
  135. data/lib/rdoc/markup/to_table_of_contents.rb +4 -5
  136. data/lib/rdoc/markup/to_test.rb +10 -3
  137. data/lib/rdoc/markup/to_tt_only.rb +17 -31
  138. data/lib/rdoc/markup/verbatim.rb +5 -6
  139. data/lib/rdoc/markup.rb +59 -707
  140. data/lib/rdoc/options.rb +228 -101
  141. data/lib/rdoc/parser/c.rb +186 -184
  142. data/lib/rdoc/parser/changelog.rb +57 -13
  143. data/lib/rdoc/parser/markdown.rb +0 -2
  144. data/lib/rdoc/parser/rbs.rb +275 -0
  145. data/lib/rdoc/parser/rd.rb +0 -1
  146. data/lib/rdoc/parser/ruby.rb +963 -2024
  147. data/lib/rdoc/parser/ruby_colorizer.rb +253 -0
  148. data/lib/rdoc/parser/simple.rb +6 -23
  149. data/lib/rdoc/parser/text.rb +0 -1
  150. data/lib/rdoc/parser.rb +35 -14
  151. data/lib/rdoc/rbs_helper.rb +186 -0
  152. data/lib/rdoc/rd/block_parser.rb +659 -11
  153. data/lib/rdoc/rd/block_parser.ry +13 -9
  154. data/lib/rdoc/rd/inline.rb +4 -5
  155. data/lib/rdoc/rd/inline_parser.rb +646 -2
  156. data/lib/rdoc/rd.rb +4 -5
  157. data/lib/rdoc/rdoc.rb +234 -90
  158. data/lib/rdoc/ri/driver.rb +172 -172
  159. data/lib/rdoc/ri/paths.rb +3 -3
  160. data/lib/rdoc/{servlet.rb → ri/servlet.rb} +28 -27
  161. data/lib/rdoc/ri/store.rb +0 -1
  162. data/lib/rdoc/ri/task.rb +3 -3
  163. data/lib/rdoc/ri.rb +5 -5
  164. data/lib/rdoc/rubygems_hook.rb +106 -25
  165. data/lib/rdoc/server.rb +460 -0
  166. data/lib/rdoc/stats/normal.rb +1 -1
  167. data/lib/rdoc/stats/quiet.rb +1 -2
  168. data/lib/rdoc/stats/verbose.rb +3 -5
  169. data/lib/rdoc/stats.rb +158 -136
  170. data/lib/rdoc/store.rb +267 -48
  171. data/lib/rdoc/task.rb +54 -28
  172. data/lib/rdoc/text.rb +60 -120
  173. data/lib/rdoc/token_stream.rb +30 -45
  174. data/lib/rdoc/tom_doc.rb +9 -15
  175. data/lib/rdoc/version.rb +3 -1
  176. data/lib/rdoc.rb +90 -52
  177. data/lib/rubygems_plugin.rb +14 -0
  178. data/man/ri.1 +2 -0
  179. data/rdoc-logo.svg +43 -0
  180. data/rdoc.gemspec +25 -200
  181. metadata +120 -53
  182. data/CONTRIBUTING.rdoc +0 -220
  183. data/ExampleMarkdown.md +0 -37
  184. data/ExampleRDoc.rdoc +0 -208
  185. data/Gemfile +0 -12
  186. data/README.rdoc +0 -129
  187. data/RI.rdoc +0 -57
  188. data/Rakefile +0 -101
  189. data/bin/console +0 -7
  190. data/bin/setup +0 -6
  191. data/lib/rdoc/anon_class.rb +0 -11
  192. data/lib/rdoc/context/section.rb +0 -232
  193. data/lib/rdoc/generator/template/darkfish/.document +0 -0
  194. data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +0 -19
  195. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +0 -9
  196. data/lib/rdoc/generator/template/json_index/.document +0 -1
  197. data/lib/rdoc/ghost_method.rb +0 -7
  198. data/lib/rdoc/markup/attr_changer.rb +0 -23
  199. data/lib/rdoc/markup/attr_span.rb +0 -36
  200. data/lib/rdoc/markup/attribute_manager.rb +0 -409
  201. data/lib/rdoc/markup/attributes.rb +0 -71
  202. data/lib/rdoc/markup/regexp_handling.rb +0 -41
  203. data/lib/rdoc/meta_method.rb +0 -7
  204. data/lib/rdoc/parser/ripper_state_lex.rb +0 -590
  205. data/lib/rdoc/parser/ruby_tools.rb +0 -167
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.4.1
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -13,22 +13,64 @@ authors:
13
13
  - ITOYANAGI Sakura
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2024-03-21 00:00:00.000000000 Z
16
+ date: 2026-06-26 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
- name: gettext
19
+ name: erb
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
24
  version: '0'
25
- type: :development
25
+ type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: '0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: tsort
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: prism
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.6.0
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 1.6.0
60
+ - !ruby/object:Gem::Dependency
61
+ name: rbs
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 4.0.0
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 4.0.0
32
74
  description: |
33
75
  RDoc produces HTML and command-line documentation for Ruby projects.
34
76
  RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
@@ -45,51 +87,53 @@ executables:
45
87
  - ri
46
88
  extensions: []
47
89
  extra_rdoc_files:
90
+ - CONTRIBUTING.md
48
91
  - CVE-2013-0256.rdoc
49
- - CONTRIBUTING.rdoc
50
- - ExampleMarkdown.md
51
- - ExampleRDoc.rdoc
52
92
  - History.rdoc
53
93
  - LEGAL.rdoc
54
94
  - LICENSE.rdoc
55
- - README.rdoc
56
- - RI.rdoc
95
+ - README.md
96
+ - RI.md
57
97
  - TODO.rdoc
58
98
  files:
59
- - CONTRIBUTING.rdoc
99
+ - CONTRIBUTING.md
60
100
  - CVE-2013-0256.rdoc
61
- - ExampleMarkdown.md
62
- - ExampleRDoc.rdoc
63
- - Gemfile
64
101
  - History.rdoc
65
102
  - LEGAL.rdoc
66
103
  - LICENSE.rdoc
67
- - README.rdoc
68
- - RI.rdoc
69
- - Rakefile
104
+ - README.md
105
+ - RI.md
70
106
  - TODO.rdoc
71
- - bin/console
72
- - bin/setup
107
+ - doc/markup_reference/markdown.md
108
+ - doc/markup_reference/rdoc.rdoc
73
109
  - exe/rdoc
74
110
  - exe/ri
75
111
  - lib/rdoc.rb
76
- - lib/rdoc/alias.rb
77
- - lib/rdoc/anon_class.rb
78
- - lib/rdoc/any_method.rb
79
- - lib/rdoc/attr.rb
80
- - lib/rdoc/class_module.rb
81
112
  - lib/rdoc/code_object.rb
113
+ - lib/rdoc/code_object/alias.rb
114
+ - lib/rdoc/code_object/any_method.rb
115
+ - lib/rdoc/code_object/attr.rb
116
+ - lib/rdoc/code_object/class_module.rb
117
+ - lib/rdoc/code_object/constant.rb
118
+ - lib/rdoc/code_object/context.rb
119
+ - lib/rdoc/code_object/context/section.rb
120
+ - lib/rdoc/code_object/extend.rb
121
+ - lib/rdoc/code_object/include.rb
122
+ - lib/rdoc/code_object/method_attr.rb
123
+ - lib/rdoc/code_object/mixin.rb
124
+ - lib/rdoc/code_object/normal_class.rb
125
+ - lib/rdoc/code_object/normal_module.rb
126
+ - lib/rdoc/code_object/require.rb
127
+ - lib/rdoc/code_object/single_class.rb
128
+ - lib/rdoc/code_object/top_level.rb
82
129
  - lib/rdoc/code_objects.rb
83
130
  - lib/rdoc/comment.rb
84
- - lib/rdoc/constant.rb
85
- - lib/rdoc/context.rb
86
- - lib/rdoc/context/section.rb
87
131
  - lib/rdoc/cross_reference.rb
88
132
  - lib/rdoc/encoding.rb
89
133
  - lib/rdoc/erb_partial.rb
90
134
  - lib/rdoc/erbio.rb
91
- - lib/rdoc/extend.rb
92
135
  - lib/rdoc/generator.rb
136
+ - lib/rdoc/generator/aliki.rb
93
137
  - lib/rdoc/generator/darkfish.rb
94
138
  - lib/rdoc/generator/json_index.rb
95
139
  - lib/rdoc/generator/markup.rb
@@ -98,13 +142,39 @@ files:
98
142
  - lib/rdoc/generator/pot/po.rb
99
143
  - lib/rdoc/generator/pot/po_entry.rb
100
144
  - lib/rdoc/generator/ri.rb
101
- - lib/rdoc/generator/template/darkfish/.document
145
+ - lib/rdoc/generator/template/aliki/DESIGN.md
146
+ - lib/rdoc/generator/template/aliki/_aside_toc.rhtml
147
+ - lib/rdoc/generator/template/aliki/_footer.rhtml
148
+ - lib/rdoc/generator/template/aliki/_head.rhtml
149
+ - lib/rdoc/generator/template/aliki/_header.rhtml
150
+ - lib/rdoc/generator/template/aliki/_icons.rhtml
151
+ - lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml
152
+ - lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml
153
+ - lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml
154
+ - lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml
155
+ - lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml
156
+ - lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml
157
+ - lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml
158
+ - lib/rdoc/generator/template/aliki/_sidebar_search.rhtml
159
+ - lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml
160
+ - lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml
161
+ - lib/rdoc/generator/template/aliki/class.rhtml
162
+ - lib/rdoc/generator/template/aliki/css/rdoc.css
163
+ - lib/rdoc/generator/template/aliki/index.rhtml
164
+ - lib/rdoc/generator/template/aliki/js/aliki.js
165
+ - lib/rdoc/generator/template/aliki/js/bash_highlighter.js
166
+ - lib/rdoc/generator/template/aliki/js/c_highlighter.js
167
+ - lib/rdoc/generator/template/aliki/js/search_controller.js
168
+ - lib/rdoc/generator/template/aliki/js/search_navigation.js
169
+ - lib/rdoc/generator/template/aliki/js/search_ranker.js
170
+ - lib/rdoc/generator/template/aliki/js/theme-toggle.js
171
+ - lib/rdoc/generator/template/aliki/page.rhtml
172
+ - lib/rdoc/generator/template/aliki/servlet_not_found.rhtml
173
+ - lib/rdoc/generator/template/aliki/servlet_root.rhtml
102
174
  - lib/rdoc/generator/template/darkfish/_footer.rhtml
103
175
  - lib/rdoc/generator/template/darkfish/_head.rhtml
104
- - lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml
105
176
  - lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
106
177
  - lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml
107
- - lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml
108
178
  - lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml
109
179
  - lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml
110
180
  - lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml
@@ -114,6 +184,7 @@ files:
114
184
  - lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml
115
185
  - lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
116
186
  - lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
187
+ - lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml
117
188
  - lib/rdoc/generator/template/darkfish/class.rhtml
118
189
  - lib/rdoc/generator/template/darkfish/css/fonts.css
119
190
  - lib/rdoc/generator/template/darkfish/css/rdoc.css
@@ -155,14 +226,11 @@ files:
155
226
  - lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml
156
227
  - lib/rdoc/generator/template/darkfish/servlet_root.rhtml
157
228
  - lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
158
- - lib/rdoc/generator/template/json_index/.document
159
229
  - lib/rdoc/generator/template/json_index/js/navigation.js
160
230
  - lib/rdoc/generator/template/json_index/js/searcher.js
161
- - lib/rdoc/ghost_method.rb
162
231
  - lib/rdoc/i18n.rb
163
232
  - lib/rdoc/i18n/locale.rb
164
233
  - lib/rdoc/i18n/text.rb
165
- - lib/rdoc/include.rb
166
234
  - lib/rdoc/known_classes.rb
167
235
  - lib/rdoc/markdown.kpeg
168
236
  - lib/rdoc/markdown.rb
@@ -170,25 +238,22 @@ files:
170
238
  - lib/rdoc/markdown/literals.kpeg
171
239
  - lib/rdoc/markdown/literals.rb
172
240
  - lib/rdoc/markup.rb
173
- - lib/rdoc/markup/attr_changer.rb
174
- - lib/rdoc/markup/attr_span.rb
175
- - lib/rdoc/markup/attribute_manager.rb
176
- - lib/rdoc/markup/attributes.rb
177
241
  - lib/rdoc/markup/blank_line.rb
178
242
  - lib/rdoc/markup/block_quote.rb
179
243
  - lib/rdoc/markup/document.rb
244
+ - lib/rdoc/markup/element.rb
180
245
  - lib/rdoc/markup/formatter.rb
181
246
  - lib/rdoc/markup/hard_break.rb
182
247
  - lib/rdoc/markup/heading.rb
183
248
  - lib/rdoc/markup/include.rb
184
249
  - lib/rdoc/markup/indented_paragraph.rb
250
+ - lib/rdoc/markup/inline_parser.rb
185
251
  - lib/rdoc/markup/list.rb
186
252
  - lib/rdoc/markup/list_item.rb
187
253
  - lib/rdoc/markup/paragraph.rb
188
254
  - lib/rdoc/markup/parser.rb
189
255
  - lib/rdoc/markup/pre_process.rb
190
256
  - lib/rdoc/markup/raw.rb
191
- - lib/rdoc/markup/regexp_handling.rb
192
257
  - lib/rdoc/markup/rule.rb
193
258
  - lib/rdoc/markup/table.rb
194
259
  - lib/rdoc/markup/to_ansi.rb
@@ -204,22 +269,18 @@ files:
204
269
  - lib/rdoc/markup/to_test.rb
205
270
  - lib/rdoc/markup/to_tt_only.rb
206
271
  - lib/rdoc/markup/verbatim.rb
207
- - lib/rdoc/meta_method.rb
208
- - lib/rdoc/method_attr.rb
209
- - lib/rdoc/mixin.rb
210
- - lib/rdoc/normal_class.rb
211
- - lib/rdoc/normal_module.rb
212
272
  - lib/rdoc/options.rb
213
273
  - lib/rdoc/parser.rb
214
274
  - lib/rdoc/parser/c.rb
215
275
  - lib/rdoc/parser/changelog.rb
216
276
  - lib/rdoc/parser/markdown.rb
277
+ - lib/rdoc/parser/rbs.rb
217
278
  - lib/rdoc/parser/rd.rb
218
- - lib/rdoc/parser/ripper_state_lex.rb
219
279
  - lib/rdoc/parser/ruby.rb
220
- - lib/rdoc/parser/ruby_tools.rb
280
+ - lib/rdoc/parser/ruby_colorizer.rb
221
281
  - lib/rdoc/parser/simple.rb
222
282
  - lib/rdoc/parser/text.rb
283
+ - lib/rdoc/rbs_helper.rb
223
284
  - lib/rdoc/rd.rb
224
285
  - lib/rdoc/rd/block_parser.rb
225
286
  - lib/rdoc/rd/block_parser.ry
@@ -227,16 +288,15 @@ files:
227
288
  - lib/rdoc/rd/inline_parser.rb
228
289
  - lib/rdoc/rd/inline_parser.ry
229
290
  - lib/rdoc/rdoc.rb
230
- - lib/rdoc/require.rb
231
291
  - lib/rdoc/ri.rb
232
292
  - lib/rdoc/ri/driver.rb
233
293
  - lib/rdoc/ri/formatter.rb
234
294
  - lib/rdoc/ri/paths.rb
295
+ - lib/rdoc/ri/servlet.rb
235
296
  - lib/rdoc/ri/store.rb
236
297
  - lib/rdoc/ri/task.rb
237
298
  - lib/rdoc/rubygems_hook.rb
238
- - lib/rdoc/servlet.rb
239
- - lib/rdoc/single_class.rb
299
+ - lib/rdoc/server.rb
240
300
  - lib/rdoc/stats.rb
241
301
  - lib/rdoc/stats/normal.rb
242
302
  - lib/rdoc/stats/quiet.rb
@@ -246,31 +306,38 @@ files:
246
306
  - lib/rdoc/text.rb
247
307
  - lib/rdoc/token_stream.rb
248
308
  - lib/rdoc/tom_doc.rb
249
- - lib/rdoc/top_level.rb
250
309
  - lib/rdoc/version.rb
310
+ - lib/rubygems_plugin.rb
251
311
  - man/ri.1
312
+ - rdoc-logo.svg
252
313
  - rdoc.gemspec
253
314
  homepage: https://ruby.github.io/rdoc
254
315
  licenses:
255
316
  - Ruby
256
- metadata: {}
317
+ - GPL-2.0-only
318
+ metadata:
319
+ homepage_uri: https://ruby.github.io/rdoc
320
+ source_code_uri: https://github.com/ruby/rdoc
321
+ changelog_uri: https://github.com/ruby/rdoc/releases
257
322
  rdoc_options:
258
323
  - "--main"
259
- - README.rdoc
324
+ - README.md
325
+ - "--copy-files"
326
+ - rdoc-logo.svg
260
327
  require_paths:
261
328
  - lib
262
329
  required_ruby_version: !ruby/object:Gem::Requirement
263
330
  requirements:
264
331
  - - ">="
265
332
  - !ruby/object:Gem::Version
266
- version: 2.4.0
333
+ version: 3.2.0
267
334
  required_rubygems_version: !ruby/object:Gem::Requirement
268
335
  requirements:
269
336
  - - ">="
270
337
  - !ruby/object:Gem::Version
271
338
  version: '2.2'
272
339
  requirements: []
273
- rubygems_version: 3.6.0.dev
340
+ rubygems_version: 4.0.10
274
341
  specification_version: 4
275
342
  summary: RDoc produces HTML and command-line documentation for Ruby projects
276
343
  test_files: []
data/CONTRIBUTING.rdoc DELETED
@@ -1,220 +0,0 @@
1
- = Developer Introduction
2
-
3
- So you want to write a generator, fix a bug, or otherwise work with RDoc. This
4
- document provides an overview of how RDoc works from parsing options to
5
- generating output. Most of the documentation can be found in the specific
6
- classes for each feature.
7
-
8
- == Bugs
9
-
10
- If you think you found a bug, file a ticket on the {issues
11
- tracker}[https://github.com/ruby/rdoc/issues] on github.
12
-
13
- If your bug involves an error RDoc produced please include a sample file that
14
- illustrates the problem or link to the repository or gem that is associated
15
- with the bug.
16
-
17
- Please include steps to reproduce the issue. Here are some examples of good
18
- issues:
19
-
20
- * https://github.com/ruby/rdoc/issues/55
21
- * https://github.com/ruby/rdoc/issues/61
22
-
23
- == Developer Quick Start
24
-
25
- RDoc uses bundler for development. To get ready to work on RDoc run:
26
-
27
- $ gem install bundler
28
- [...]
29
- $ bundle install
30
- [...]
31
- $ rake
32
- [...]
33
-
34
- This will install all the necessary dependencies for development with rake,
35
- generate documentation and run the tests for the first time.
36
-
37
- If the tests don't pass on the first run check the {Travis CI page for
38
- RDoc}[https://travis-ci.org/ruby/rdoc] to see if there are any known failures
39
- (there shouldn't be).
40
-
41
- You can now use `rake` and `autotest` to run the tests.
42
-
43
- Note: the `rake` command must be used first before running any tests, because
44
- its used to generate various parsers implemented in RDoc. Also `rake clean` is
45
- helpful to delete these generated files.
46
-
47
- == Glossary
48
-
49
- Here are definitions for some common terms in the RDoc documentation. The
50
- list also briefly describes how the components of RDoc interact.
51
-
52
- parser::
53
- Parses files and creates a documentation tree from the contents.
54
-
55
- documentation tree::
56
- The documentation tree represents files, classes, modules, methods,
57
- constants, includes, comments and other ruby syntax features as a tree.
58
- RDoc walks this tree with a generator to create documentation.
59
-
60
- generator::
61
- Walks the documentation tree and generates output.
62
-
63
- RDoc ships with two generators, the Darkfish generator creates HTML and the
64
- RI generator creates an RI data store.
65
-
66
- markup parser::
67
- Parses comments from a file into a generic markup tree.
68
-
69
- The markup parsers allow RDoc to handle RDoc, TomDoc, rd and Markdown format
70
- documentation with common formatters.
71
-
72
- markup tree::
73
- Each parsed comment has a markup tree that represents common markup items
74
- such as headings, paragraphs, lists or verbatim text sections for example
75
- code or output.
76
-
77
- A generator uses a formatters to walks the tree to create output. Some
78
- generators use multiple formatters on a markup tree to produce the output.
79
-
80
- formatter::
81
- Converts a parsed markup tree into some form other form of markup.
82
-
83
- Formatters can either produce a one-to-one conversion, such as ToHtml, or
84
- extract part of the parsed result, such as ToHtmlSnippet which outputs the
85
- first 100 characters as HTML.
86
-
87
- == Plugins
88
-
89
- When 'rdoc/rdoc' is loaded RDoc looks for 'rdoc/discover' files in your
90
- installed gems. This can be used to load parsers, alternate generators, or
91
- additional preprocessor directives. An rdoc plugin layout should look
92
- something like this:
93
-
94
- lib/rdoc/discover.rb
95
- lib/my/rdoc/plugin.rb
96
- # etc.
97
-
98
- In your rdoc/discover.rb file you will want to wrap the loading of your plugin
99
- in an RDoc version check like this:
100
-
101
- begin
102
- gem 'rdoc', '~> 3'
103
- require 'my/rdoc/plugin'
104
- rescue Gem::LoadError
105
- end
106
-
107
- === Plugin Types
108
-
109
- In RDoc you can change the following behaviors:
110
-
111
- * Add a parser for a new file format
112
- * Add a new output generator
113
- * Add a new markup directive
114
- * Add a new type of documentation markup
115
- * Add a new type of formatter
116
-
117
- All of these are described below
118
-
119
- == Option Parsing
120
-
121
- Option parsing is handled by RDoc::Options. When you're writing a generator
122
- you can provide the user with extra options by providing a class method
123
- +setup_options+. The option parser will call this after your generator is
124
- loaded. See RDoc::Generator for details.
125
-
126
- == File Parsing
127
-
128
- After options are parsed, RDoc parses files from the files and directories in
129
- ARGV. RDoc compares the filename against what each parser claims it can parse
130
- via RDoc::Parser#parse_files_matching. For example, RDoc::Parser::C can parse
131
- C files, C headers, C++ files, C++ headers and yacc grammars.
132
-
133
- Once a matching parser class is found it is instantiated and +scan+ is called.
134
- The parser needs to extract documentation from the file and add it to the RDoc
135
- document tree. Usually this involves starting at the root and adding a class
136
- or a module (RDoc::TopLevel#add_class and RDoc::TopLevel#add_module) and
137
- proceeding to add classes, modules and methods to each nested item.
138
-
139
- When the parsers are finished the document tree is cleaned up to remove
140
- dangling references to aliases and includes that were not found (and may exist
141
- in a separate library) through RDoc::ClassModule#complete.
142
-
143
- To write your own parser for a new file format see RDoc::Parser.
144
-
145
- === Documentation Tree
146
-
147
- The parsers build a documentation tree that is composed of RDoc::CodeObject and
148
- its subclasses. There are various methods to walk the tree to extract
149
- information, see RDoc::Context and its subclasses.
150
-
151
- Within a class or module, attributes, methods and constants are divided into
152
- sections. The section represents a functional grouping of parts of the class.
153
- TomDoc uses the sections "Public", "Internal" and "Deprecated". The sections
154
- can be enumerated using RDoc::Context#each_section.
155
-
156
- == Output Generation
157
-
158
- An RDoc generator turns the documentation tree into some other kind of output.
159
- RDoc comes with an HTML generator (RDoc::Generator::Darkfish) and an RI
160
- database generator (RDoc::Generator::RI). The output a generator creates does
161
- not have to be human-readable.
162
-
163
- To create your own generator see RDoc::Generator.
164
-
165
- === Comments
166
-
167
- In RDoc 3.10 and newer the comment on an RDoc::CodeObject is now an
168
- RDoc::Comment object instead of a String. This is to support various
169
- documentation markup formats like rdoc, TomDoc and rd. The comments are
170
- normalized to remove comment markers and remove indentation then parsed lazily
171
- via RDoc::Comment#document to create a generic markup tree that can be
172
- processed by a formatter.
173
-
174
- To add your own markup format see RDoc::Markup@Other+directives
175
-
176
- ==== Formatters
177
-
178
- To transform a comment into some form of output an RDoc::Markup::Formatter
179
- subclass is used like RDoc::Markup::ToHtml. A formatter is a visitor that
180
- walks a parsed comment tree (an RDoc::Markup::Document) of any format. To help
181
- write a formatter RDoc::Markup::FormatterTestCase exists for generic parsers,
182
- and RDoc::Markup::TextFormatterTestCase which contains extra test cases for
183
- text-type output (like +ri+ output).
184
-
185
- RDoc ships with formatters that will turn a comment into HTML, rdoc-markup-like
186
- text, ANSI or terminal backspace highlighted text, HTML, cross-referenced HTML,
187
- an HTML snippet free of most markup, an HTML label for use in id attributes, a
188
- table-of-contents page, and text with only code blocks.
189
-
190
- The output of the formatter does not need to be text or text-like.
191
- RDoc::Markup::ToLabel creates an HTML-safe label for use in an HTML id
192
- attribute. A formatter could count the number of words and the average word
193
- length for a comment, for example.
194
-
195
- ==== Directives
196
-
197
- For comments in markup you can add new directives (:nodoc: is a directive).
198
- Directives may replace text or store it off for later use.
199
-
200
- See RDoc::Markup::PreProcess::register for details.
201
-
202
- === JSONIndex
203
-
204
- RDoc contains a special generator, RDoc::Generator::JSONIndex, which creates a
205
- JSON-based search index and includes a search engine for use with HTML output.
206
- This generator can be used to add searching to any HTML output and is designed
207
- to be called from inside an HTML generator.
208
-
209
- == Markup
210
-
211
- Additional documentation markup formats can be added to RDoc. A markup
212
- parsing class must respond to \::parse and accept a String argument containing
213
- the markup format. An RDoc::Document containing documentation items
214
- (RDoc::Markup::Heading, RDoc::Markup::Paragraph, RDoc::Markup::Verbatim, etc.)
215
- must be returned.
216
-
217
- To register the parser with rdoc, add the markup type's name and class to the
218
- RDoc::Text::MARKUP_FORMAT hash like:
219
-
220
- RDoc::Text::MARKUP_FORMAT['rdoc'] = RDoc::Markup
data/ExampleMarkdown.md DELETED
@@ -1,37 +0,0 @@
1
- This document contains example output to show RDoc styling. This file was
2
- created from a Markdown file.
3
-
4
- For the following styles, see ExampleRDoc.rdoc for style examples:
5
-
6
- * Headings
7
- * Paragraphs
8
- * Code blocks (verbatim sections)
9
- * Definition lists
10
- * Ordered lists
11
- * Unordered lists
12
-
13
- These items all use the same styles as RDoc format files.
14
-
15
- ## Footnotes
16
-
17
- Footnotes are rendered at the bottom of the documentation section[^1]. For
18
- pages this will be at the bottom of the page. For method documentation this
19
- will be at the end of the current method.
20
-
21
- [^1]: Here is the footnote content. As you can see it is at the bottom of the
22
- page.
23
-
24
- ## Blockquotes
25
-
26
- Here is how a blockquote looks.
27
-
28
- > We finished our first sensor sweep of the neutral zone. Now, how the hell do
29
- > we defeat an enemy that knows us better than we know ourselves? and attack
30
- > the Romulans.
31
- >
32
- > > Sorry, Data. I guess it's better to be lucky than good. The unexpected is
33
- > > our normal routine. Could someone survive inside a transporter buffer for
34
- > > 75 years?
35
-
36
- This text is from [Riker Ipsum](http://rikeripsum.com)
37
-