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
  }
@@ -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
- resoureces_path = @template_dir + RESOURCES_DIR
366
- debug_msg "Copying #{resoureces_path}/** to #{@outputdir}/**"
367
- FileUtils.cp_r resoureces_path.to_s, @outputdir.to_s, :preserve => true unless @options.dry_run
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "sdoc"
5
- s.version = "0.3.18"
5
+ s.version = "0.3.19"
6
6
 
7
7
  s.authors = ["Vladimir Kolesnikov", "Nathan Broadbent"]
8
8
  s.description = %q{rdoc generator html with javascript search index.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: