new 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.new +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- metadata +6 -80
- data/.gitmodules +0 -3
- data/doc/.git +0 -1
- data/doc/Gemfile.html +0 -125
- data/doc/Gemfile_lock.html +0 -198
- data/doc/Guardfile.html +0 -134
- data/doc/InterpolateSpec.html +0 -116
- data/doc/LICENSE_txt.html +0 -132
- data/doc/New/Cli.html +0 -290
- data/doc/New/Dsl.html +0 -185
- data/doc/New/Interpolate.html +0 -238
- data/doc/New/Project.html +0 -171
- data/doc/New/Task/CustomBarTask.html +0 -154
- data/doc/New/Task/FooTask.html +0 -168
- data/doc/New/Task/Gem.html +0 -197
- data/doc/New/Task/TaskSpec.html +0 -168
- data/doc/New/Task.html +0 -380
- data/doc/New/Template.html +0 -234
- data/doc/New/Version.html +0 -277
- data/doc/New.html +0 -377
- data/doc/Object.html +0 -200
- data/doc/README_md.html +0 -292
- data/doc/VersionSpec.html +0 -116
- data/doc/created.rid +0 -47
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/fonts.css +0 -167
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -142
- data/doc/js/darkfish.js +0 -140
- data/doc/js/jquery.js +0 -18
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -580
- data/doc/spec/fixtures/custom/templates/custom_bar_template/custom_bar_txt.html +0 -110
- data/doc/table_of_contents.html +0 -324
- data/doc/tasks/gem/README_md.html +0 -150
- data/doc/templates/js/Gemfile.html +0 -147
- data/doc/templates/js/Guardfile.html +0 -117
- data/doc/templates/js/lib/README_md.html +0 -114
- data/doc/templates/js/spec/spec_helper_js_coffee.html +0 -110
- data/doc/templates/js/spec/vendor/chai_js.html +0 -3864
- data/doc/templates/js/spec/vendor/sinon-chai_js.html +0 -222
- data/doc/templates/js/spec/vendor/sinon_js.html +0 -4358
- data/doc/templates/js/src/README_md.html +0 -125
data/doc/fonts.css
DELETED
@@ -1,167 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
3
|
-
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
4
|
-
* trademark of Adobe Systems Incorporated in the United States and/or other
|
5
|
-
* countries.
|
6
|
-
*
|
7
|
-
* This Font Software is licensed under the SIL Open Font License, Version
|
8
|
-
* 1.1.
|
9
|
-
*
|
10
|
-
* This license is copied below, and is also available with a FAQ at:
|
11
|
-
* http://scripts.sil.org/OFL
|
12
|
-
*/
|
13
|
-
|
14
|
-
@font-face {
|
15
|
-
font-family: "Source Code Pro";
|
16
|
-
font-style: normal;
|
17
|
-
font-weight: 400;
|
18
|
-
src: local("Source Code Pro"),
|
19
|
-
local("SourceCodePro-Regular"),
|
20
|
-
url("fonts/SourceCodePro-Regular.ttf") format("truetype");
|
21
|
-
}
|
22
|
-
|
23
|
-
@font-face {
|
24
|
-
font-family: "Source Code Pro";
|
25
|
-
font-style: normal;
|
26
|
-
font-weight: 700;
|
27
|
-
src: local("Source Code Pro Bold"),
|
28
|
-
local("SourceCodePro-Bold"),
|
29
|
-
url("fonts/SourceCodePro-Bold.ttf") format("truetype");
|
30
|
-
}
|
31
|
-
|
32
|
-
/*
|
33
|
-
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
34
|
-
* with Reserved Font Name Lato.
|
35
|
-
*
|
36
|
-
* This Font Software is licensed under the SIL Open Font License, Version
|
37
|
-
* 1.1.
|
38
|
-
*
|
39
|
-
* This license is copied below, and is also available with a FAQ at:
|
40
|
-
* http://scripts.sil.org/OFL
|
41
|
-
*/
|
42
|
-
|
43
|
-
@font-face {
|
44
|
-
font-family: "Lato";
|
45
|
-
font-style: normal;
|
46
|
-
font-weight: 300;
|
47
|
-
src: local("Lato Light"),
|
48
|
-
local("Lato-Light"),
|
49
|
-
url("fonts/Lato-Light.ttf") format("truetype");
|
50
|
-
}
|
51
|
-
|
52
|
-
@font-face {
|
53
|
-
font-family: "Lato";
|
54
|
-
font-style: italic;
|
55
|
-
font-weight: 300;
|
56
|
-
src: local("Lato Light Italic"),
|
57
|
-
local("Lato-LightItalic"),
|
58
|
-
url("fonts/Lato-LightItalic.ttf") format("truetype");
|
59
|
-
}
|
60
|
-
|
61
|
-
@font-face {
|
62
|
-
font-family: "Lato";
|
63
|
-
font-style: normal;
|
64
|
-
font-weight: 700;
|
65
|
-
src: local("Lato Regular"),
|
66
|
-
local("Lato-Regular"),
|
67
|
-
url("fonts/Lato-Regular.ttf") format("truetype");
|
68
|
-
}
|
69
|
-
|
70
|
-
@font-face {
|
71
|
-
font-family: "Lato";
|
72
|
-
font-style: italic;
|
73
|
-
font-weight: 700;
|
74
|
-
src: local("Lato Italic"),
|
75
|
-
local("Lato-Italic"),
|
76
|
-
url("fonts/Lato-RegularItalic.ttf") format("truetype");
|
77
|
-
}
|
78
|
-
|
79
|
-
/*
|
80
|
-
* -----------------------------------------------------------
|
81
|
-
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
82
|
-
* -----------------------------------------------------------
|
83
|
-
*
|
84
|
-
* PREAMBLE
|
85
|
-
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
86
|
-
* development of collaborative font projects, to support the font creation
|
87
|
-
* efforts of academic and linguistic communities, and to provide a free and
|
88
|
-
* open framework in which fonts may be shared and improved in partnership
|
89
|
-
* with others.
|
90
|
-
*
|
91
|
-
* The OFL allows the licensed fonts to be used, studied, modified and
|
92
|
-
* redistributed freely as long as they are not sold by themselves. The
|
93
|
-
* fonts, including any derivative works, can be bundled, embedded,
|
94
|
-
* redistributed and/or sold with any software provided that any reserved
|
95
|
-
* names are not used by derivative works. The fonts and derivatives,
|
96
|
-
* however, cannot be released under any other type of license. The
|
97
|
-
* requirement for fonts to remain under this license does not apply
|
98
|
-
* to any document created using the fonts or their derivatives.
|
99
|
-
*
|
100
|
-
* DEFINITIONS
|
101
|
-
* "Font Software" refers to the set of files released by the Copyright
|
102
|
-
* Holder(s) under this license and clearly marked as such. This may
|
103
|
-
* include source files, build scripts and documentation.
|
104
|
-
*
|
105
|
-
* "Reserved Font Name" refers to any names specified as such after the
|
106
|
-
* copyright statement(s).
|
107
|
-
*
|
108
|
-
* "Original Version" refers to the collection of Font Software components as
|
109
|
-
* distributed by the Copyright Holder(s).
|
110
|
-
*
|
111
|
-
* "Modified Version" refers to any derivative made by adding to, deleting,
|
112
|
-
* or substituting -- in part or in whole -- any of the components of the
|
113
|
-
* Original Version, by changing formats or by porting the Font Software to a
|
114
|
-
* new environment.
|
115
|
-
*
|
116
|
-
* "Author" refers to any designer, engineer, programmer, technical
|
117
|
-
* writer or other person who contributed to the Font Software.
|
118
|
-
*
|
119
|
-
* PERMISSION & CONDITIONS
|
120
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
121
|
-
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
122
|
-
* redistribute, and sell modified and unmodified copies of the Font
|
123
|
-
* Software, subject to the following conditions:
|
124
|
-
*
|
125
|
-
* 1) Neither the Font Software nor any of its individual components,
|
126
|
-
* in Original or Modified Versions, may be sold by itself.
|
127
|
-
*
|
128
|
-
* 2) Original or Modified Versions of the Font Software may be bundled,
|
129
|
-
* redistributed and/or sold with any software, provided that each copy
|
130
|
-
* contains the above copyright notice and this license. These can be
|
131
|
-
* included either as stand-alone text files, human-readable headers or
|
132
|
-
* in the appropriate machine-readable metadata fields within text or
|
133
|
-
* binary files as long as those fields can be easily viewed by the user.
|
134
|
-
*
|
135
|
-
* 3) No Modified Version of the Font Software may use the Reserved Font
|
136
|
-
* Name(s) unless explicit written permission is granted by the corresponding
|
137
|
-
* Copyright Holder. This restriction only applies to the primary font name as
|
138
|
-
* presented to the users.
|
139
|
-
*
|
140
|
-
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
141
|
-
* Software shall not be used to promote, endorse or advertise any
|
142
|
-
* Modified Version, except to acknowledge the contribution(s) of the
|
143
|
-
* Copyright Holder(s) and the Author(s) or with their explicit written
|
144
|
-
* permission.
|
145
|
-
*
|
146
|
-
* 5) The Font Software, modified or unmodified, in part or in whole,
|
147
|
-
* must be distributed entirely under this license, and must not be
|
148
|
-
* distributed under any other license. The requirement for fonts to
|
149
|
-
* remain under this license does not apply to any document created
|
150
|
-
* using the Font Software.
|
151
|
-
*
|
152
|
-
* TERMINATION
|
153
|
-
* This license becomes null and void if any of the above conditions are
|
154
|
-
* not met.
|
155
|
-
*
|
156
|
-
* DISCLAIMER
|
157
|
-
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
158
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
159
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
160
|
-
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
161
|
-
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
162
|
-
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
163
|
-
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
164
|
-
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
165
|
-
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
166
|
-
*/
|
167
|
-
|
data/doc/images/add.png
DELETED
Binary file
|
data/doc/images/arrow_up.png
DELETED
Binary file
|
data/doc/images/brick.png
DELETED
Binary file
|
data/doc/images/brick_link.png
DELETED
Binary file
|
data/doc/images/bug.png
DELETED
Binary file
|
data/doc/images/bullet_black.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/date.png
DELETED
Binary file
|
data/doc/images/delete.png
DELETED
Binary file
|
data/doc/images/find.png
DELETED
Binary file
|
Binary file
|
data/doc/images/macFFBgHack.png
DELETED
Binary file
|
data/doc/images/package.png
DELETED
Binary file
|
data/doc/images/page_green.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/plugin.png
DELETED
Binary file
|
data/doc/images/ruby.png
DELETED
Binary file
|
data/doc/images/tag_blue.png
DELETED
Binary file
|
data/doc/images/tag_green.png
DELETED
Binary file
|
data/doc/images/transparent.png
DELETED
Binary file
|
data/doc/images/wrench.png
DELETED
Binary file
|
Binary file
|
data/doc/images/zoom.png
DELETED
Binary file
|
data/doc/index.html
DELETED
@@ -1,142 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link href="./fonts.css" rel="stylesheet">
|
10
|
-
<link href="./rdoc.css" rel="stylesheet">
|
11
|
-
|
12
|
-
<script type="text/javascript">
|
13
|
-
var rdoc_rel_prefix = "./";
|
14
|
-
</script>
|
15
|
-
|
16
|
-
<script src="./js/jquery.js"></script>
|
17
|
-
<script src="./js/navigation.js"></script>
|
18
|
-
<script src="./js/search_index.js"></script>
|
19
|
-
<script src="./js/search.js"></script>
|
20
|
-
<script src="./js/searcher.js"></script>
|
21
|
-
<script src="./js/darkfish.js"></script>
|
22
|
-
|
23
|
-
|
24
|
-
<body id="top" role="document" class="file">
|
25
|
-
<nav role="navigation">
|
26
|
-
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
-
<h2>
|
29
|
-
<a href="./index.html" rel="home">Home</a>
|
30
|
-
</h2>
|
31
|
-
|
32
|
-
<div id="table-of-contents-navigation">
|
33
|
-
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
|
40
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
41
|
-
<form action="#" method="get" accept-charset="utf-8">
|
42
|
-
<div id="search-field-wrapper">
|
43
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
44
|
-
aria-autocomplete="list" aria-controls="search-results"
|
45
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
46
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<ul id="search-results" aria-label="Search Results"
|
50
|
-
aria-busy="false" aria-expanded="false"
|
51
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
52
|
-
</form>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="project-metadata">
|
58
|
-
<div id="fileindex-section" class="nav-section">
|
59
|
-
<h3>Pages</h3>
|
60
|
-
|
61
|
-
<ul class="link-list">
|
62
|
-
|
63
|
-
<li><a href="./Gemfile.html">Gemfile</a>
|
64
|
-
|
65
|
-
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
66
|
-
|
67
|
-
<li><a href="./Guardfile.html">Guardfile</a>
|
68
|
-
|
69
|
-
<li><a href="./LICENSE_txt.html">LICENSE</a>
|
70
|
-
|
71
|
-
<li><a href="./README_md.html">README</a>
|
72
|
-
|
73
|
-
<li><a href="./spec/fixtures/custom/templates/custom_bar_template/custom_bar_txt.html">custom_bar</a>
|
74
|
-
|
75
|
-
<li><a href="./tasks/gem/README_md.html">README</a>
|
76
|
-
|
77
|
-
<li><a href="./templates/js/Gemfile.html">Gemfile</a>
|
78
|
-
|
79
|
-
<li><a href="./templates/js/Guardfile.html">Guardfile</a>
|
80
|
-
|
81
|
-
<li><a href="./templates/js/lib/README_md.html">README</a>
|
82
|
-
|
83
|
-
<li><a href="./templates/js/spec/spec_helper_js_coffee.html">spec_helper.js.coffee</a>
|
84
|
-
|
85
|
-
<li><a href="./templates/js/spec/vendor/chai_js.html">chai.js</a>
|
86
|
-
|
87
|
-
<li><a href="./templates/js/spec/vendor/sinon-chai_js.html">sinon-chai.js</a>
|
88
|
-
|
89
|
-
<li><a href="./templates/js/spec/vendor/sinon_js.html">sinon.js</a>
|
90
|
-
|
91
|
-
<li><a href="./templates/js/src/README_md.html">README</a>
|
92
|
-
|
93
|
-
</ul>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
<div id="classindex-section" class="nav-section">
|
97
|
-
<h3>Class and Module Index</h3>
|
98
|
-
|
99
|
-
<ul class="link-list">
|
100
|
-
|
101
|
-
<li><a href="./InterpolateSpec.html">InterpolateSpec</a>
|
102
|
-
|
103
|
-
<li><a href="./New/Cli.html">New::Cli</a>
|
104
|
-
|
105
|
-
<li><a href="./New/Dsl.html">New::Dsl</a>
|
106
|
-
|
107
|
-
<li><a href="./New/Interpolate.html">New::Interpolate</a>
|
108
|
-
|
109
|
-
<li><a href="./New/Project.html">New::Project</a>
|
110
|
-
|
111
|
-
<li><a href="./New/Task/CustomBarTask.html">New::Task::CustomBarTask</a>
|
112
|
-
|
113
|
-
<li><a href="./New/Task/FooTask.html">New::Task::FooTask</a>
|
114
|
-
|
115
|
-
<li><a href="./New/Task/TaskSpec.html">New::Task::TaskSpec</a>
|
116
|
-
|
117
|
-
<li><a href="./New/Template.html">New::Template</a>
|
118
|
-
|
119
|
-
<li><a href="./New/Version.html">New::Version</a>
|
120
|
-
|
121
|
-
<li><a href="./Object.html">Object</a>
|
122
|
-
|
123
|
-
<li><a href="./VersionSpec.html">VersionSpec</a>
|
124
|
-
|
125
|
-
</ul>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
</div>
|
129
|
-
</nav>
|
130
|
-
|
131
|
-
<main role="main">
|
132
|
-
<p>This is the API documentation for RDoc Documentation.
|
133
|
-
</main>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<footer id="validator-badges" role="contentinfo">
|
138
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
139
|
-
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
140
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
141
|
-
</footer>
|
142
|
-
|
data/doc/js/darkfish.js
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
*
|
3
|
-
* Darkfish Page Functions
|
4
|
-
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
|
5
|
-
*
|
6
|
-
* Author: Michael Granger <mgranger@laika.com>
|
7
|
-
*
|
8
|
-
*/
|
9
|
-
|
10
|
-
/* Provide console simulation for firebug-less environments */
|
11
|
-
if (!("console" in window) || !("firebug" in console)) {
|
12
|
-
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
|
13
|
-
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
|
14
|
-
|
15
|
-
window.console = {};
|
16
|
-
for (var i = 0; i < names.length; ++i)
|
17
|
-
window.console[names[i]] = function() {};
|
18
|
-
};
|
19
|
-
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Unwrap the first element that matches the given @expr@ from the targets and return them.
|
23
|
-
*/
|
24
|
-
$.fn.unwrap = function( expr ) {
|
25
|
-
return this.each( function() {
|
26
|
-
$(this).parents( expr ).eq( 0 ).after( this ).remove();
|
27
|
-
});
|
28
|
-
};
|
29
|
-
|
30
|
-
|
31
|
-
function showSource( e ) {
|
32
|
-
var target = e.target;
|
33
|
-
var codeSections = $(target).
|
34
|
-
parents('.method-detail').
|
35
|
-
find('.method-source-code');
|
36
|
-
|
37
|
-
$(target).
|
38
|
-
parents('.method-detail').
|
39
|
-
find('.method-source-code').
|
40
|
-
slideToggle();
|
41
|
-
};
|
42
|
-
|
43
|
-
function hookSourceViews() {
|
44
|
-
$('.method-heading').click( showSource );
|
45
|
-
};
|
46
|
-
|
47
|
-
function toggleDebuggingSection() {
|
48
|
-
$('.debugging-section').slideToggle();
|
49
|
-
};
|
50
|
-
|
51
|
-
function hookDebuggingToggle() {
|
52
|
-
$('#debugging-toggle img').click( toggleDebuggingSection );
|
53
|
-
};
|
54
|
-
|
55
|
-
function hookSearch() {
|
56
|
-
var input = $('#search-field').eq(0);
|
57
|
-
var result = $('#search-results').eq(0);
|
58
|
-
$(result).show();
|
59
|
-
|
60
|
-
var search_section = $('#search-section').get(0);
|
61
|
-
$(search_section).show();
|
62
|
-
|
63
|
-
var search = new Search(search_data, input, result);
|
64
|
-
|
65
|
-
search.renderItem = function(result) {
|
66
|
-
var li = document.createElement('li');
|
67
|
-
var html = '';
|
68
|
-
|
69
|
-
// TODO add relative path to <script> per-page
|
70
|
-
html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
|
71
|
-
if (result.params)
|
72
|
-
html += '<span class="params">' + result.params + '</span>';
|
73
|
-
html += '</a>';
|
74
|
-
|
75
|
-
|
76
|
-
if (result.namespace)
|
77
|
-
html += '<p class="search-namespace">' + this.hlt(result.namespace);
|
78
|
-
|
79
|
-
if (result.snippet)
|
80
|
-
html += '<div class="search-snippet">' + result.snippet + '</div>';
|
81
|
-
|
82
|
-
li.innerHTML = html;
|
83
|
-
|
84
|
-
return li;
|
85
|
-
}
|
86
|
-
|
87
|
-
search.select = function(result) {
|
88
|
-
var result_element = result.get(0);
|
89
|
-
window.location.href = result_element.firstChild.firstChild.href;
|
90
|
-
}
|
91
|
-
|
92
|
-
search.scrollIntoView = search.scrollInWindow;
|
93
|
-
};
|
94
|
-
|
95
|
-
function highlightTarget( anchor ) {
|
96
|
-
console.debug( "Highlighting target '%s'.", anchor );
|
97
|
-
|
98
|
-
$("a[name]").each( function() {
|
99
|
-
if ( $(this).attr("name") == anchor ) {
|
100
|
-
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
101
|
-
console.debug( "Wrapping the target-section" );
|
102
|
-
$('div.method-detail').unwrap( 'div.target-section' );
|
103
|
-
$(this).parent().wrap( '<div class="target-section"></div>' );
|
104
|
-
} else {
|
105
|
-
console.debug( "Already wrapped." );
|
106
|
-
}
|
107
|
-
}
|
108
|
-
});
|
109
|
-
};
|
110
|
-
|
111
|
-
function highlightLocationTarget() {
|
112
|
-
console.debug( "Location hash: %s", window.location.hash );
|
113
|
-
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
114
|
-
|
115
|
-
var anchor = window.location.hash.substring(1);
|
116
|
-
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
117
|
-
|
118
|
-
highlightTarget( anchor );
|
119
|
-
};
|
120
|
-
|
121
|
-
function highlightClickTarget( event ) {
|
122
|
-
console.debug( "Highlighting click target for event %o", event.target );
|
123
|
-
try {
|
124
|
-
var anchor = $(event.target).attr( 'href' ).substring(1);
|
125
|
-
console.debug( "Found target anchor: %s", anchor );
|
126
|
-
highlightTarget( anchor );
|
127
|
-
} catch ( err ) {
|
128
|
-
console.error( "Exception while highlighting: %o", err );
|
129
|
-
};
|
130
|
-
};
|
131
|
-
|
132
|
-
|
133
|
-
$(document).ready( function() {
|
134
|
-
hookSourceViews();
|
135
|
-
hookDebuggingToggle();
|
136
|
-
hookSearch();
|
137
|
-
highlightLocationTarget();
|
138
|
-
|
139
|
-
$('ul.link-list a').bind( "click", highlightClickTarget );
|
140
|
-
});
|