File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ class RDoc::Generator::SDoc
2525
2626 DESCRIPTION = 'Searchable HTML documentation'
2727
28+ FILE_DIR = "files"
29+ CLASS_DIR = "classes"
30+
2831 include ERB ::Util
2932 include SDoc ::GitHub
3033 include SDoc ::Templatable
@@ -35,9 +38,6 @@ class RDoc::Generator::SDoc
3538 TREE_FILE = File . join 'panel' , 'tree.js'
3639 SEARCH_INDEX_FILE = File . join 'js' , 'search_index.js'
3740
38- FILE_DIR = 'files'
39- CLASS_DIR = 'classes'
40-
4141 RESOURCES_DIR = File . join ( 'resources' , '.' )
4242
4343 attr_reader :base_dir
@@ -64,6 +64,14 @@ def self.setup_options(options)
6464 puts SDoc ::VERSION
6565 exit
6666 end
67+
68+ if options . respond_to? ( :class_module_path_prefix )
69+ options . class_module_path_prefix = CLASS_DIR
70+ end
71+
72+ if options . respond_to? ( :file_path_prefix )
73+ options . file_path_prefix = FILE_DIR
74+ end
6775 end
6876
6977 def initialize ( store , options )
@@ -98,10 +106,12 @@ def generate
98106 generate_class_files
99107 end
100108
109+ # For compatibility with RDoc < 6.13.0
101110 def class_dir
102111 CLASS_DIR
103112 end
104113
114+ # For compatibility with RDoc < 6.13.0
105115 def file_dir
106116 FILE_DIR
107117 end
You can’t perform that action at this time.
0 commit comments