sdoc 2.6.3 → 2.6.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sdoc/generator.rb +13 -3
- data/lib/sdoc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7178efec6a22ae92279536eb4704e3749e5b7cf3ecf29c9c59ff758f761c1932
|
4
|
+
data.tar.gz: 7a9b33b23580f0a9369309109ea82dba3f33155cd45e27f647bffcfde7c87d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e949ce17d5b9c5c6a9212d67cdb4314899274317b84eb3ab981375c5582817536d17d2afb3a14ae5f5cefc296089a525448c94b75fd0e77873f3676b15b61717
|
7
|
+
data.tar.gz: f6438e320a3b0ace7119954d30496710a4e2177b0d7aaa091ba85451e59941ca36eb66912c98e19adee36ca6a70556682efa1f3cc30171c915d4a7aa873967ce
|
data/CHANGELOG.md
CHANGED
data/lib/sdoc/generator.rb
CHANGED
@@ -25,6 +25,9 @@ class RDoc::Generator::SDoc
|
|
25
25
|
|
26
26
|
DESCRIPTION = 'Searchable HTML documentation'
|
27
27
|
|
28
|
+
FILE_DIR = "files"
|
29
|
+
CLASS_DIR = "classes"
|
30
|
+
|
28
31
|
include ERB::Util
|
29
32
|
include SDoc::GitHub
|
30
33
|
include SDoc::Templatable
|
@@ -35,9 +38,6 @@ class RDoc::Generator::SDoc
|
|
35
38
|
TREE_FILE = File.join 'panel', 'tree.js'
|
36
39
|
SEARCH_INDEX_FILE = File.join 'js', 'search_index.js'
|
37
40
|
|
38
|
-
FILE_DIR = 'files'
|
39
|
-
CLASS_DIR = 'classes'
|
40
|
-
|
41
41
|
RESOURCES_DIR = File.join('resources', '.')
|
42
42
|
|
43
43
|
attr_reader :base_dir
|
@@ -64,6 +64,14 @@ class RDoc::Generator::SDoc
|
|
64
64
|
puts SDoc::VERSION
|
65
65
|
exit
|
66
66
|
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
|
67
75
|
end
|
68
76
|
|
69
77
|
def initialize(store, options)
|
@@ -98,10 +106,12 @@ class RDoc::Generator::SDoc
|
|
98
106
|
generate_class_files
|
99
107
|
end
|
100
108
|
|
109
|
+
# For compatibility with RDoc < 6.13.0
|
101
110
|
def class_dir
|
102
111
|
CLASS_DIR
|
103
112
|
end
|
104
113
|
|
114
|
+
# For compatibility with RDoc < 6.13.0
|
105
115
|
def file_dir
|
106
116
|
FILE_DIR
|
107
117
|
end
|
data/lib/sdoc/version.rb
CHANGED