sdoc 0.3.18 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -74,6 +74,13 @@ Searchdoc.Navigation = new function() {
|
|
74
74
|
case 13: //Event.KEY_RETURN:
|
75
75
|
if (this.$current) this.select(this.$current);
|
76
76
|
break;
|
77
|
+
case 83: // s (qwerty)
|
78
|
+
case 79: // o (dvorak)
|
79
|
+
if (e.ctrlKey) {
|
80
|
+
$('#search').focus();
|
81
|
+
e.preventDefault();
|
82
|
+
}
|
83
|
+
break;
|
77
84
|
}
|
78
85
|
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
|
79
86
|
}
|
@@ -74,6 +74,13 @@ Searchdoc.Navigation = new function() {
|
|
74
74
|
case 13: //Event.KEY_RETURN:
|
75
75
|
if (this.$current) this.select(this.$current);
|
76
76
|
break;
|
77
|
+
case 83: // s (qwerty)
|
78
|
+
case 79: // o (dvorak)
|
79
|
+
if (e.ctrlKey) {
|
80
|
+
$('#search').focus();
|
81
|
+
e.preventDefault();
|
82
|
+
}
|
83
|
+
break;
|
77
84
|
}
|
78
85
|
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
|
79
86
|
}
|
data/lib/sdoc/generator.rb
CHANGED
@@ -114,7 +114,7 @@ class RDoc::Generator::SDoc
|
|
114
114
|
FILE_DIR = 'files'
|
115
115
|
CLASS_DIR = 'classes'
|
116
116
|
|
117
|
-
RESOURCES_DIR = File.join('resources', '')
|
117
|
+
RESOURCES_DIR = File.join('resources', '.')
|
118
118
|
|
119
119
|
attr_reader :base_dir
|
120
120
|
|
@@ -362,9 +362,9 @@ class RDoc::Generator::SDoc
|
|
362
362
|
|
363
363
|
### Copy all the resource files to output dir
|
364
364
|
def copy_resources
|
365
|
-
|
366
|
-
debug_msg "Copying #{
|
367
|
-
FileUtils.cp_r
|
365
|
+
resources_path = @template_dir + RESOURCES_DIR
|
366
|
+
debug_msg "Copying #{resources_path}/** to #{@outputdir}/**"
|
367
|
+
FileUtils.cp_r resources_path.to_s, @outputdir.to_s unless @options.dry_run
|
368
368
|
end
|
369
369
|
|
370
370
|
class FilesTree
|
data/sdoc.gemspec
CHANGED