netlinx-compile 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/bin/netlinx-compile +0 -0
- data/doc/NetLinx.html +119 -151
- data/doc/NetLinx/Compile.html +119 -148
- data/doc/NetLinx/Compile/Extension.html +115 -145
- data/doc/NetLinx/Compile/Extension/AXS.html +217 -154
- data/doc/NetLinx/Compile/ExtensionDiscovery.html +479 -321
- data/doc/NetLinx/Compile/ExtensionHandler.html +703 -396
- data/doc/NetLinx/Compile/Script.html +390 -282
- data/doc/NetLinx/Compiler.html +375 -288
- data/doc/NetLinx/CompilerResult.html +1102 -498
- data/doc/NetLinx/NoCompilerError.html +135 -155
- data/doc/NetLinx/SourceFile.html +608 -423
- data/doc/_index.html +215 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +94 -0
- data/doc/file.license.html +73 -0
- data/doc/file_list.html +63 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +94 -103
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -18
- data/doc/method_list.html +261 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/test/netlinx/compilable.rb +13 -48
- data/lib/test/netlinx/compile/discoverable.rb +3 -14
- data/lib/test/netlinx/compile/invokable.rb +3 -15
- metadata +98 -67
- data/README.txt +0 -2
- data/doc/Test.html +0 -147
- data/doc/Test/NetLinx.html +0 -147
- data/doc/Test/NetLinx/Compilable.html +0 -148
- data/doc/Test/NetLinx/Compile.html +0 -146
- data/doc/Test/NetLinx/Compile/Discoverable.html +0 -148
- data/doc/Test/NetLinx/Compile/Invokable.html +0 -149
- data/doc/created.rid +0 -12
- 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/js/darkfish.js +0 -155
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -94
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -595
- data/doc/table_of_contents.html +0 -138
@@ -1,148 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>module Test::NetLinx::Compile::Discoverable - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "../../../";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="module">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="../../../index.html">Home</a>
|
28
|
-
<a href="../../../table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="../../../table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>lib/test/netlinx/compile/discoverable.rb
|
53
|
-
</ul>
|
54
|
-
</nav>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div id="class-metadata">
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</div>
|
66
|
-
|
67
|
-
<div id="project-metadata">
|
68
|
-
|
69
|
-
<nav id="classindex-section" class="section project-section">
|
70
|
-
<h3 class="section-header">Class and Module Index</h3>
|
71
|
-
|
72
|
-
<ul class="link-list">
|
73
|
-
|
74
|
-
<li><a href="../../../NetLinx.html">NetLinx</a>
|
75
|
-
|
76
|
-
<li><a href="../../../NetLinx/Compile.html">NetLinx::Compile</a>
|
77
|
-
|
78
|
-
<li><a href="../../../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>
|
79
|
-
|
80
|
-
<li><a href="../../../NetLinx/Compile/Extension/AXS.html">NetLinx::Compile::Extension::AXS</a>
|
81
|
-
|
82
|
-
<li><a href="../../../NetLinx/Compile/ExtensionDiscovery.html">NetLinx::Compile::ExtensionDiscovery</a>
|
83
|
-
|
84
|
-
<li><a href="../../../NetLinx/Compile/ExtensionHandler.html">NetLinx::Compile::ExtensionHandler</a>
|
85
|
-
|
86
|
-
<li><a href="../../../NetLinx/Compile/Script.html">NetLinx::Compile::Script</a>
|
87
|
-
|
88
|
-
<li><a href="../../../NetLinx/Compiler.html">NetLinx::Compiler</a>
|
89
|
-
|
90
|
-
<li><a href="../../../NetLinx/CompilerResult.html">NetLinx::CompilerResult</a>
|
91
|
-
|
92
|
-
<li><a href="../../../NetLinx/NoCompilerError.html">NetLinx::NoCompilerError</a>
|
93
|
-
|
94
|
-
<li><a href="../../../NetLinx/SourceFile.html">NetLinx::SourceFile</a>
|
95
|
-
|
96
|
-
<li><a href="../../../Test.html">Test</a>
|
97
|
-
|
98
|
-
<li><a href="../../../Test/NetLinx.html">Test::NetLinx</a>
|
99
|
-
|
100
|
-
<li><a href="../../../Test/NetLinx/Compilable.html">Test::NetLinx::Compilable</a>
|
101
|
-
|
102
|
-
<li><a href="../../../Test/NetLinx/Compile.html">Test::NetLinx::Compile</a>
|
103
|
-
|
104
|
-
<li><a href="../../../Test/NetLinx/Compile/Discoverable.html">Test::NetLinx::Compile::Discoverable</a>
|
105
|
-
|
106
|
-
<li><a href="../../../Test/NetLinx/Compile/Invokable.html">Test::NetLinx::Compile::Invokable</a>
|
107
|
-
|
108
|
-
</ul>
|
109
|
-
</nav>
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</nav>
|
113
|
-
|
114
|
-
<div id="documentation">
|
115
|
-
<h1 class="module">module Test::NetLinx::Compile::Discoverable</h1>
|
116
|
-
|
117
|
-
<div id="description" class="description">
|
118
|
-
|
119
|
-
<p>Interface tests for an object that registers an EventHandler under <a
|
120
|
-
href="../../../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>.</p>
|
121
|
-
|
122
|
-
</div><!-- description -->
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
<!-- Methods -->
|
137
|
-
|
138
|
-
</section><!-- 5Buntitled-5D -->
|
139
|
-
|
140
|
-
</div><!-- documentation -->
|
141
|
-
|
142
|
-
|
143
|
-
<footer id="validator-badges">
|
144
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
145
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
146
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
147
|
-
</footer>
|
148
|
-
|
@@ -1,149 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>module Test::NetLinx::Compile::Invokable - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "../../../";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="module">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="../../../index.html">Home</a>
|
28
|
-
<a href="../../../table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="../../../table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>lib/test/netlinx/compile/invokable.rb
|
53
|
-
</ul>
|
54
|
-
</nav>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div id="class-metadata">
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</div>
|
66
|
-
|
67
|
-
<div id="project-metadata">
|
68
|
-
|
69
|
-
<nav id="classindex-section" class="section project-section">
|
70
|
-
<h3 class="section-header">Class and Module Index</h3>
|
71
|
-
|
72
|
-
<ul class="link-list">
|
73
|
-
|
74
|
-
<li><a href="../../../NetLinx.html">NetLinx</a>
|
75
|
-
|
76
|
-
<li><a href="../../../NetLinx/Compile.html">NetLinx::Compile</a>
|
77
|
-
|
78
|
-
<li><a href="../../../NetLinx/Compile/Extension.html">NetLinx::Compile::Extension</a>
|
79
|
-
|
80
|
-
<li><a href="../../../NetLinx/Compile/Extension/AXS.html">NetLinx::Compile::Extension::AXS</a>
|
81
|
-
|
82
|
-
<li><a href="../../../NetLinx/Compile/ExtensionDiscovery.html">NetLinx::Compile::ExtensionDiscovery</a>
|
83
|
-
|
84
|
-
<li><a href="../../../NetLinx/Compile/ExtensionHandler.html">NetLinx::Compile::ExtensionHandler</a>
|
85
|
-
|
86
|
-
<li><a href="../../../NetLinx/Compile/Script.html">NetLinx::Compile::Script</a>
|
87
|
-
|
88
|
-
<li><a href="../../../NetLinx/Compiler.html">NetLinx::Compiler</a>
|
89
|
-
|
90
|
-
<li><a href="../../../NetLinx/CompilerResult.html">NetLinx::CompilerResult</a>
|
91
|
-
|
92
|
-
<li><a href="../../../NetLinx/NoCompilerError.html">NetLinx::NoCompilerError</a>
|
93
|
-
|
94
|
-
<li><a href="../../../NetLinx/SourceFile.html">NetLinx::SourceFile</a>
|
95
|
-
|
96
|
-
<li><a href="../../../Test.html">Test</a>
|
97
|
-
|
98
|
-
<li><a href="../../../Test/NetLinx.html">Test::NetLinx</a>
|
99
|
-
|
100
|
-
<li><a href="../../../Test/NetLinx/Compilable.html">Test::NetLinx::Compilable</a>
|
101
|
-
|
102
|
-
<li><a href="../../../Test/NetLinx/Compile.html">Test::NetLinx::Compile</a>
|
103
|
-
|
104
|
-
<li><a href="../../../Test/NetLinx/Compile/Discoverable.html">Test::NetLinx::Compile::Discoverable</a>
|
105
|
-
|
106
|
-
<li><a href="../../../Test/NetLinx/Compile/Invokable.html">Test::NetLinx::Compile::Invokable</a>
|
107
|
-
|
108
|
-
</ul>
|
109
|
-
</nav>
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</nav>
|
113
|
-
|
114
|
-
<div id="documentation">
|
115
|
-
<h1 class="module">module Test::NetLinx::Compile::Invokable</h1>
|
116
|
-
|
117
|
-
<div id="description" class="description">
|
118
|
-
|
119
|
-
<p>Interface tests for an object that provides a means to invoke the compiler
|
120
|
-
on a <a href="../Compilable.html">Compilable</a> file extension. See
|
121
|
-
ExtensionDiscovery.</p>
|
122
|
-
|
123
|
-
</div><!-- description -->
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<!-- Methods -->
|
138
|
-
|
139
|
-
</section><!-- 5Buntitled-5D -->
|
140
|
-
|
141
|
-
</div><!-- documentation -->
|
142
|
-
|
143
|
-
|
144
|
-
<footer id="validator-badges">
|
145
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
146
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
147
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
148
|
-
</footer>
|
149
|
-
|
data/doc/created.rid
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Sat, 24 Aug 2013 10:55:29 -0700
|
2
|
-
lib/netlinx-compile.rb Tue, 13 Aug 2013 19:09:38 -0700
|
3
|
-
lib/netlinx/compile/extension/axs.rb Wed, 21 Aug 2013 22:17:15 -0700
|
4
|
-
lib/netlinx/compile/extension_discovery.rb Fri, 23 Aug 2013 20:35:14 -0700
|
5
|
-
lib/netlinx/compile/extension_handler.rb Fri, 23 Aug 2013 20:48:56 -0700
|
6
|
-
lib/netlinx/compile/script.rb Fri, 23 Aug 2013 19:55:14 -0700
|
7
|
-
lib/netlinx/compiler.rb Sat, 24 Aug 2013 10:55:04 -0700
|
8
|
-
lib/netlinx/compiler_result.rb Sun, 18 Aug 2013 23:39:49 -0700
|
9
|
-
lib/netlinx/source_file.rb Fri, 23 Aug 2013 20:31:28 -0700
|
10
|
-
lib/test/netlinx/compilable.rb Sat, 24 Aug 2013 10:55:28 -0700
|
11
|
-
lib/test/netlinx/compile/discoverable.rb Fri, 23 Aug 2013 20:33:18 -0700
|
12
|
-
lib/test/netlinx/compile/invokable.rb Fri, 23 Aug 2013 20:33:06 -0700
|
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/js/darkfish.js
DELETED
@@ -1,155 +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 hookTableOfContentsToggle() {
|
56
|
-
$('.indexpage li .toc-toggle').each( function() {
|
57
|
-
$(this).click( function() {
|
58
|
-
$(this).toggleClass('open');
|
59
|
-
});
|
60
|
-
|
61
|
-
var section = $(this).next();
|
62
|
-
|
63
|
-
$(this).click( function() {
|
64
|
-
section.slideToggle();
|
65
|
-
});
|
66
|
-
});
|
67
|
-
}
|
68
|
-
|
69
|
-
function hookSearch() {
|
70
|
-
var input = $('#search-field').eq(0);
|
71
|
-
var result = $('#search-results').eq(0);
|
72
|
-
$(result).show();
|
73
|
-
|
74
|
-
var search_section = $('#search-section').get(0);
|
75
|
-
$(search_section).show();
|
76
|
-
|
77
|
-
var search = new Search(search_data, input, result);
|
78
|
-
|
79
|
-
search.renderItem = function(result) {
|
80
|
-
var li = document.createElement('li');
|
81
|
-
var html = '';
|
82
|
-
|
83
|
-
// TODO add relative path to <script> per-page
|
84
|
-
html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
|
85
|
-
if (result.params)
|
86
|
-
html += '<span class="params">' + result.params + '</span>';
|
87
|
-
html += '</a>';
|
88
|
-
|
89
|
-
|
90
|
-
if (result.namespace)
|
91
|
-
html += '<p class="search-namespace">' + this.hlt(result.namespace);
|
92
|
-
|
93
|
-
if (result.snippet)
|
94
|
-
html += '<div class="search-snippet">' + result.snippet + '</div>';
|
95
|
-
|
96
|
-
li.innerHTML = html;
|
97
|
-
|
98
|
-
return li;
|
99
|
-
}
|
100
|
-
|
101
|
-
search.select = function(result) {
|
102
|
-
var result_element = result.get(0);
|
103
|
-
window.location.href = result_element.firstChild.firstChild.href;
|
104
|
-
}
|
105
|
-
|
106
|
-
search.scrollIntoView = search.scrollInWindow;
|
107
|
-
};
|
108
|
-
|
109
|
-
function highlightTarget( anchor ) {
|
110
|
-
console.debug( "Highlighting target '%s'.", anchor );
|
111
|
-
|
112
|
-
$("a[name]").each( function() {
|
113
|
-
if ( $(this).attr("name") == anchor ) {
|
114
|
-
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
115
|
-
console.debug( "Wrapping the target-section" );
|
116
|
-
$('div.method-detail').unwrap( 'div.target-section' );
|
117
|
-
$(this).parent().wrap( '<div class="target-section"></div>' );
|
118
|
-
} else {
|
119
|
-
console.debug( "Already wrapped." );
|
120
|
-
}
|
121
|
-
}
|
122
|
-
});
|
123
|
-
};
|
124
|
-
|
125
|
-
function highlightLocationTarget() {
|
126
|
-
console.debug( "Location hash: %s", window.location.hash );
|
127
|
-
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
128
|
-
|
129
|
-
var anchor = window.location.hash.substring(1);
|
130
|
-
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
131
|
-
|
132
|
-
highlightTarget( anchor );
|
133
|
-
};
|
134
|
-
|
135
|
-
function highlightClickTarget( event ) {
|
136
|
-
console.debug( "Highlighting click target for event %o", event.target );
|
137
|
-
try {
|
138
|
-
var anchor = $(event.target).attr( 'href' ).substring(1);
|
139
|
-
console.debug( "Found target anchor: %s", anchor );
|
140
|
-
highlightTarget( anchor );
|
141
|
-
} catch ( err ) {
|
142
|
-
console.error( "Exception while highlighting: %o", err );
|
143
|
-
};
|
144
|
-
};
|
145
|
-
|
146
|
-
|
147
|
-
$(document).ready( function() {
|
148
|
-
hookSourceViews();
|
149
|
-
hookDebuggingToggle();
|
150
|
-
hookSearch();
|
151
|
-
highlightLocationTarget();
|
152
|
-
hookTableOfContentsToggle();
|
153
|
-
|
154
|
-
$('ul.link-list a').bind( "click", highlightClickTarget );
|
155
|
-
});
|