sdoc 2.0.1 → 2.0.2
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 +6 -1
- data/lib/rdoc/generator/template/rails/class.rhtml +2 -2
- data/lib/rdoc/generator/template/rails/file.rhtml +2 -2
- data/lib/rdoc/generator/template/rails/index.rhtml +2 -2
- data/lib/rdoc/generator/template/rails/resources/css/main.css +4 -4
- data/lib/rdoc/generator/template/rails/resources/css/panel.css +2 -2
- data/lib/rdoc/generator/template/rails/resources/i/arrow-down-current.svg +8 -0
- data/lib/rdoc/generator/template/rails/resources/i/arrow-right-current.svg +8 -0
- data/lib/rdoc/generator/template/rails/resources/js/searchdoc.js +0 -9
- data/lib/sdoc/version.rb +1 -1
- data/sdoc.gemspec +0 -1
- metadata +3 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44ae55cdc435032ac5559c5ed464d51eeef0cdf3ea60dd011e5780608b4227fe
|
4
|
+
data.tar.gz: 330c7f40c26d49868642edc95c0866310bc0f0062311144fde76f1c48f0e0388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3caf8b5bf5bee61514ebb8be5f6013097ca77396ca19cd6f60c7226612ae55e6f2e86d1ec9b59a74b5f367574bc229497c82655713eee60735b979454ec1e850
|
7
|
+
data.tar.gz: 0b5265d770ef7db8bc448ca68843076d00bb22d5ef7d43cc43dbc587fe80177fc2aa725b99864907e80898110639541b718857b040eccc832e93a6fc95e8ca5f
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
2.0.2
|
2
|
+
=====
|
3
|
+
|
4
|
+
* Remove accidental rack inclusion in gemspec
|
5
|
+
|
1
6
|
2.0.1
|
2
7
|
=====
|
3
8
|
|
4
|
-
* #142 Fix arrow icons for selected panel items
|
9
|
+
* #142 Fix arrow icons for selected panel items
|
5
10
|
* #141 Always use only one metatag for keywords
|
6
11
|
* #140 Use h2 instead of h1 for banner header
|
7
12
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<% if ENV['HORO_PROJECT_NAME'] %>
|
25
25
|
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
|
26
26
|
<% end %>
|
27
|
-
<
|
27
|
+
<h2>
|
28
28
|
<span class="type"><%= klass.module? ? 'Module' : 'Class' %></span>
|
29
29
|
<%= h klass.full_name %>
|
30
30
|
<% if klass.type == 'class' %>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
<% end %>
|
37
37
|
</span>
|
38
38
|
<% end %>
|
39
|
-
</
|
39
|
+
</h2>
|
40
40
|
<ul class="files">
|
41
41
|
<% klass.in_files.each do |file| %>
|
42
42
|
<li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li>
|
@@ -14,9 +14,9 @@
|
|
14
14
|
<% if ENV['HORO_PROJECT_NAME'] %>
|
15
15
|
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
|
16
16
|
<% end %>
|
17
|
-
<
|
17
|
+
<h2>
|
18
18
|
<%= h file.name %>
|
19
|
-
</
|
19
|
+
</h2>
|
20
20
|
<ul class="files">
|
21
21
|
<%
|
22
22
|
github = github_url(file.relative_name) if options.github
|
@@ -16,9 +16,9 @@
|
|
16
16
|
<% if ENV['HORO_PROJECT_NAME'] %>
|
17
17
|
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
|
18
18
|
<% end %>
|
19
|
-
<
|
19
|
+
<h2>
|
20
20
|
<%= h index.name %>
|
21
|
-
</
|
21
|
+
</h2>
|
22
22
|
<ul class="files">
|
23
23
|
<li><%= h index.relative_name %></li>
|
24
24
|
<li>Last modified: <%= index.last_modified %></li>
|
@@ -125,20 +125,20 @@ ol li
|
|
125
125
|
padding: 1em;
|
126
126
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
|
127
127
|
}
|
128
|
-
.banner
|
128
|
+
.banner h2
|
129
129
|
{
|
130
130
|
font-size: 1.2em;
|
131
131
|
margin: 0;
|
132
132
|
}
|
133
133
|
|
134
|
-
.banner
|
134
|
+
.banner h2 .type
|
135
135
|
{
|
136
136
|
font-size: 0.833em;
|
137
137
|
display:block;
|
138
138
|
}
|
139
139
|
|
140
|
-
.banner
|
141
|
-
.banner
|
140
|
+
.banner h2 .type,
|
141
|
+
.banner h2 .parent
|
142
142
|
{
|
143
143
|
color: #CCC;
|
144
144
|
}
|
@@ -320,13 +320,13 @@
|
|
320
320
|
|
321
321
|
.panel .tree ul li.current .icon
|
322
322
|
{
|
323
|
-
background: url(../i/arrow-
|
323
|
+
background: url(../i/arrow-down-current.svg);
|
324
324
|
background-size: 10px;
|
325
325
|
}
|
326
326
|
|
327
327
|
.panel .tree ul li.current.closed .icon
|
328
328
|
{
|
329
|
-
background: url(../i/arrow-
|
329
|
+
background: url(../i/arrow-right-current.svg);
|
330
330
|
background-size: 10px;
|
331
331
|
}
|
332
332
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
3
|
+
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
4
|
+
<style type="text/css">
|
5
|
+
.st0{fill:#FFFFFF;}
|
6
|
+
</style>
|
7
|
+
<polygon class="st0" points="27.8,3.1 0.6,3.1 14.2,26.2 "/>
|
8
|
+
</svg>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
3
|
+
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
4
|
+
<style type="text/css">
|
5
|
+
.st0{fill:#FFFFFF;}
|
6
|
+
</style>
|
7
|
+
<polygon class="st0" points="2.6,1.1 2.6,28.2 25.8,14.6 "/>
|
8
|
+
</svg>
|
@@ -336,20 +336,17 @@ Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() {
|
|
336
336
|
};
|
337
337
|
|
338
338
|
this.select = function($li) {
|
339
|
-
console.log("select")
|
340
339
|
this.highlight($li);
|
341
340
|
var path = $li[0].searchdoc_tree_data.path;
|
342
341
|
if (path) this.panel.open(path);
|
343
342
|
};
|
344
343
|
|
345
344
|
this.highlight = function($li) {
|
346
|
-
console.log("highlight")
|
347
345
|
if (this.$current) this.$current.removeClass('current');
|
348
346
|
this.$current = $li.addClass('current');
|
349
347
|
};
|
350
348
|
|
351
349
|
this.toggle = function($li) {
|
352
|
-
console.log("toggle " + !$li.hasClass('closed'))
|
353
350
|
var closed = !$li.hasClass('closed'),
|
354
351
|
children = $li[0].searchdoc_tree_data.children;
|
355
352
|
$li.toggleClass('closed');
|
@@ -359,27 +356,21 @@ Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() {
|
|
359
356
|
};
|
360
357
|
|
361
358
|
this.moveRight = function() {
|
362
|
-
console.log("moveRight")
|
363
359
|
if (!this.$current) {
|
364
|
-
console.log("moveRight -> highlight")
|
365
360
|
this.highlight(this.$list.find('li:first'));
|
366
361
|
return;
|
367
362
|
}
|
368
363
|
if (this.$current.hasClass('closed')) {
|
369
|
-
console.log("moveRight -> toggle")
|
370
364
|
this.toggle(this.$current);
|
371
365
|
}
|
372
366
|
};
|
373
367
|
|
374
368
|
this.moveLeft = function() {
|
375
|
-
console.log("moveLeft")
|
376
369
|
if (!this.$current) {
|
377
|
-
console.log("moveLeft -> highlight")
|
378
370
|
this.highlight(this.$list.find('li:first'));
|
379
371
|
return;
|
380
372
|
}
|
381
373
|
if (!this.$current.hasClass('closed')) {
|
382
|
-
console.log("moveLeft -> toggle")
|
383
374
|
this.toggle(this.$current);
|
384
375
|
} else {
|
385
376
|
var level = this.$current[0].searchdoc_tree_data.level;
|
data/lib/sdoc/version.rb
CHANGED
data/sdoc.gemspec
CHANGED
@@ -23,7 +23,6 @@ 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")
|
27
26
|
|
28
27
|
s.files = `git ls-files`.split("\n")
|
29
28
|
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.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Kolesnikov
|
@@ -27,20 +27,6 @@ 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'
|
44
30
|
description: rdoc generator html with javascript search index.
|
45
31
|
email: voloko@gmail.com mail@zzak.io
|
46
32
|
executables:
|
@@ -73,7 +59,9 @@ files:
|
|
73
59
|
- lib/rdoc/generator/template/rails/resources/css/panel.css
|
74
60
|
- lib/rdoc/generator/template/rails/resources/css/reset.css
|
75
61
|
- lib/rdoc/generator/template/rails/resources/favicon.ico
|
62
|
+
- lib/rdoc/generator/template/rails/resources/i/arrow-down-current.svg
|
76
63
|
- lib/rdoc/generator/template/rails/resources/i/arrow-down.svg
|
64
|
+
- lib/rdoc/generator/template/rails/resources/i/arrow-right-current.svg
|
77
65
|
- lib/rdoc/generator/template/rails/resources/i/arrow-right.svg
|
78
66
|
- lib/rdoc/generator/template/rails/resources/i/search.svg
|
79
67
|
- lib/rdoc/generator/template/rails/resources/i/tree_bg.svg
|