rdoc 6.13.0 → 6.17.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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/History.rdoc +1 -1
  3. data/README.md +112 -0
  4. data/RI.md +1 -1
  5. data/lib/rdoc/code_object/any_method.rb +4 -4
  6. data/lib/rdoc/code_object/attr.rb +3 -3
  7. data/lib/rdoc/code_object/class_module.rb +18 -16
  8. data/lib/rdoc/code_object/constant.rb +5 -5
  9. data/lib/rdoc/code_object/context/section.rb +8 -7
  10. data/lib/rdoc/code_object/context.rb +19 -19
  11. data/lib/rdoc/code_object/method_attr.rb +7 -6
  12. data/lib/rdoc/code_object/mixin.rb +3 -3
  13. data/lib/rdoc/code_object/normal_class.rb +1 -1
  14. data/lib/rdoc/code_object/normal_module.rb +1 -1
  15. data/lib/rdoc/code_object/single_class.rb +1 -1
  16. data/lib/rdoc/code_object/top_level.rb +28 -33
  17. data/lib/rdoc/code_object.rb +3 -3
  18. data/lib/rdoc/comment.rb +196 -14
  19. data/lib/rdoc/cross_reference.rb +4 -4
  20. data/lib/rdoc/encoding.rb +4 -4
  21. data/lib/rdoc/erb_partial.rb +1 -1
  22. data/lib/rdoc/erbio.rb +2 -2
  23. data/lib/rdoc/generator/aliki.rb +42 -0
  24. data/lib/rdoc/generator/darkfish.rb +20 -16
  25. data/lib/rdoc/generator/json_index.rb +3 -3
  26. data/lib/rdoc/generator/markup.rb +12 -0
  27. data/lib/rdoc/generator/pot/message_extractor.rb +4 -4
  28. data/lib/rdoc/generator/pot/po.rb +1 -1
  29. data/lib/rdoc/generator/pot/po_entry.rb +7 -7
  30. data/lib/rdoc/generator/pot.rb +1 -1
  31. data/lib/rdoc/generator/ri.rb +1 -1
  32. data/lib/rdoc/generator/template/aliki/_aside_toc.rhtml +8 -0
  33. data/lib/rdoc/generator/template/aliki/_footer.rhtml +23 -0
  34. data/lib/rdoc/generator/template/aliki/_head.rhtml +158 -0
  35. data/lib/rdoc/generator/template/aliki/_header.rhtml +56 -0
  36. data/lib/rdoc/generator/template/aliki/_icons.rhtml +208 -0
  37. data/lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml +16 -0
  38. data/lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml +15 -0
  39. data/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml +25 -0
  40. data/lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml +25 -0
  41. data/lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml +16 -0
  42. data/lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml +41 -0
  43. data/lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml +67 -0
  44. data/lib/rdoc/generator/template/aliki/_sidebar_search.rhtml +15 -0
  45. data/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml +21 -0
  46. data/lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml +3 -0
  47. data/lib/rdoc/generator/template/aliki/class.rhtml +220 -0
  48. data/lib/rdoc/generator/template/aliki/css/rdoc.css +1737 -0
  49. data/lib/rdoc/generator/template/aliki/index.rhtml +22 -0
  50. data/lib/rdoc/generator/template/aliki/js/aliki.js +483 -0
  51. data/lib/rdoc/generator/template/aliki/js/c_highlighter.js +299 -0
  52. data/lib/rdoc/generator/template/aliki/js/search.js +120 -0
  53. data/lib/rdoc/generator/template/aliki/js/theme-toggle.js +112 -0
  54. data/lib/rdoc/generator/template/aliki/page.rhtml +18 -0
  55. data/lib/rdoc/generator/template/aliki/servlet_not_found.rhtml +14 -0
  56. data/lib/rdoc/generator/template/aliki/servlet_root.rhtml +65 -0
  57. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +3 -3
  58. data/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -16
  59. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +8 -8
  60. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +8 -8
  61. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +7 -6
  62. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +6 -6
  63. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +19 -19
  64. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +2 -2
  65. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +1 -0
  66. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +3 -3
  67. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +14 -14
  68. data/lib/rdoc/generator/template/darkfish/class.rhtml +62 -60
  69. data/lib/rdoc/generator/template/darkfish/css/rdoc.css +2 -0
  70. data/lib/rdoc/generator/template/darkfish/index.rhtml +4 -3
  71. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +21 -1
  72. data/lib/rdoc/generator/template/darkfish/js/search.js +11 -1
  73. data/lib/rdoc/generator/template/darkfish/page.rhtml +2 -1
  74. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +2 -1
  75. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +19 -19
  76. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +19 -17
  77. data/lib/rdoc/generator/template/json_index/js/searcher.js +48 -6
  78. data/lib/rdoc/generator.rb +1 -0
  79. data/lib/rdoc/markdown.kpeg +72 -18
  80. data/lib/rdoc/markdown.rb +411 -547
  81. data/lib/rdoc/markup/attribute_manager.rb +5 -5
  82. data/lib/rdoc/markup/attributes.rb +3 -3
  83. data/lib/rdoc/markup/blank_line.rb +2 -2
  84. data/lib/rdoc/markup/block_quote.rb +1 -1
  85. data/lib/rdoc/markup/document.rb +8 -8
  86. data/lib/rdoc/markup/formatter.rb +12 -12
  87. data/lib/rdoc/markup/hard_break.rb +3 -3
  88. data/lib/rdoc/markup/heading.rb +4 -4
  89. data/lib/rdoc/markup/include.rb +3 -3
  90. data/lib/rdoc/markup/indented_paragraph.rb +3 -3
  91. data/lib/rdoc/markup/list.rb +4 -4
  92. data/lib/rdoc/markup/list_item.rb +4 -4
  93. data/lib/rdoc/markup/paragraph.rb +2 -2
  94. data/lib/rdoc/markup/parser.rb +11 -11
  95. data/lib/rdoc/markup/pre_process.rb +39 -15
  96. data/lib/rdoc/markup/raw.rb +5 -5
  97. data/lib/rdoc/markup/rule.rb +2 -2
  98. data/lib/rdoc/markup/table.rb +4 -4
  99. data/lib/rdoc/markup/to_ansi.rb +7 -3
  100. data/lib/rdoc/markup/to_bs.rb +10 -6
  101. data/lib/rdoc/markup/to_html.rb +182 -30
  102. data/lib/rdoc/markup/to_html_crossref.rb +58 -28
  103. data/lib/rdoc/markup/to_html_snippet.rb +17 -17
  104. data/lib/rdoc/markup/to_joined_paragraph.rb +1 -1
  105. data/lib/rdoc/markup/to_label.rb +6 -5
  106. data/lib/rdoc/markup/to_markdown.rb +12 -12
  107. data/lib/rdoc/markup/to_rdoc.rb +40 -31
  108. data/lib/rdoc/markup/to_table_of_contents.rb +3 -3
  109. data/lib/rdoc/markup/to_test.rb +1 -1
  110. data/lib/rdoc/markup/to_tt_only.rb +8 -8
  111. data/lib/rdoc/markup/verbatim.rb +3 -3
  112. data/lib/rdoc/markup.rb +3 -3
  113. data/lib/rdoc/options.rb +53 -23
  114. data/lib/rdoc/parser/c.rb +31 -62
  115. data/lib/rdoc/parser/changelog.rb +9 -9
  116. data/lib/rdoc/parser/prism_ruby.rb +122 -114
  117. data/lib/rdoc/parser/ruby.rb +51 -51
  118. data/lib/rdoc/parser/ruby_tools.rb +5 -7
  119. data/lib/rdoc/parser/simple.rb +5 -22
  120. data/lib/rdoc/parser.rb +8 -8
  121. data/lib/rdoc/rd/inline.rb +4 -4
  122. data/lib/rdoc/rd.rb +1 -1
  123. data/lib/rdoc/rdoc.rb +9 -8
  124. data/lib/rdoc/ri/driver.rb +49 -49
  125. data/lib/rdoc/ri/paths.rb +2 -2
  126. data/lib/rdoc/ri/task.rb +3 -3
  127. data/lib/rdoc/rubygems_hook.rb +14 -11
  128. data/lib/rdoc/servlet.rb +15 -15
  129. data/lib/rdoc/stats/normal.rb +1 -1
  130. data/lib/rdoc/stats/quiet.rb +1 -1
  131. data/lib/rdoc/stats/verbose.rb +3 -3
  132. data/lib/rdoc/stats.rb +12 -12
  133. data/lib/rdoc/store.rb +32 -32
  134. data/lib/rdoc/task.rb +6 -6
  135. data/lib/rdoc/text.rb +11 -11
  136. data/lib/rdoc/token_stream.rb +14 -2
  137. data/lib/rdoc/tom_doc.rb +8 -8
  138. data/lib/rdoc/version.rb +1 -1
  139. data/man/ri.1 +2 -0
  140. data/rdoc.gemspec +72 -0
  141. metadata +61 -6
  142. data/README.rdoc +0 -142
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  ##
3
4
  # A TokenStream is a list of tokens, gathered during the parse of some entity
4
5
  # (say a method). Entities populate these streams by being registered with the
@@ -13,7 +14,7 @@ module RDoc::TokenStream
13
14
  # <tt><span></tt> elements. Some tokens types are wrapped in spans
14
15
  # with the given class names. Other token types are not wrapped in spans.
15
16
 
16
- def self.to_html token_stream
17
+ def self.to_html(token_stream)
17
18
  starting_title = false
18
19
 
19
20
  token_stream.map do |t|
@@ -87,9 +88,11 @@ module RDoc::TokenStream
87
88
 
88
89
  ##
89
90
  # Starts collecting tokens
91
+ #
90
92
 
91
- def collect_tokens
93
+ def collect_tokens(language)
92
94
  @token_stream = []
95
+ @token_stream_language = language
93
96
  end
94
97
 
95
98
  alias start_collecting_tokens collect_tokens
@@ -115,4 +118,13 @@ module RDoc::TokenStream
115
118
  (token_stream or return '').compact.map { |token| token[:text] }.join ''
116
119
  end
117
120
 
121
+ ##
122
+ # Returns the source language of the token stream as a string
123
+ #
124
+ # Returns 'c' or 'ruby'
125
+
126
+ def source_language
127
+ @token_stream_language == :c ? 'c' : 'ruby'
128
+ end
129
+
118
130
  end
