rdoc 6.14.2 → 7.1.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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +196 -0
  3. data/History.rdoc +1 -1
  4. data/LEGAL.rdoc +6 -0
  5. data/README.md +195 -0
  6. data/RI.md +1 -1
  7. data/doc/markup_reference/markdown.md +558 -0
  8. data/doc/markup_reference/rdoc.rdoc +1169 -0
  9. data/lib/rdoc/code_object/any_method.rb +15 -7
  10. data/lib/rdoc/code_object/class_module.rb +62 -11
  11. data/lib/rdoc/code_object/constant.rb +9 -0
  12. data/lib/rdoc/code_object/context/section.rb +20 -1
  13. data/lib/rdoc/code_object/method_attr.rb +13 -1
  14. data/lib/rdoc/code_object/top_level.rb +31 -26
  15. data/lib/rdoc/comment.rb +190 -8
  16. data/lib/rdoc/cross_reference.rb +31 -22
  17. data/lib/rdoc/generator/aliki.rb +183 -0
  18. data/lib/rdoc/generator/darkfish.rb +8 -2
  19. data/lib/rdoc/generator/template/aliki/_aside_toc.rhtml +8 -0
  20. data/lib/rdoc/generator/template/aliki/_footer.rhtml +23 -0
  21. data/lib/rdoc/generator/template/aliki/_head.rhtml +158 -0
  22. data/lib/rdoc/generator/template/aliki/_header.rhtml +56 -0
  23. data/lib/rdoc/generator/template/aliki/_icons.rhtml +208 -0
  24. data/lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml +16 -0
  25. data/lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml +15 -0
  26. data/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml +25 -0
  27. data/lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml +25 -0
  28. data/lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml +16 -0
  29. data/lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml +41 -0
  30. data/lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml +67 -0
  31. data/lib/rdoc/generator/template/aliki/_sidebar_search.rhtml +15 -0
  32. data/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml +21 -0
  33. data/lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml +3 -0
  34. data/lib/rdoc/generator/template/aliki/class.rhtml +220 -0
  35. data/lib/rdoc/generator/template/aliki/css/rdoc.css +1963 -0
  36. data/lib/rdoc/generator/template/aliki/index.rhtml +22 -0
  37. data/lib/rdoc/generator/template/aliki/js/aliki.js +505 -0
  38. data/lib/rdoc/generator/template/aliki/js/c_highlighter.js +299 -0
  39. data/lib/rdoc/generator/template/aliki/js/search_controller.js +129 -0
  40. data/lib/rdoc/generator/template/aliki/js/search_navigation.js +105 -0
  41. data/lib/rdoc/generator/template/aliki/js/search_ranker.js +239 -0
  42. data/lib/rdoc/generator/template/aliki/js/theme-toggle.js +112 -0
  43. data/lib/rdoc/generator/template/aliki/page.rhtml +18 -0
  44. data/lib/rdoc/generator/template/aliki/servlet_not_found.rhtml +14 -0
  45. data/lib/rdoc/generator/template/aliki/servlet_root.rhtml +65 -0
  46. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +3 -3
  47. data/lib/rdoc/generator/template/darkfish/_head.rhtml +14 -19
  48. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +8 -8
  49. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +8 -8
  50. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +7 -6
  51. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +6 -6
  52. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +18 -18
  53. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +2 -2
  54. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +1 -0
  55. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +3 -3
  56. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +14 -14
  57. data/lib/rdoc/generator/template/darkfish/class.rhtml +70 -68
  58. data/lib/rdoc/generator/template/darkfish/css/rdoc.css +19 -0
  59. data/lib/rdoc/generator/template/darkfish/index.rhtml +4 -3
  60. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +21 -1
  61. data/lib/rdoc/generator/template/darkfish/js/search.js +11 -1
  62. data/lib/rdoc/generator/template/darkfish/page.rhtml +2 -1
  63. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +2 -1
  64. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +19 -19
  65. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +19 -17
  66. data/lib/rdoc/generator/template/json_index/js/searcher.js +48 -6
  67. data/lib/rdoc/generator.rb +1 -0
  68. data/lib/rdoc/markdown.kpeg +29 -22
  69. data/lib/rdoc/markdown.rb +366 -549
  70. data/lib/rdoc/markup/attribute_manager.rb +28 -1
  71. data/lib/rdoc/markup/blank_line.rb +25 -23
  72. data/lib/rdoc/markup/element.rb +21 -0
  73. data/lib/rdoc/markup/hard_break.rb +30 -27
  74. data/lib/rdoc/markup/heading.rb +166 -77
  75. data/lib/rdoc/markup/pre_process.rb +34 -10
  76. data/lib/rdoc/markup/raw.rb +52 -55
  77. data/lib/rdoc/markup/table.rb +48 -40
  78. data/lib/rdoc/markup/to_ansi.rb +4 -0
  79. data/lib/rdoc/markup/to_bs.rb +4 -0
  80. data/lib/rdoc/markup/to_html.rb +193 -25
  81. data/lib/rdoc/markup/to_html_crossref.rb +77 -28
  82. data/lib/rdoc/markup/to_label.rb +11 -1
  83. data/lib/rdoc/markup/to_rdoc.rb +11 -3
  84. data/lib/rdoc/markup/verbatim.rb +1 -1
  85. data/lib/rdoc/markup.rb +3 -2
  86. data/lib/rdoc/options.rb +22 -11
  87. data/lib/rdoc/parser/c.rb +15 -46
  88. data/lib/rdoc/parser/changelog.rb +8 -0
  89. data/lib/rdoc/parser/prism_ruby.rb +121 -113
  90. data/lib/rdoc/parser/ruby.rb +8 -8
  91. data/lib/rdoc/parser/ruby_tools.rb +5 -7
  92. data/lib/rdoc/parser/simple.rb +4 -21
  93. data/lib/rdoc/rdoc.rb +1 -0
  94. data/lib/rdoc/ri/task.rb +2 -2
  95. data/lib/rdoc/rubygems_hook.rb +3 -3
  96. data/lib/rdoc/store.rb +2 -2
  97. data/lib/rdoc/task.rb +4 -4
  98. data/lib/rdoc/text.rb +16 -1
  99. data/lib/rdoc/token_stream.rb +17 -9
  100. data/lib/rdoc/tom_doc.rb +1 -1
  101. data/lib/rdoc/version.rb +1 -1
  102. data/rdoc.gemspec +6 -5
  103. metadata +53 -12
  104. data/CONTRIBUTING.rdoc +0 -219
  105. data/ExampleMarkdown.md +0 -39
  106. data/ExampleRDoc.rdoc +0 -210
  107. data/README.rdoc +0 -144
