sdoc 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0a5ef96afe19af3c04df6786dd1f19d1e1e90095b1f70bcb46f83ff112d878b
4
- data.tar.gz: 58e3d4872fdbaa31b38dfb5ce3b6d0ea4068997865abba32bf1f4abadb840ab6
3
+ metadata.gz: 92be8c9ef112cad65ae175c43397ba7c74e5ce6a5dd487defe7391c519a7f4e0
4
+ data.tar.gz: 87fbba0f4724a4d61468db740892afc6b4cb3492427ea9fa41bf9c4f7bdb3d33
5
5
  SHA512:
6
- metadata.gz: 0b97b7813e587ac4c281521f1616c522762618071f473ea485f9eae66a3d10578899ce92fe2ec086d83bd9716265e1fea15b8ea770e1d87a8438fb34b6b75ec7
7
- data.tar.gz: d59c92d8a448f39d10e6ecd404dae0a1fe38905c0fcd2a7c960d299549cad68b85982caf1d5ece2a5f4801a58a873d908329bd40e9de8bd60b14f436d0f515a4
6
+ metadata.gz: a032a96408400f81bcb381c2aa68b6bbd79bf37dea20c7e9c2e70e5e8f470d277736b5bdc77ad1ea493077de89fe294cf8abe58ef9f946f661822758547a81b1
7
+ data.tar.gz: 707cc43e783acfab07306c54d760d57bbb9df21e6a1ed0295a406a5d4c05fe6dd0acdf977d9773527ebe3d3841fcfdf476b3a00b456f4c2f8fd1ce0b8e005cee
@@ -1,3 +1,10 @@
1
+ 2.0.1
2
+ =====
3
+
4
+ * #142 Fix arrow icons for selected panel items
5
+ * #141 Always use only one metatag for keywords
6
+ * #140 Use h2 instead of h1 for banner header
7
+
1
8
  2.0.0
2
9
  =====
3
10
 
@@ -13,10 +13,7 @@
13
13
  <meta property="og:description" content="<%= human_desc %>">
14
14
  <% end %>
15
15
 
16
- <meta name="keywords" content="<%= klass.full_name %> class">
17
- <% unless klass.method_list.empty? %>
18
- <meta name="keywords" content="<%= klass.method_list.map(&:name).join(", ") %>">
19
- <% end %>
16
+ <meta name="keywords" content="<%= klass.full_name %> class, <%= klass.method_list.map(&:name).join(", ") %>">
20
17
  </head>
21
18
 
22
19
  <body>
@@ -336,17 +336,20 @@ Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() {
336
336
  };
337
337
 
338
338
  this.select = function($li) {
339
+ console.log("select")
339
340
  this.highlight($li);
340
341
  var path = $li[0].searchdoc_tree_data.path;
341
342
  if (path) this.panel.open(path);
342
343
  };
343
344
 
344
345
  this.highlight = function($li) {
346
+ console.log("highlight")
345
347
  if (this.$current) this.$current.removeClass('current');
346
348
  this.$current = $li.addClass('current');
347
349
  };
348
350
 
349
351
  this.toggle = function($li) {
352
+ console.log("toggle " + !$li.hasClass('closed'))
350
353
  var closed = !$li.hasClass('closed'),
351
354
  children = $li[0].searchdoc_tree_data.children;
352
355
  $li.toggleClass('closed');
@@ -356,21 +359,27 @@ Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() {
356
359
  };
357
360
 
358
361
  this.moveRight = function() {
362
+ console.log("moveRight")
359
363
  if (!this.$current) {
364
+ console.log("moveRight -> highlight")
360
365
  this.highlight(this.$list.find('li:first'));
361
366
  return;
362
367
  }
363
368
  if (this.$current.hasClass('closed')) {
369
+ console.log("moveRight -> toggle")
364
370
  this.toggle(this.$current);
365
371
  }
366
372
  };
367
373
 
368
374
  this.moveLeft = function() {
375
+ console.log("moveLeft")
369
376
  if (!this.$current) {
377
+ console.log("moveLeft -> highlight")
370
378
  this.highlight(this.$list.find('li:first'));
371
379
  return;
372
380
  }
373
381
  if (!this.$current.hasClass('closed')) {
382
+ console.log("moveLeft -> toggle")
374
383
  this.toggle(this.$current);
375
384
  } else {
376
385
  var level = this.$current[0].searchdoc_tree_data.level;
@@ -1,3 +1,3 @@
1
1
  module SDoc
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.extra_rdoc_files = ["README.md"]
24
24
 
25
25
  s.add_runtime_dependency("rdoc", ">= 5.0")
26
+ s.add_runtime_dependency("rack")
26
27
 
27
28
  s.files = `git ls-files`.split("\n")
28
29
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kolesnikov
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-11-02 00:00:00.000000000 Z
14
+ date: 2020-11-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rdoc
@@ -27,6 +27,20 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rack
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
30
44
  description: rdoc generator html with javascript search index.
31
45
  email: voloko@gmail.com mail@zzak.io
32
46
  executables: