Skip to content

Commit 0eacc4b

Browse files
committed
add main doc file to extra_rdoc_files
1 parent 0437dc3 commit 0eacc4b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ if defined?(Gem) and defined?(Rake::GemPackageTask) and defined?(Rake::Extension
170170
s.default_executable = "edit_json.rb"
171171

172172
s.has_rdoc = true
173+
s.extra_rdoc_files << 'doc-main.txt'
173174
s.rdoc_options <<
174175
'--title' << 'JSON -- A JSON implemention' << '--main' << 'doc-main.txt'
175176
s.test_files.concat Dir['tests/*.rb']
@@ -204,6 +205,7 @@ if defined?(Gem) and defined?(Rake::GemPackageTask) and defined?(Rake::Extension
204205
s.default_executable = "edit_json.rb"
205206

206207
s.has_rdoc = true
208+
s.extra_rdoc_files << 'doc-main.txt'
207209
s.rdoc_options <<
208210
'--title' << 'JSON -- A JSON implemention' << '--main' << 'doc-main.txt'
209211
s.test_files.concat Dir['tests/*.rb']

0 commit comments

Comments
 (0)