rdoc-generator-fivefish 0.0.1.pre.44 → 0.0.1.pre.46
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.
- data.tar.gz.sig +0 -0
- data/data/rdoc-generator-fivefish/css/fivefish.min.css +46 -41
- data/data/rdoc-generator-fivefish/js/fivefish.min.js +44 -17
- data/data/rdoc-generator-fivefish/templates/class.tmpl +28 -1
- data/data/rdoc-generator-fivefish/templates/layout.tmpl +5 -57
- metadata +18 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
@@ -41,6 +41,34 @@ body {
|
|
41
41
|
url('../fonts/IstokWeb-Bold.woff') format('woff');
|
42
42
|
}
|
43
43
|
|
44
|
+
ul.typeahead.dropdown-menu {
|
45
|
+
right: 0;
|
46
|
+
}
|
47
|
+
ul.typeahead.dropdown-menu li {
|
48
|
+
border-bottom: 1px solid #eee;
|
49
|
+
padding: 2px 4px;
|
50
|
+
}
|
51
|
+
ul.typeahead.dropdown-menu li:last-child {
|
52
|
+
border: none;
|
53
|
+
}
|
54
|
+
ul.typeahead.dropdown-menu .search-item-name {
|
55
|
+
font-weight: 600;
|
56
|
+
}
|
57
|
+
ul.typeahead.dropdown-menu .search-item-rank {
|
58
|
+
font-size: 9px;
|
59
|
+
padding: 0 4px;
|
60
|
+
color: #ccc;
|
61
|
+
}
|
62
|
+
ul.typeahead.dropdown-menu i {
|
63
|
+
padding: 0 2px;
|
64
|
+
}
|
65
|
+
ul.typeahead.dropdown-menu .search-item-snippet {
|
66
|
+
overflow: hidden;
|
67
|
+
display: block;
|
68
|
+
margin: 0 14px;
|
69
|
+
}
|
70
|
+
|
71
|
+
|
44
72
|
/* Page header */
|
45
73
|
h2.namespace {
|
46
74
|
color: #666;
|
@@ -140,9 +168,22 @@ section.protected-methods div.method header i {
|
|
140
168
|
}
|
141
169
|
|
142
170
|
|
171
|
+
section.methods a[name] {
|
172
|
+
position: relative;
|
173
|
+
top: -35px;
|
174
|
+
display: none;
|
175
|
+
}
|
176
|
+
|
143
177
|
|
144
178
|
/* Individual method */
|
145
|
-
div.method {
|
179
|
+
div.method {}
|
180
|
+
a:target + div.method {
|
181
|
+
border: 2px solid #666;
|
182
|
+
border-radius: 2px;
|
183
|
+
background: rgba( 255,255,255, 0.7 );
|
184
|
+
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
|
185
|
+
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
|
186
|
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
|
146
187
|
}
|
147
188
|
div.method + div.method {
|
148
189
|
margin-top: 1em;
|
@@ -163,40 +204,6 @@ div.method div.method-description p {
|
|
163
204
|
}
|
164
205
|
|
165
206
|
|
166
|
-
/* Incremental search modal dialog */
|
167
|
-
#incremental-search header {
|
168
|
-
background: #eee;
|
169
|
-
border-radius: 3px;
|
170
|
-
padding: 2px;
|
171
|
-
}
|
172
|
-
#incremental-search .search-string {
|
173
|
-
padding: 0 0 1em;
|
174
|
-
}
|
175
|
-
#incremental-search .search-input-label {
|
176
|
-
width: 20%;
|
177
|
-
}
|
178
|
-
#incremental-search .search-input {
|
179
|
-
background-color: rgba(153, 203, 255, 0.64);
|
180
|
-
font: 22px monospace;
|
181
|
-
padding: 1px 4px;
|
182
|
-
display: inline-block;
|
183
|
-
width: 80%;
|
184
|
-
}
|
185
|
-
#incremental-search .search-input:empty:after {
|
186
|
-
color: #999;
|
187
|
-
content: "(Start typing to search)";
|
188
|
-
}
|
189
|
-
#incremental-search .search-input-label {
|
190
|
-
vertical-align: baseline;
|
191
|
-
}
|
192
|
-
#incremental-search header h4 {
|
193
|
-
font-size: 14px;
|
194
|
-
}
|
195
|
-
#incremental-search .search-results dl:empty:after {
|
196
|
-
content: "No matches.";
|
197
|
-
color: #666;
|
198
|
-
}
|
199
|
-
|
200
207
|
/* @group Source Code */
|
201
208
|
|
202
209
|
div.method-source-code {
|
@@ -251,23 +258,21 @@ div.file-metadata {
|
|
251
258
|
by Cory LaViska
|
252
259
|
http://labs.abeautifulsite.net/jquery-dropdown/
|
253
260
|
*/
|
254
|
-
.dropdown-menu {
|
261
|
+
div.dropdown-menu {
|
255
262
|
font: 14px sans-serif;
|
256
263
|
position: absolute;
|
257
264
|
z-index: 9999999;
|
258
265
|
display: none;
|
266
|
+
background: white;
|
259
267
|
}
|
260
268
|
|
261
|
-
.dropdown-menu
|
269
|
+
.dropdown-menu ul {
|
262
270
|
min-width: 160px;
|
263
271
|
list-style: none;
|
264
272
|
background: #FFF;
|
265
|
-
border: solid 1px #DDD;
|
266
|
-
border: solid 1px rgba(0, 0, 0, .2);
|
267
273
|
border-radius: 6px;
|
268
|
-
box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
|
269
274
|
overflow: visible;
|
270
|
-
padding:
|
275
|
+
padding: 0;
|
271
276
|
margin: 0;
|
272
277
|
}
|
273
278
|
|
@@ -9,30 +9,57 @@
|
|
9
9
|
*
|
10
10
|
*/
|
11
11
|
jQuery&&function(a){function b(b){var d=a(this),e=a(a(this).attr("data-dropdown")),f=d.hasClass("dropdown-open");b.preventDefault(),b.stopPropagation(),c();if(f||d.hasClass("dropdown-disabled"))return;e.css({left:e.hasClass("anchor-right")?d.offset().left-(e.outerWidth()-d.outerWidth()):d.offset().left,top:d.offset().top+d.outerHeight()}).show(),d.addClass("dropdown-open")}function c(b){var c=b?a(b.target).parents().andSelf():null;if(c&&c.is(".dropdown-menu")&&!c.is("A"))return;a("BODY").find(".dropdown-menu").hide().end().find("[data-dropdown]").removeClass("dropdown-open")}a.extend(a.fn,{dropdown:function(b,d){switch(b){case"hide":return c(),a(this);case"attach":return a(this).attr("data-dropdown",d);case"detach":return c(),a(this).removeAttr("data-dropdown");case"disable":return a(this).addClass("dropdown-disabled");case"enable":return c(),a(this).removeClass("dropdown-disabled")}}}),a(function(){a("BODY").on("click.dropdown","[data-dropdown]",b),a("HTML").on("click.dropdown",c)})}(jQuery);
|
12
|
-
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
12
|
+
/*!
|
13
|
+
* string_score.js: String Scoring Algorithm 0.1.10
|
14
|
+
*
|
15
|
+
* http://joshaven.com/string_score
|
16
|
+
* https://github.com/joshaven/string_score
|
16
17
|
*
|
17
|
-
*
|
18
|
-
*
|
18
|
+
* Copyright (C) 2009-2011 Joshaven Potter <yourtech@gmail.com>
|
19
|
+
* Special thanks to all of the contributors listed here https://github.com/joshaven/string_score
|
20
|
+
* MIT license: http://www.opensource.org/licenses/mit-license.php
|
19
21
|
*
|
20
|
-
*
|
21
|
-
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
|
22
|
+
* Date: Tue Mar 1 2011
|
22
23
|
*/
|
23
|
-
|
24
|
+
/**
|
25
|
+
* Scores a string against another string.
|
26
|
+
* 'Hello World'.score('he'); //=> 0.5931818181818181
|
27
|
+
* 'Hello World'.score('Hello'); //=> 0.7318181818181818
|
28
|
+
*/
|
29
|
+
String.prototype.score=function(a,b){if(this==a)return 1;if(a=="")return 0;var c=0,d=a.length,e=this,f=e.length,g,h,i=1,j;for(var k=0,l,m,n,o,p,q;k<d;++k){n=a.charAt(k),o=e.indexOf(n.toLowerCase()),p=e.indexOf(n.toUpperCase()),q=Math.min(o,p),m=q>-1?q:Math.max(o,p);if(m===-1){if(b){i+=1-b;continue}return 0}l=.1,e[m]===n&&(l+=.1),m===0?(l+=.6,k===0&&(g=1)):e.charAt(m-1)===" "&&(l+=.8),e=e.substring(m+1,f),c+=l}return h=c/d,j=(h*(d/f)+h)/2,j/=i,g&&j+.15<1&&(j+=.15),j};
|
24
30
|
/**
|
25
31
|
* Fivefish Javascript
|
26
32
|
* $Id$
|
27
33
|
*
|
28
34
|
* @author Michael Granger <ged@FaerieMUD.org>
|
29
35
|
*
|
30
|
-
|
31
|
-
|
32
|
-
* A Bootstrap component for the index search interface. Inherits from Bootstrap's
|
33
|
-
* modal component, and borrows a bunch of code from the typeahead component.
|
36
|
+
* Copyright © 2012, Michael Granger
|
37
|
+
* All rights reserved.
|
34
38
|
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
|
38
|
-
|
39
|
+
* Redistribution and use in source and binary forms, with or without
|
40
|
+
* modification, are permitted provided that the following conditions are met:
|
41
|
+
*
|
42
|
+
* * Redistributions of source code must retain the above copyright notice,
|
43
|
+
* this list of conditions and the following disclaimer.
|
44
|
+
*
|
45
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
46
|
+
* this list of conditions and the following disclaimer in the documentation
|
47
|
+
* and/or other materials provided with the distribution.
|
48
|
+
*
|
49
|
+
* * Neither the name of the author/s, nor the names of the project's
|
50
|
+
* contributors may be used to endorse or promote products derived from this
|
51
|
+
* software without specific prior written permission.
|
52
|
+
*
|
53
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
54
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
55
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
56
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
57
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
58
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
59
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
60
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
61
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
62
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
63
|
+
*
|
64
|
+
*/
|
65
|
+
function initFivefish(){console.debug("Loaded. Waiting for DOM to be ready."),$(document).ready(onReady)}function hookTooltips(){$("header.hero-unit h1").popover({placement:"right"})}function hookSourceToggles(){$("div.method header i").click(function(a){var b=a.target,c=$(b).parents("div").get(0),d=$(c).find("div.method-source-code");console.debug("Toggling: %o",d),d.fadeToggle()})}function makeRankingTerm(a){return a.name.replace(/.*::/,"").toLowerCase()}function matchIndexItem(a){var b=this.query,c=makeRankingTerm(a),d=c.score(b,RankFuzziness);return d>=MatchThreshold?!0:!1}function sortIndexItems(a){var b=this.query;return a.sort(function(a,c){var d=makeRankingTerm(a),e=makeRankingTerm(c),f=d.score(b,RankFuzziness),g=e.score(b,RankFuzziness);return f>g?-1:f<g?1:0})}function pickItemIcon(a){var b;switch(a.type){case"anymethod":case"metamethod":b="plus-sign";break;case"normalmodule":b="gift";break;case"normalclass":b="briefcase";break;case"toplevel":b="file";break;default:b="question-sign"}return b}function highlightMatchingItem(a){var b=a.snippet.replace(/<\/?p>/g,"").replace(/\.(.|\n)*/,"."),c=pickItemIcon(a),d=makeRankingTerm(a),e=d.score(this.query,RankFuzziness),f='<span class="search-item"><i class="icon-'+c+'"></i>'+'<span class="search-item-name">'+a.name+"</span>"+'<span class="search-item-rank">'+(e*10).toFixed()+"</span>"+"<br />"+'<span class="search-item-snippet">'+b+"</span>"+"</span>",g=$(f);return g.data("searchitem",a),g}function updateSearchInput(a){var b=this.$menu.find(".active .search-item").data("searchitem");return $("#navbar-search-target").val(b.link),b.name}function hookSearchForm(){$(".navbar-search .search-query").typeahead({source:SearchIndex,matcher:matchIndexItem,sorter:sortIndexItems,updater:updateSearchInput,highlighter:highlightMatchingItem}).change(function(){var a=$("link[rel=prefix]").attr("href"),b=$("#navbar-search-target").val();window.location.assign(a+"/"+b)})}function onReady(){console.debug("Ready!"),hookTooltips(),hookSourceToggles(),hookSearchForm()}const MatchThreshold=.5,RankFuzziness=.5;
|
@@ -21,6 +21,32 @@
|
|
21
21
|
<span class="label"><?call klass.type ?></span>
|
22
22
|
</header>
|
23
23
|
|
24
|
+
<section class="module-relations">
|
25
|
+
<dl>
|
26
|
+
<?unless klass.module? ?>
|
27
|
+
<dt>Superclass</dt>
|
28
|
+
<?if klass.superclass.respond_to?(:path) ?>
|
29
|
+
<dd class="superclass"><a href="[?attr rel_prefix ?]/[?call klass.superclass.path ?]"><?call
|
30
|
+
klass.superclass.full_name ?></a></dd>
|
31
|
+
<?else?>
|
32
|
+
<dd class="superclass"><?call klass.superclass ?></dd>
|
33
|
+
<?end if ?>
|
34
|
+
<?end unless ?>
|
35
|
+
|
36
|
+
<?unless klass.includes.empty? ?>
|
37
|
+
<dt>Included Modules</dt>
|
38
|
+
<?for inc in klass.includes ?>
|
39
|
+
<?if inc.module.respond_to?(:path) ?>
|
40
|
+
<dd class="include"><a href="[?call klass.aref_to(inc.module.path) ?]"><?call
|
41
|
+
inc.module.full_name ?></a></dd>
|
42
|
+
<?else ?>
|
43
|
+
<dd class="include"><?call inc.name ?></dd>
|
44
|
+
<?end if ?>
|
45
|
+
<?end for ?>
|
46
|
+
<?end unless ?>
|
47
|
+
</dl>
|
48
|
+
</section>
|
49
|
+
|
24
50
|
<section class="description">
|
25
51
|
<?call klass.description ?>
|
26
52
|
</section>
|
@@ -92,7 +118,8 @@
|
|
92
118
|
</header>
|
93
119
|
|
94
120
|
<?for meth in methodlist ?>
|
95
|
-
<
|
121
|
+
<a name="[?call meth.aref ?]">anchor</a>
|
122
|
+
<div id="<?call meth.aref ?>-doc" class="method[?if meth.is_alias_for
|
96
123
|
?] method-alias[?end if ?]">
|
97
124
|
|
98
125
|
<header>
|
@@ -74,10 +74,11 @@
|
|
74
74
|
</ul>
|
75
75
|
</div><!--/.nav-collapse -->
|
76
76
|
<span class="pull-right">
|
77
|
-
<
|
78
|
-
<
|
79
|
-
|
80
|
-
|
77
|
+
<form class="navbar-search">
|
78
|
+
<input type="hidden" id="navbar-search-target" value="" />
|
79
|
+
<input type="text" class="search-query" value=""
|
80
|
+
placeholder="Method, Class, or Filename" />
|
81
|
+
</form>
|
81
82
|
</form>
|
82
83
|
</div>
|
83
84
|
</div>
|
@@ -117,58 +118,5 @@
|
|
117
118
|
</ul>
|
118
119
|
</div>
|
119
120
|
|
120
|
-
<!-- Keyboard shortcut help -->
|
121
|
-
<div class="modal" id="shortcut-help">
|
122
|
-
<div class="modal-header">
|
123
|
-
<a class="close" data-dismiss="modal">×</a>
|
124
|
-
<h3>Keyboard Shortcuts</h3>
|
125
|
-
</div>
|
126
|
-
<div class="modal-body">
|
127
|
-
<table>
|
128
|
-
<tbody>
|
129
|
-
<tr>
|
130
|
-
<th>/</th>
|
131
|
-
<td>Search</td>
|
132
|
-
</tr>
|
133
|
-
<tr>
|
134
|
-
<th>?</th>
|
135
|
-
<td>Show this help</td>
|
136
|
-
</tr>
|
137
|
-
</tbody>
|
138
|
-
</table>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
<div class="modal" id="incremental-search">
|
143
|
-
<div class="modal-header">
|
144
|
-
<a class="close" data-dismiss="modal">×</a>
|
145
|
-
<h3>Search Index</h3>
|
146
|
-
</div>
|
147
|
-
|
148
|
-
<div class="modal-body">
|
149
|
-
<section class="search-string">
|
150
|
-
<span class="search-input-label">Searching for:</span>
|
151
|
-
<span class="search-input"></span>
|
152
|
-
</section>
|
153
|
-
|
154
|
-
<section class="search-results method-search-results">
|
155
|
-
<header><h4>Methods</h4></header>
|
156
|
-
<dl></dl>
|
157
|
-
</section>
|
158
|
-
<section class="search-results module-search-results">
|
159
|
-
<header><h4>Classes/Modules</h4></header>
|
160
|
-
<dl></dl>
|
161
|
-
</section>
|
162
|
-
<section class="search-results file-search-results">
|
163
|
-
<header><h4>Files</h4></header>
|
164
|
-
<dl></dl>
|
165
|
-
</section>
|
166
|
-
</div>
|
167
|
-
|
168
|
-
<div class="modal-footer">
|
169
|
-
<a href="#" class="btn">Close</a>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
121
|
</body>
|
174
122
|
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc-generator-fivefish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.
|
4
|
+
version: 0.0.1.pre.46
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
37
37
|
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
38
38
|
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2012-05-
|
39
|
+
date: 2012-05-03 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: inversion
|
@@ -102,6 +102,22 @@ dependencies:
|
|
102
102
|
- - ~>
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: 1.4.0
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: hoe-highline
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ~>
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 0.1.0
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.1.0
|
105
121
|
- !ruby/object:Gem::Dependency
|
106
122
|
name: uglifier
|
107
123
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|