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
25
25
26
26
DESCRIPTION = 'Searchable HTML documentation'
27
27
28
- FILE_DIR = 'files'
29
- CLASS_DIR = 'classes'
30
-
31
28
RESOURCES_DIR = File . join ( 'resources' , '.' )
32
29
33
30
attr_reader :options
@@ -94,11 +91,11 @@ def generate
94
91
end
95
92
96
93
def class_dir
97
- CLASS_DIR
94
+ nil
98
95
end
99
96
100
97
def file_dir
101
- FILE_DIR
98
+ nil
102
99
end
103
100
104
101
### Determines index page based on @options.main_page (or lack thereof)
Original file line number Diff line number Diff line change 1
1
require "rdoc"
2
2
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
+
3
17
RDoc ::TopLevel . prepend ( Module . new do
4
18
attr_writer :path
5
19
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def rdoc_top_level_for(ruby_code)
28
28
# foolproof way to initialize it is by simply running it with a dummy file.
29
29
$rdoc_for_specs ||= rdoc_dry_run ( "--files" , __FILE__ )
30
30
31
- $rdoc_for_specs. store = RDoc ::Store . new
31
+ $rdoc_for_specs. store = RDoc ::Store . new ( RDoc :: Options . new )
32
32
33
33
Dir . mktmpdir do |dir |
34
34
path = "#{ dir } /ruby_code.rb"
You can’t perform that action at this time.
0 commit comments