File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ class RDoc::Generator::SDoc
2525
2626 DESCRIPTION = 'Searchable HTML documentation'
2727
28- FILE_DIR = 'files'
29- CLASS_DIR = 'classes'
30-
3128 RESOURCES_DIR = File . join ( 'resources' , '.' )
3229
3330 attr_reader :options
@@ -94,11 +91,11 @@ def generate
9491 end
9592
9693 def class_dir
97- CLASS_DIR
94+ nil
9895 end
9996
10097 def file_dir
101- FILE_DIR
98+ nil
10299 end
103100
104101 ### Determines index page based on @options.main_page (or lack thereof)
Original file line number Diff line number Diff line change 11require "rdoc"
22
3+ RDoc ::TopLevel . prepend ( Module . new do
4+ def path
5+ File . join ( "files" , super )
6+ end
7+ end )
8+
9+
10+ RDoc ::ClassModule . prepend ( Module . new do
11+ def path
12+ File . join ( "classes" , super )
13+ end
14+ end )
15+
16+
317RDoc ::TopLevel . prepend ( Module . new do
418 attr_writer :path
519
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def rdoc_top_level_for(ruby_code)
2828 # foolproof way to initialize it is by simply running it with a dummy file.
2929 $rdoc_for_specs ||= rdoc_dry_run ( "--files" , __FILE__ )
3030
31- $rdoc_for_specs. store = RDoc ::Store . new
31+ $rdoc_for_specs. store = RDoc ::Store . new ( RDoc :: Options . new )
3232
3333 Dir . mktmpdir do |dir |
3434 path = "#{ dir } /ruby_code.rb"
You can’t perform that action at this time.
0 commit comments