@@ -120,7 +120,7 @@ require_relative 'ripper_state_lex'
120
120
  # # :singleton-method: some_method!
121
121
  #
122
122
  # You can define arguments for metaprogrammed methods via either the
123
- # :call-seq:, :arg: or :args: directives.
123
+ # \:call-seq:, :arg: or :args: directives.
124
124
  #
125
125
  # Additionally you can mark a method as an attribute by
126
126
  # using :attr:, :attr_reader:, :attr_writer: or :attr_accessor:. Just like
@@ -1088,7 +1088,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1088
1088
 
1089
1089
  ##
1090
1090
  # Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for
1091
- # :method: or :attr: directives in +comment+.
1091
+ # \:method: or :attr: directives in +comment+.
1092
1092
 
1093
1093
  def parse_comment(container, tk, comment)
1094
1094
  return parse_comment_tomdoc container, tk, comment if @markup == 'tomdoc'
@@ -1137,7 +1137,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1137
1137
  meth = RDoc::GhostMethod.new get_tkread, name
1138
1138
  record_location meth
1139
1139
 
1140
- meth.start_collecting_tokens
1140
+ meth.start_collecting_tokens(:ruby)
1141
1141
  indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
1142
1142
  position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
1143
1143
  position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
@@ -1180,7 +1180,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1180
1180
  record_location meth
1181
1181
  meth.line = line_no
1182
1182
 
1183
- meth.start_collecting_tokens
1183
+ meth.start_collecting_tokens(:ruby)
1184
1184
  indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
1185
1185
  position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
1186
1186
  position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
@@ -1344,7 +1344,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1344
1344
  column = tk[:char_no]
1345
1345
  line_no = tk[:line_no]
1346
1346
 
1347
- start_collecting_tokens
1347
+ start_collecting_tokens(:ruby)
1348
1348
  add_token tk
1349
1349
  add_token_listener self
1350
1350
 
@@ -1363,7 +1363,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1363
1363
 
1364
1364
  remove_token_listener self
1365
1365
 
1366
- meth.start_collecting_tokens
1366
+ meth.start_collecting_tokens(:ruby)
1367
1367
  indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
1368
1368
  position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
1369
1369
  position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
@@ -1448,7 +1448,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1448
1448
  column = tk[:char_no]
1449
1449
  line_no = tk[:line_no]
1450
1450
 
1451
- start_collecting_tokens
1451
+ start_collecting_tokens(:ruby)
1452
1452
  add_token tk
1453
1453
 
1454
1454
  token_listener self do
@@ -1471,7 +1471,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
1471
1471
  record_location meth
1472
1472
  meth.line = line_no
1473
1473
 
1474
- meth.start_collecting_tokens
1474
+ meth.start_collecting_tokens(:ruby)
1475
1475
  indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
1476
1476
  token = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
1477
1477
  token[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
@@ -20,7 +20,7 @@ module RDoc::Parser::RubyTools
20
20
 
21
21
  if @tokens.empty? then
22
22
  if @scanner_point >= @scanner.size
23
- return nil
23
+ return
24
24
  else
25
25
  tk = @scanner[@scanner_point]
26
26
  @scanner_point += 1
@@ -31,16 +31,14 @@ module RDoc::Parser::RubyTools
31
31
  tk = @tokens.shift
32
32
  end
33
33
 
34
- if tk == nil || :on___end__ == tk[:kind]
35
- tk = nil
34
+ if tk.nil? || :on___end__ == tk[:kind]
35
+ return
36
36
  end
37
37
 
38
- return nil unless tk
39
-
40
38
  # inform any listeners of our shiny new token
41
- @token_listeners.each do |obj|
39
+ @token_listeners&.each do |obj|
42
40
  obj.add_token(tk)
43
- end if @token_listeners
41
+ end
44
42
 
45
43
  tk
46
44
  end
@@ -19,17 +19,17 @@ class RDoc::Parser::Simple < RDoc::Parser
19
19
 
20
20
  preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
21
21
 
22
- @content = preprocess.handle @content, @top_level
22
+ content = RDoc::Text.expand_tabs(@content)
23
+ @content, = preprocess.run_pre_processes(content, @top_level, 1, :simple)
23
24
  end
24
25
 
25
26
  ##
26
27
  # Extract the file contents and attach them to the TopLevel as a comment
27
28
 
28
29
  def scan
29
- comment = remove_coding_comment @content
30
- comment = remove_private_comment comment
30
+ content = remove_coding_comment @content
31
31
 
32
- comment = RDoc::Comment.new comment, @top_level
32
+ comment = RDoc::Comment.new content, @top_level
33
33
 
34
34
  @top_level.comment = comment
35
35
  @top_level
@@ -41,21 +41,4 @@ class RDoc::Parser::Simple < RDoc::Parser
41
41
  def remove_coding_comment(text)
42
42
  text.sub(/\A# .*coding[=:].*$/, '')
43
43
  end
44
-
45
- ##
46
- # Removes private comments.
47
- #
48
- # Unlike RDoc::Comment#remove_private this implementation only looks for two
49
- # dashes at the beginning of the line. Three or more dashes are considered
50
- # to be a rule and ignored.
51
-
52
- def remove_private_comment(comment)
53
- # Workaround for gsub encoding for Ruby 1.9.2 and earlier
54
- empty = ''
55
- empty = RDoc::Encoding.change_encoding empty, comment.encoding
56
-
57
- comment = comment.gsub(%r%^--\n.*?^\+\+\n?%m, empty)
58
- comment.sub(%r%^--\n.*%m, empty)
59
- end
60
-
61
44
  end
data/lib/rdoc/rdoc.rb CHANGED
@@ -547,5 +547,6 @@ end
547
547
 
548
548
  # require built-in generators after discovery in case they've been replaced
549
549
  require_relative 'generator/darkfish'
550
+ require_relative 'generator/aliki'
550
551
  require_relative 'generator/ri'
551
552
  require_relative 'generator/pot'
data/lib/rdoc/ri/task.rb CHANGED
@@ -26,8 +26,8 @@ require_relative '../task'
26
26
  # require 'rdoc/ri/task'
27
27
  #
28
28
  # RDoc::RI::Task.new do |ri|
29
- # ri.main = 'README.rdoc'
30
- # ri.rdoc_files.include 'README.rdoc', 'lib/**/*.rb'
29
+ # ri.main = 'README.md'
30
+ # ri.rdoc_files.include 'README.md', 'lib/**/*.rb'
31
31
  # end
32
32
  #
33
33
  # For further configuration details see RDoc::Task.
@@ -118,7 +118,7 @@ class RDoc::RubyGemsHook
118
118
  end
119
119
 
120
120
  ##
121
- # Generates documentation using the named +generator+ ("darkfish" or "ri")
121
+ # Generates documentation using the named +generator+ ("aliki" or "ri")
122
122
  # and following the given +options+.
123
123
  #
124
124
  # Documentation will be generated into +destination+
@@ -190,7 +190,7 @@ class RDoc::RubyGemsHook
190
190
 
191
191
  Dir.chdir @spec.full_gem_path do
192
192
  # RDoc::Options#finish must be called before parse_files.
193
- # RDoc::Options#finish is also called after ri/darkfish generator setup.
193
+ # RDoc::Options#finish is also called after ri/aliki generator setup.
194
194
  # We need to dup the options to avoid modifying it after finish is called.
195
195
  parse_options = options.dup
196
196
  parse_options.finish
@@ -202,7 +202,7 @@ class RDoc::RubyGemsHook
202
202
  document 'ri', options, @ri_dir if
203
203
  @generate_ri and (@force or not File.exist? @ri_dir)
204
204
 
205
- document 'darkfish', options, @rdoc_dir if
205
+ document 'aliki', options, @rdoc_dir if
206
206
  @generate_rdoc and (@force or not File.exist? @rdoc_dir)
207
207
  end
208
208
 
data/lib/rdoc/store.rb CHANGED
@@ -720,10 +720,10 @@ class RDoc::Store
720
720
  end
721
721
 
722
722
  ##
723
- # Returns the RDoc::TopLevel that is a text file and has the given +name+
723
+ # Returns the RDoc::TopLevel that is a file and has the given +name+
724
724
 
725
725
  def page(name)
726
- @text_files_hash.each_value.find do |file|
726
+ @files_hash.each_value.find do |file|
727
727
  file.page_name == name or file.base_name == name
728
728
  end
729
729
  end
data/lib/rdoc/task.rb CHANGED
@@ -58,8 +58,8 @@ require 'rake/tasklib'
58
58
  # require 'rdoc/task'
59
59
  #
60
60
  # RDoc::Task.new do |rdoc|
61
- # rdoc.main = "README.rdoc"
62
- # rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
61
+ # rdoc.main = "README.md"
62
+ # rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
63
63
  # end
64
64
  #
65
65
  # The +rdoc+ object passed to the block is an RDoc::Task object. See the
@@ -74,8 +74,8 @@ require 'rake/tasklib'
74
74
  # require 'rdoc/task'
75
75
  #
76
76
  # RDoc::Task.new :rdoc_dev do |rdoc|
77
- # rdoc.main = "README.rdoc"
78
- # rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
77
+ # rdoc.main = "README.md"
78
+ # rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
79
79
  # rdoc.options << "--all"
80
80
  # end
81
81
  #
data/lib/rdoc/text.rb CHANGED
@@ -60,7 +60,7 @@ module RDoc::Text
60
60
  ##
61
61
  # Expands tab characters in +text+ to eight spaces
62
62
 
63
- def expand_tabs(text)
63
+ module_function def expand_tabs(text)
64
64
  expanded = []
65
65
 
66
66
  text.each_line do |line|
@@ -319,4 +319,19 @@ module RDoc::Text
319
319
 
320
320
  SPACE_SEPARATED_LETTER_CLASS = /[\p{Nd}\p{Lc}\p{Pc}]|[!-~&&\W]/
321
321
 
322
+ ##
323
+ # Converts +text+ to a GitHub-style anchor ID:
324
+ # - Lowercase
325
+ # - Remove characters that aren't alphanumeric, space, or hyphen
326
+ # - Replace spaces with hyphens
327
+ #
328
+ # Examples:
329
+ # "Hello World" -> "hello-world"
330
+ # "Foo::Bar" -> "foobar"
331
+ # "What's New?" -> "whats-new"
332
+
333
+ module_function def to_anchor(text)
334
+ text.downcase.gsub(/[^a-z0-9 \-]/, '').gsub(' ', '-')
335
+ end
336
+
322
337
  end
@@ -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
@@ -44,13 +45,7 @@ module RDoc::TokenStream
44
45
  then 'ruby-identifier'
45
46
  end
46
47
 
47
- comment_with_nl = false
48
- if :on_comment == t[:kind] or :on_embdoc == t[:kind] or :on_heredoc_end == t[:kind]
49
- comment_with_nl = true if "\n" == t[:text][-1]
50
- text = t[:text].rstrip
51
- else
52
- text = t[:text]
53
- end
48
+ text = t[:text]
54
49
 
55
50
  if :on_ident == t[:kind] && starting_title
56
51
  starting_title = false
@@ -64,7 +59,9 @@ module RDoc::TokenStream
64
59
  text = CGI.escapeHTML text
65
60
 
66
61
  if style then
67
- "<span class=\"#{style}\">#{text}</span>#{"\n" if comment_with_nl}"
62
+ end_with_newline = text.end_with?("\n")
63
+ text = text.chomp if end_with_newline
64
+ "<span class=\"#{style}\">#{text}</span>#{"\n" if end_with_newline}"
68
65
  else
69
66
  text
70
67
  end
@@ -87,9 +84,11 @@ module RDoc::TokenStream
87
84
 
88
85
  ##
89
86
  # Starts collecting tokens
87
+ #
90
88
 
91
- def collect_tokens
89
+ def collect_tokens(language)
92
90
  @token_stream = []
91
+ @token_stream_language = language
93
92
  end
94
93
 
95
94
  alias start_collecting_tokens collect_tokens
@@ -115,4 +114,13 @@ module RDoc::TokenStream
115
114
  (token_stream or return '').compact.map { |token| token[:text] }.join ''
116
115
  end
117
116
 
117
+ ##
118
+ # Returns the source language of the token stream as a string
119
+ #
120
+ # Returns 'c' or 'ruby'
121
+
122
+ def source_language
123
+ @token_stream_language == :c ? 'c' : 'ruby'
124
+ end
125
+
118
126
  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
 
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.14.2'
8
+ VERSION = '7.1.0'
9
9
 
10
10
  end
data/rdoc.gemspec CHANGED
@@ -38,14 +38,14 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
38
38
  # for ruby core repository. It was generated by
39
39
  # `git ls-files -z`.split("\x0").each {|f| puts " #{f.dump}," unless f.start_with?(*%W[test/ spec/ features/ .]) }
40
40
  non_lib_files = [
41
- "CONTRIBUTING.rdoc",
41
+ "CONTRIBUTING.md",
42
42
  "CVE-2013-0256.rdoc",
43
- "ExampleMarkdown.md",
44
- "ExampleRDoc.rdoc",
43
+ "doc/markup_reference/markdown.md",
44
+ "doc/markup_reference/rdoc.rdoc",
45
45
  "History.rdoc",
46
46
  "LEGAL.rdoc",
47
47
  "LICENSE.rdoc",
48
- "README.rdoc",
48
+ "README.md",
49
49
  "RI.md",
50
50
  "TODO.rdoc",
51
51
  "exe/rdoc",
@@ -60,7 +60,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
60
60
 
61
61
  s.files = (non_lib_files + template_files + lib_files).uniq
62
62
 
63
- s.rdoc_options = ["--main", "README.rdoc"]
63
+ s.rdoc_options = ["--main", "README.md"]
64
64
  s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z])
65
65
 
66
66
  s.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
@@ -68,4 +68,5 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
68
68
 
69
69
  s.add_dependency 'psych', '>= 4.0.0'
70
70
  s.add_dependency 'erb'
71
+ s.add_dependency 'tsort'
71
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.14.2
4
+ version: 7.1.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-07-03 00:00:00.000000000 Z
16
+ date: 2026-01-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: psych
@@ -43,6 +43,20 @@ dependencies:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
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'
46
60
  description: |
47
61
  RDoc produces HTML and command-line documentation for Ruby projects.
48
62
  RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
@@ -59,27 +73,25 @@ executables:
59
73
  - ri
60
74
  extensions: []
61
75
  extra_rdoc_files:
62
- - CONTRIBUTING.rdoc
76
+ - CONTRIBUTING.md
63
77
  - CVE-2013-0256.rdoc
64
- - ExampleMarkdown.md
65
- - ExampleRDoc.rdoc
66
78
  - History.rdoc
67
79
  - LEGAL.rdoc
68
80
  - LICENSE.rdoc
69
- - README.rdoc
81
+ - README.md
70
82
  - RI.md
71
83
  - TODO.rdoc
72
84
  files:
73
- - CONTRIBUTING.rdoc
85
+ - CONTRIBUTING.md
74
86
  - CVE-2013-0256.rdoc
75
- - ExampleMarkdown.md
76
- - ExampleRDoc.rdoc
77
87
  - History.rdoc
78
88
  - LEGAL.rdoc
79
89
  - LICENSE.rdoc
80
- - README.rdoc
90
+ - README.md
81
91
  - RI.md
82
92
  - TODO.rdoc
93
+ - doc/markup_reference/markdown.md
94
+ - doc/markup_reference/rdoc.rdoc
83
95
  - exe/rdoc
84
96
  - exe/ri
85
97
  - lib/rdoc.rb
@@ -110,6 +122,7 @@ files:
110
122
  - lib/rdoc/erb_partial.rb
111
123
  - lib/rdoc/erbio.rb
112
124
  - lib/rdoc/generator.rb
125
+ - lib/rdoc/generator/aliki.rb
113
126
  - lib/rdoc/generator/darkfish.rb
114
127
  - lib/rdoc/generator/json_index.rb
115
128
  - lib/rdoc/generator/markup.rb
@@ -118,6 +131,33 @@ files:
118
131
  - lib/rdoc/generator/pot/po.rb
119
132
  - lib/rdoc/generator/pot/po_entry.rb
120
133
  - lib/rdoc/generator/ri.rb
134
+ - lib/rdoc/generator/template/aliki/_aside_toc.rhtml
135
+ - lib/rdoc/generator/template/aliki/_footer.rhtml
136
+ - lib/rdoc/generator/template/aliki/_head.rhtml
137
+ - lib/rdoc/generator/template/aliki/_header.rhtml
138
+ - lib/rdoc/generator/template/aliki/_icons.rhtml
139
+ - lib/rdoc/generator/template/aliki/_sidebar_ancestors.rhtml
140
+ - lib/rdoc/generator/template/aliki/_sidebar_classes.rhtml
141
+ - lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml
142
+ - lib/rdoc/generator/template/aliki/_sidebar_includes.rhtml
143
+ - lib/rdoc/generator/template/aliki/_sidebar_installed.rhtml
144
+ - lib/rdoc/generator/template/aliki/_sidebar_methods.rhtml
145
+ - lib/rdoc/generator/template/aliki/_sidebar_pages.rhtml
146
+ - lib/rdoc/generator/template/aliki/_sidebar_search.rhtml
147
+ - lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml
148
+ - lib/rdoc/generator/template/aliki/_sidebar_toggle.rhtml
149
+ - lib/rdoc/generator/template/aliki/class.rhtml
150
+ - lib/rdoc/generator/template/aliki/css/rdoc.css
151
+ - lib/rdoc/generator/template/aliki/index.rhtml
152
+ - lib/rdoc/generator/template/aliki/js/aliki.js
153
+ - lib/rdoc/generator/template/aliki/js/c_highlighter.js
154
+ - lib/rdoc/generator/template/aliki/js/search_controller.js
155
+ - lib/rdoc/generator/template/aliki/js/search_navigation.js
156
+ - lib/rdoc/generator/template/aliki/js/search_ranker.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
121
161
  - lib/rdoc/generator/template/darkfish/_footer.rhtml
122
162
  - lib/rdoc/generator/template/darkfish/_head.rhtml
123
163
  - lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
@@ -192,6 +232,7 @@ files:
192
232
  - lib/rdoc/markup/blank_line.rb
193
233
  - lib/rdoc/markup/block_quote.rb
194
234
  - lib/rdoc/markup/document.rb
235
+ - lib/rdoc/markup/element.rb
195
236
  - lib/rdoc/markup/formatter.rb
196
237
  - lib/rdoc/markup/hard_break.rb
197
238
  - lib/rdoc/markup/heading.rb
@@ -268,7 +309,7 @@ metadata:
268
309
  changelog_uri: https://github.com/ruby/rdoc/releases
269
310
  rdoc_options:
270
311
  - "--main"
271
- - README.rdoc
312
+ - README.md
272
313
  require_paths:
273
314
  - lib
274
315
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -282,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
323
  - !ruby/object:Gem::Version
283
324
  version: '2.2'
284
325
  requirements: []
285
- rubygems_version: 3.6.7
326
+ rubygems_version: 4.0.3
286
327
  specification_version: 4
287
328
  summary: RDoc produces HTML and command-line documentation for Ruby projects
288
329
  test_files: []