data/lib/rdoc/tom_doc.rb CHANGED
@@ -49,7 +49,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
49
49
  next unless code_object and
50
50
  RDoc::Comment === comment and comment.format == 'tomdoc'
51
51
 
52
- comment.text.gsub!(/(\A\s*# )(Public|Internal|Deprecated):\s+/) do
52
+ comment.text.gsub!(/\A(\s*# |)(Public|Internal|Deprecated):\s+/) do
53
53
  section = code_object.add_section $2
54
54
  code_object.temporary_section = section
55
55
 
@@ -75,7 +75,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
75
75
  #
76
76
  # Returns an RDoc::Markup::Document representing the TomDoc format.
77
77
 
78
- def self.parse text
78
+ def self.parse(text)
79
79
  parser = new
80
80
 
81
81
  parser.tokenize text
@@ -91,7 +91,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
91
91
  #
92
92
  # Returns a String containing the signature and nil if not
93
93
 
94
- def self.signature comment
94
+ def self.signature(comment)
95
95
  return unless comment.tomdoc?
96
96
 
97
97
  document = comment.parse
@@ -134,7 +134,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
134
134
  #
135
135
  # Returns an RDoc::Markup::Heading
136
136
 
137
- def build_heading level
137
+ def build_heading(level)
138
138
  heading = super
139
139
 
140
140
  @section = heading.text
@@ -150,7 +150,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
150
150
  #
151
151
  # Returns an RDoc::Markup::Verbatim
152
152
 
153
- def build_verbatim margin
153
+ def build_verbatim(margin)
154
154
  verbatim = super
155
155
 
156
156
  verbatim.format = :ruby if @section == 'Examples'
@@ -164,7 +164,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
164
164
  #
165
165
  # Returns an RDoc::Markup::Paragraph.
166
166
 
167
- def build_paragraph margin
167
+ def build_paragraph(margin)
168
168
  p :paragraph_start => margin if @debug
169
169
 
170
170
  paragraph = RDoc::Markup::Paragraph.new
@@ -204,7 +204,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
204
204
  ##
205
205
  # Detects a section change to "Returns" and adds a heading
206
206
 
207
- def parse_text parent, indent # :nodoc:
207
+ def parse_text(parent, indent) # :nodoc:
208
208
  paragraph = build_paragraph indent
209
209
 
210
210
  if false == @seen_returns and 'Returns' == @section then
@@ -222,7 +222,7 @@ class RDoc::TomDoc < RDoc::Markup::Parser
222
222
  #
223
223
  # Returns self.
224
224
 
225
- def tokenize text
225
+ def tokenize(text)
226
226
  text = text.sub(/\A(Public|Internal|Deprecated):\s+/, '')
227
227
 
228
228
  setup_scanner text
data/lib/rdoc/version.rb CHANGED
@@ -5,6 +5,6 @@ module RDoc
5
5
  ##
6
6
  # RDoc version you are using
7
7
 
8
- VERSION = '6.13.0'
8
+ VERSION = '6.17.0'
9
9
 
10
10
  end
data/man/ri.1 CHANGED
@@ -36,6 +36,8 @@ can be:
36
36
  .It Class::method | Class#method | Class.method | method
37
37
  .Pp
38
38
  .It gem_name: | gem_name:README | gem_name:History
39
+ .Pp
40
+ .It ruby: | ruby:NEWS | ruby:globals
39
41
  .El
40
42
  .Pp
41
43
  All class names may be abbreviated to their minimum unambiguous form.
data/rdoc.gemspec ADDED
@@ -0,0 +1,72 @@
1
+ begin
2
+ require_relative "lib/rdoc/version"
3
+ rescue LoadError
4
+ # for Ruby repository
5
+ require_relative "version"
6
+ end
7
+
8
+ Gem::Specification.new do |s|
9
+ s.name = "rdoc"
10
+ s.version = RDoc::VERSION
11
+
12
+ s.authors = [
13
+ "Eric Hodel",
14
+ "Dave Thomas",
15
+ "Phil Hagelberg",
16
+ "Tony Strauss",
17
+ "Zachary Scott",
18
+ "Hiroshi SHIBATA",
19
+ "ITOYANAGI Sakura"
20
+ ]
21
+ s.email = ["drbrain@segment7.net", "", "", "", "mail@zzak.io", "hsbt@ruby-lang.org", "aycabta@gmail.com"]
22
+
23
+ s.summary = "RDoc produces HTML and command-line documentation for Ruby projects"
24
+ s.description = <<-DESCRIPTION
25
+ RDoc produces HTML and command-line documentation for Ruby projects.
26
+ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
27
+ DESCRIPTION
28
+ s.homepage = "https://ruby.github.io/rdoc"
29
+ s.licenses = ["Ruby"]
30
+
31
+ s.metadata["homepage_uri"] = s.homepage
32
+ s.metadata["source_code_uri"] = "https://github.com/ruby/rdoc"
33
+ s.metadata["changelog_uri"] = "#{s.metadata["source_code_uri"]}/releases"
34
+
35
+ s.bindir = "exe"
36
+ s.executables = ["rdoc", "ri"]
37
+ s.require_paths = ["lib"]
38
+ # for ruby core repository. It was generated by
39
+ # `git ls-files -z`.split("\x0").each {|f| puts " #{f.dump}," unless f.start_with?(*%W[test/ spec/ features/ .]) }
40
+ non_lib_files = [
41
+ "CONTRIBUTING.rdoc",
42
+ "CVE-2013-0256.rdoc",
43
+ "ExampleMarkdown.md",
44
+ "ExampleRDoc.rdoc",
45
+ "History.rdoc",
46
+ "LEGAL.rdoc",
47
+ "LICENSE.rdoc",
48
+ "README.md",
49
+ "RI.md",
50
+ "TODO.rdoc",
51
+ "exe/rdoc",
52
+ "exe/ri",
53
+ "man/ri.1",
54
+ "rdoc.gemspec",
55
+ ]
56
+ base = __dir__
57
+ not_dir = ->(path) {!File.directory?(File.join(base, path))}
58
+ template_files = Dir.glob("lib/rdoc/generator/template/**/*", base: base).select(&not_dir)
59
+ lib_files = Dir.glob("lib/**/*.{rb,kpeg,ry}", base: base).select(&not_dir)
60
+
61
+ s.files = (non_lib_files + template_files + lib_files).uniq
62
+
63
+ s.rdoc_options = ["--main", "README.md"]
64
+ s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z])
65
+
66
+ s.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
67
+ s.required_rubygems_version = Gem::Requirement.new(">= 2.2")
68
+
69
+ s.add_dependency 'psych', '>= 4.0.0'
70
+ s.add_dependency 'erb'
71
+ s.add_dependency 'tsort'
72
+ end
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.13.0
4
+ version: 6.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -13,7 +13,7 @@ authors:
13
13
  - ITOYANAGI Sakura
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2025-03-23 00:00:00.000000000 Z
16
+ date: 2025-12-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: psych
@@ -29,6 +29,34 @@ dependencies:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: 4.0.0
32
+ - !ruby/object:Gem::Dependency
33
+ name: erb
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: tsort
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
32
60
  description: |
33
61
  RDoc produces HTML and command-line documentation for Ruby projects.
34
62
  RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
@@ -52,7 +80,7 @@ extra_rdoc_files:
52
80
  - History.rdoc
53
81
  - LEGAL.rdoc
54
82
  - LICENSE.rdoc
55
- - README.rdoc
83
+ - README.md
56
84
  - RI.md
57
85
  - TODO.rdoc
58
86
  files:
@@ -63,7 +91,7 @@ files:
63
91
  - History.rdoc
64
92
  - LEGAL.rdoc
65
93
  - LICENSE.rdoc
66
- - README.rdoc
94
+ - README.md
67
95
  - RI.md
68
96
  - TODO.rdoc
69
97
  - exe/rdoc
@@ -96,6 +124,7 @@ files:
96
124
  - lib/rdoc/erb_partial.rb
97
125
  - lib/rdoc/erbio.rb
98
126
  - lib/rdoc/generator.rb
127
+ - lib/rdoc/generator/aliki.rb
99
128
  - lib/rdoc/generator/darkfish.rb
100
129
  - lib/rdoc/generator/json_index.rb
101
130
  - lib/rdoc/generator/markup.rb
@@ -104,6 +133,31 @@ files:
104
133
  - lib/rdoc/generator/pot/po.rb
105
134
  - lib/rdoc/generator/pot/po_entry.rb
106
135
  - lib/rdoc/generator/ri.rb
136
+ - lib/rdoc/generator/template/aliki/_aside_toc.rhtml
137
+ - lib/rdoc/generator/template/aliki/_footer.rhtml
138
+ - lib/rdoc/generator/template/aliki/_head.rhtml
139
+ - lib/rdoc/generator/template/aliki/_header.rhtml
140
+ - lib/rdoc/generator/template/aliki/_icons.rhtml
141
+ - lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml
142
+ - lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml
143
+ - lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml
144
+ - lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml
145
+ - lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml
146
+ - lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml
147
+ - lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml
148
+ - lib/rdoc/generator/template/aliki/_sidebar_search.rhtml
149
+ - lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml
150
+ - lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml
151
+ - lib/rdoc/generator/template/aliki/class.rhtml
152
+ - lib/rdoc/generator/template/aliki/css/rdoc.css
153
+ - lib/rdoc/generator/template/aliki/index.rhtml
154
+ - lib/rdoc/generator/template/aliki/js/aliki.js
155
+ - lib/rdoc/generator/template/aliki/js/c_highlighter.js
156
+ - lib/rdoc/generator/template/aliki/js/search.js
157
+ - lib/rdoc/generator/template/aliki/js/theme-toggle.js
158
+ - lib/rdoc/generator/template/aliki/page.rhtml
159
+ - lib/rdoc/generator/template/aliki/servlet_not_found.rhtml
160
+ - lib/rdoc/generator/template/aliki/servlet_root.rhtml
107
161
  - lib/rdoc/generator/template/darkfish/_footer.rhtml
108
162
  - lib/rdoc/generator/template/darkfish/_head.rhtml
109
163
  - lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
@@ -244,6 +298,7 @@ files:
244
298
  - lib/rdoc/version.rb
245
299
  - lib/rubygems_plugin.rb
246
300
  - man/ri.1
301
+ - rdoc.gemspec
247
302
  homepage: https://ruby.github.io/rdoc
248
303
  licenses:
249
304
  - Ruby
@@ -253,7 +308,7 @@ metadata:
253
308
  changelog_uri: https://github.com/ruby/rdoc/releases
254
309
  rdoc_options:
255
310
  - "--main"
256
- - README.rdoc
311
+ - README.md
257
312
  require_paths:
258
313
  - lib
259
314
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -267,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
322
  - !ruby/object:Gem::Version
268
323
  version: '2.2'
269
324
  requirements: []
270
- rubygems_version: 3.6.2
325
+ rubygems_version: 3.6.7
271
326
  specification_version: 4
272
327
  summary: RDoc produces HTML and command-line documentation for Ruby projects
273
328
  test_files: []
data/README.rdoc DELETED
@@ -1,142 +0,0 @@
1
- = \RDoc - Ruby Documentation System
2
-
3
- home :: https://github.com/ruby/rdoc
4
- rdoc :: https://ruby.github.io/rdoc
5
- bugs :: https://github.com/ruby/rdoc/issues
6
- code quality :: https://codeclimate.com/github/ruby/rdoc
7
-
8
- == Description
9
-
10
- RDoc produces HTML and command-line documentation for Ruby projects. RDoc
11
- includes the +rdoc+ and +ri+ tools for generating and displaying documentation
12
- from the command-line.
13
-
14
- == Generating Documentation
15
-
16
- Once installed, you can create documentation using the +rdoc+ command
17
-
18
- $ rdoc [options] [names...]
19
-
20
- For an up-to-date option summary, type
21
-
22
- $ rdoc --help
23
-
24
- A typical use might be to generate documentation for a package of Ruby
25
- source (such as RDoc itself).
26
-
27
- $ rdoc
28
-
29
- This command generates documentation for all the Ruby and C source
30
- files in and below the current directory. These will be stored in a
31
- documentation tree starting in the subdirectory +doc+.
32
-
33
- You can make this slightly more useful for your readers by having the
34
- index page contain the documentation for the primary file. In our
35
- case, we could type
36
-
37
- % rdoc --main README.rdoc
38
-
39
- You'll find information on the various formatting tricks you can use
40
- in comment blocks in the documentation this generates.
41
-
42
- RDoc uses file extensions to determine how to process each file. File names
43
- ending +.rb+ and +.rbw+ are assumed to be Ruby source. Files
44
- ending +.c+ are parsed as C files. All other files are assumed to
45
- contain just Markup-style markup (with or without leading '#' comment
46
- markers). If directory names are passed to RDoc, they are scanned
47
- recursively for C and Ruby source files only.
48
-
49
- To generate documentation using +rake+ see RDoc::Task[https://ruby.github.io/rdoc/RDoc/Task.html].
50
-
51
- To generate documentation programmatically:
52
-
53
- gem 'rdoc'
54
- require 'rdoc/rdoc'
55
-
56
- options = RDoc::Options.new
57
- # see RDoc::Options
58
-
59
- rdoc = RDoc::RDoc.new
60
- rdoc.document options
61
- # see RDoc::RDoc
62
-
63
- You can specify the target files for document generation with +.document+ file in the project root directory.
64
- +.document+ file contains a list of file and directory names including comment lines starting with '#'.
65
- See https://github.com/ruby/rdoc/blob/master/.document as an example.
66
-
67
- == Writing Documentation
68
-
69
- To write documentation for RDoc place a comment above the class, module,
70
- method, constant, or attribute you want documented:
71
-
72
- ##
73
- # This class represents an arbitrary shape by a series of points.
74
-
75
- class Shape
76
-
77
- ##
78
- # Creates a new shape described by a +polyline+.
79
- #
80
- # If the +polyline+ does not end at the same point it started at the
81
- # first pointed is copied and placed at the end of the line.
82
- #
83
- # An ArgumentError is raised if the line crosses itself, but shapes may
84
- # be concave.
85
-
86
- def initialize polyline
87
- # ...
88
- end
89
-
90
- end
91
-
92
- The default comment markup format is the RDoc::Markup format.
93
- TomDoc[rdoc-ref:RDoc::TomDoc], Markdown[rdoc-ref:RDoc::Markdown] and
94
- RD[rdoc-ref:RDoc::RD] format comments are also supported. You can set the
95
- default comment format for your entire project by creating a
96
- <tt>.rdoc_options</tt> file. See RDoc::Options@Saved+Options for instructions
97
- on creating one. You can also set the comment format for a single file
98
- through the +:markup:+ directive, but this is only recommended if you wish to
99
- switch markup formats. See RDoc::Markup@Other+directives.
100
-
101
- Comments can contain directives that tell RDoc information that it cannot
102
- otherwise discover through parsing. See RDoc::Markup@Directives to control
103
- what is or is not documented, to define method arguments or to break up
104
- methods in a class by topic. See RDoc::Parser::Ruby for directives used to
105
- teach RDoc about metaprogrammed methods.
106
-
107
- See RDoc::Parser::C for documenting C extensions with RDoc.
108
-
109
- To determine how well your project is documented run <tt>rdoc -C lib</tt> to
110
- get a documentation coverage report. <tt>rdoc -C1 lib</tt> includes parameter
111
- names in the documentation coverage report.
112
-
113
- == Theme Options
114
-
115
- There are a few community-maintained themes for \RDoc:
116
-
117
- - rorvswild-theme-rdoc[https://github.com/BaseSecrete/rorvswild-theme-rdoc]
118
- - hanna[https://github.com/jeremyevans/hanna] (a fork maintained by {Jeremy Evans}[https://github.com/jeremyevans])
119
-
120
- Please follow the theme's README for usage instructions.
121
-
122
- == Bugs
123
-
124
- See CONTRIBUTING@Bugs for information on filing a bug report. It's OK to file
125
- a bug report for anything you're having a problem with. If you can't figure
126
- out how to make RDoc produce the output you like that is probably a
127
- documentation bug.
128
-
129
- == License
130
-
131
- RDoc is Copyright (c) 2001-2003 Dave Thomas, The Pragmatic Programmers.
132
- Portions (c) 2007-2011 Eric Hodel. Portions copyright others, see individual
133
- files and LEGAL.rdoc for details.
134
-
135
- RDoc is free software, and may be redistributed under the terms specified in
136
- LICENSE.rdoc.
137
-
138
- == Warranty
139
-
140
- This software is provided "as is" and without any express or implied
141
- warranties, including, without limitation, the implied warranties of
142
- merchantability and fitness for a particular purpose.