jsdoc-toolkit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/jsdoc-toolkit.gemspec +108 -1
- data/src/jsdoc-toolkit/jsdoc-toolkit/README.txt +183 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame.js +33 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Chain.js +102 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Dumper.js +144 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Hash.js +84 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Link.js +153 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Namespace.js +10 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Opt.js +134 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Reflection.js +26 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/String.js +93 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Testrun.js +129 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/FOODOC.js +26 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC.js +26 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js +159 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC.js +104 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/DocComment.js +200 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/DocTag.js +294 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js +126 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js +109 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Lang.js +144 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Parser.js +145 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js +33 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Symbol.js +645 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js +241 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TextStream.js +41 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Token.js +18 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js +332 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js +133 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Util.js +32 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Walker.js +474 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/main.js +111 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/commentSrcJson.js +20 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/frameworkPrototype.js +16 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/functionCall.js +10 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/publishSrcHilite.js +62 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/symbolLink.js +10 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/tagParamConfig.js +31 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/tagSynonyms.js +43 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/run.js +348 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/t/TestDoc.js +144 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/t/runner.js +13 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test.js +325 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/addon.js +24 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/anon_inner.js +14 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/augments.js +31 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/augments2.js +26 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/borrows.js +46 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/borrows2.js +23 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/config.js +22 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/constructs.js +18 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/encoding.js +10 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/encoding_other.js +12 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/event.js +54 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/exports.js +14 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/functions_anon.js +39 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/functions_nested.js +33 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/global.js +13 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/globals.js +25 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/ignore.js +10 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/inner.js +16 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/jsdoc_test.js +477 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/lend.js +33 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/memberof.js +19 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/memberof_constructor.js +17 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/module.js +17 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/name.js +19 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/namespace_nested.js +23 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/nocode.js +13 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/oblit_anon.js +20 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/overview.js +20 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/param_inline.js +37 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/params_optional.js +8 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype.js +17 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_nested.js +9 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_oblit.js +13 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_oblit_constructor.js +24 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/public.js +10 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/scripts/code.js +5 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/scripts/notcode.txt +5 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/shared.js +42 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/shared2.js +2 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/shortcuts.js +22 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/static_this.js +13 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/synonyms.js +31 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/tosource.js +23 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/variable_redefine.js +14 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/changes.txt +107 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/conf/sample.conf +31 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/java/build.xml +36 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/java/build_1.4.xml +36 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/java/classes/js.jar +0 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/java/src/JsDebugRun.java +21 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/java/src/JsRun.java +21 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/jsdebug.jar +0 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/jsrun.jar +0 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/jsrun.sh +52 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl +17 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl +56 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/class.tmpl +649 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/index.tmpl +39 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/publish.js +200 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/default.css +162 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/header.html +2 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/index.html +19 -0
- data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/symbol.tmpl +35 -0
- metadata +108 -1
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/jsdoc-toolkit.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{jsdoc-toolkit}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["ggironda"]
|
@@ -28,6 +28,113 @@ Gem::Specification.new do |s|
|
|
28
28
|
"lib/jsdoc-toolkit.rb",
|
29
29
|
"lib/jsdoc-toolkit/doc_task.rb",
|
30
30
|
"lib/jsdoc-toolkit/generator.rb",
|
31
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/README.txt",
|
32
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame.js",
|
33
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Chain.js",
|
34
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Dumper.js",
|
35
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Hash.js",
|
36
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Link.js",
|
37
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Namespace.js",
|
38
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Opt.js",
|
39
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Reflection.js",
|
40
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/String.js",
|
41
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Testrun.js",
|
42
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/FOODOC.js",
|
43
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC.js",
|
44
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js",
|
45
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js",
|
46
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js",
|
47
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC.js",
|
48
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/DocComment.js",
|
49
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/DocTag.js",
|
50
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js",
|
51
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js",
|
52
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Lang.js",
|
53
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Parser.js",
|
54
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js",
|
55
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Symbol.js",
|
56
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js",
|
57
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TextStream.js",
|
58
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Token.js",
|
59
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js",
|
60
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js",
|
61
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Util.js",
|
62
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Walker.js",
|
63
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/main.js",
|
64
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/commentSrcJson.js",
|
65
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/frameworkPrototype.js",
|
66
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/functionCall.js",
|
67
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/publishSrcHilite.js",
|
68
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/symbolLink.js",
|
69
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/tagParamConfig.js",
|
70
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/tagSynonyms.js",
|
71
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/run.js",
|
72
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/t/TestDoc.js",
|
73
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/t/runner.js",
|
74
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test.js",
|
75
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/addon.js",
|
76
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/anon_inner.js",
|
77
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/augments.js",
|
78
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/augments2.js",
|
79
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/borrows.js",
|
80
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/borrows2.js",
|
81
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/config.js",
|
82
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/constructs.js",
|
83
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/encoding.js",
|
84
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/encoding_other.js",
|
85
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/event.js",
|
86
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/exports.js",
|
87
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/functions_anon.js",
|
88
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/functions_nested.js",
|
89
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/global.js",
|
90
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/globals.js",
|
91
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/ignore.js",
|
92
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/inner.js",
|
93
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/jsdoc_test.js",
|
94
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/lend.js",
|
95
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/memberof.js",
|
96
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/memberof_constructor.js",
|
97
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/module.js",
|
98
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/name.js",
|
99
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/namespace_nested.js",
|
100
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/nocode.js",
|
101
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/oblit_anon.js",
|
102
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/overview.js",
|
103
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/param_inline.js",
|
104
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/params_optional.js",
|
105
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype.js",
|
106
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_nested.js",
|
107
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_oblit.js",
|
108
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_oblit_constructor.js",
|
109
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/public.js",
|
110
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/scripts/code.js",
|
111
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/scripts/notcode.txt",
|
112
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/shared.js",
|
113
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/shared2.js",
|
114
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/shortcuts.js",
|
115
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/static_this.js",
|
116
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/synonyms.js",
|
117
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/tosource.js",
|
118
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/app/test/variable_redefine.js",
|
119
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/changes.txt",
|
120
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/conf/sample.conf",
|
121
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/java/build.xml",
|
122
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/java/build_1.4.xml",
|
123
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/java/classes/js.jar",
|
124
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/java/src/JsDebugRun.java",
|
125
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/java/src/JsRun.java",
|
126
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/jsdebug.jar",
|
127
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/jsrun.jar",
|
128
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/jsrun.sh",
|
129
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl",
|
130
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl",
|
131
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/class.tmpl",
|
132
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/index.tmpl",
|
133
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/publish.js",
|
134
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/default.css",
|
135
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/header.html",
|
136
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/index.html",
|
137
|
+
"src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/symbol.tmpl",
|
31
138
|
"test/doc_task_test.rb",
|
32
139
|
"test/generator_test.rb",
|
33
140
|
"test/input/bar/foo.js",
|
@@ -0,0 +1,183 @@
|
|
1
|
+
======================================================================
|
2
|
+
|
3
|
+
DESCRIPTION:
|
4
|
+
|
5
|
+
This is the source code for JsDoc Toolkit, an automatic documentation
|
6
|
+
generation tool for JavaScript. It is written in JavaScript and is run
|
7
|
+
from a command line (or terminal) using Java and Mozilla's Rhino
|
8
|
+
JavaScript runtime engine.
|
9
|
+
|
10
|
+
Using this tool you can automatically turn JavaDoc-like comments in
|
11
|
+
your JavaScript source code into published output files, such as HTML
|
12
|
+
or XML.
|
13
|
+
|
14
|
+
For more information, to report a bug, or to browse the technical
|
15
|
+
documentation for this tool please visit the official JsDoc Toolkit
|
16
|
+
project homepage at http://code.google.com/p/jsdoc-toolkit/
|
17
|
+
|
18
|
+
For the most up-to-date documentation on JsDoc Toolkit see the
|
19
|
+
official wiki at http://code.google.com/p/jsdoc-toolkit/w/list
|
20
|
+
|
21
|
+
======================================================================
|
22
|
+
|
23
|
+
REQUIREMENTS:
|
24
|
+
|
25
|
+
JsDoc Toolkit is known to work with:
|
26
|
+
java version "1.6.0_03"
|
27
|
+
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
|
28
|
+
on Windows XP,
|
29
|
+
and java version "1.5.0_19"
|
30
|
+
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
|
31
|
+
on Mac OS X 10.5.
|
32
|
+
|
33
|
+
Other versions of java may or may not work with JsDoc Toolkit.
|
34
|
+
|
35
|
+
======================================================================
|
36
|
+
|
37
|
+
USAGE:
|
38
|
+
|
39
|
+
Running JsDoc Toolkit requires you to have Java installed on your
|
40
|
+
computer. For more information see http://www.java.com/getjava/
|
41
|
+
|
42
|
+
Before running the JsDoc Toolkit app you should change your current
|
43
|
+
working directory to the jsdoc-toolkit folder. Then follow the
|
44
|
+
examples below, or as shown on the project wiki.
|
45
|
+
|
46
|
+
On a computer running Windows a valid command line to run JsDoc
|
47
|
+
Toolkit might look like this:
|
48
|
+
|
49
|
+
> java -jar jsrun.jar app\run.js -a -t=templates\jsdoc mycode.js
|
50
|
+
|
51
|
+
On Mac OS X or Linux the same command would look like this:
|
52
|
+
|
53
|
+
$ java -jar jsrun.jar app/run.js -a -t=templates/jsdoc mycode.js
|
54
|
+
|
55
|
+
The above assumes your current working directory contains jsrun.jar,
|
56
|
+
the "app" and "templates" subdirectories from the standard JsDoc
|
57
|
+
Toolkit distribution and that the relative path to the code you wish
|
58
|
+
to document is "mycode.js".
|
59
|
+
|
60
|
+
The output documentation files will be saved to a new directory named
|
61
|
+
"out" (by default) in the current directory, or if you specify a
|
62
|
+
-d=somewhere_else option, to the somewhere_else directory.
|
63
|
+
|
64
|
+
For help (usage notes) enter this on the command line:
|
65
|
+
|
66
|
+
$ java -jar jsrun.jar app/run.js --help
|
67
|
+
|
68
|
+
More information about the various command line options used by JsDoc
|
69
|
+
Toolkit are available on the project wiki.
|
70
|
+
|
71
|
+
======================================================================
|
72
|
+
|
73
|
+
RUNNING VIA SHELL SCRIPT
|
74
|
+
|
75
|
+
Avi Deitcher has contributed the file jsrun.sh with the following usage notes:
|
76
|
+
|
77
|
+
A script to simplify running jsdoc from the command-line, especially when
|
78
|
+
running from within a development or build environment such as ant.
|
79
|
+
|
80
|
+
Normally, to run jsdoc, you need a command-line as the following:
|
81
|
+
java -Djsdoc.dir=/some/long/dir/path/to/jsdoc -jar
|
82
|
+
/some/long/dir/path/to/jsdoc/jsrun.jar /some/long/dir/path/to/jsdoc/app/run.js
|
83
|
+
-t=template -r=4 /some/long/dir/path/to/my/src/code
|
84
|
+
|
85
|
+
This can get tedious to redo time and again, and difficult to use from within a build environment.
|
86
|
+
|
87
|
+
To simplify the process, jsrun.sh will automatically run this path, as well as passing through any arguments.
|
88
|
+
|
89
|
+
Usage: jsrun.sh <run.js arguments>
|
90
|
+
|
91
|
+
All <run.js arguments> will be passed through.
|
92
|
+
Additionally, jsrun.sh will take the following actions:
|
93
|
+
1) If the environment variable JSDOCDIR is set, it will add
|
94
|
+
"-Djsdoc.dir=$JSDOCDIR" to the command-line
|
95
|
+
2) If the environment variable JSDOCTEMPLATEDIR is set, it will add
|
96
|
+
"-Djsdoc.template.dir=$JSDOCTEMPLATEDIR" to the command-line
|
97
|
+
3) java with the appropriate path to jsrun.jar and run.js will be instantiated
|
98
|
+
|
99
|
+
If not variables are set, it is assumed that the path to jsrun.jar and app/ is in the current working directory.
|
100
|
+
|
101
|
+
Example:
|
102
|
+
# jsrun.sh ./src/
|
103
|
+
Assuming JSDOCDIR=/some/path/to/my/jsdoc will cause the following command to
|
104
|
+
execute:
|
105
|
+
java -Djsdoc.dir=/some/path/to/my/jsdoc -jar /some/path/to/my/jsdoc/jsrun.jar
|
106
|
+
/some/path/to/my/jsdoc/app/run.js ./src/
|
107
|
+
|
108
|
+
======================================================================
|
109
|
+
|
110
|
+
TESTING:
|
111
|
+
|
112
|
+
To run the suite of unit tests included with JsDoc Toolkit enter this
|
113
|
+
on the command line:
|
114
|
+
|
115
|
+
$ java -jar jsrun.jar app/run.js -T
|
116
|
+
|
117
|
+
To see a dump of the internal data structure that JsDoc Toolkit has
|
118
|
+
built from your source files use this command:
|
119
|
+
|
120
|
+
$ java -jar jsrun.jar app/run.js mycode.js -Z
|
121
|
+
|
122
|
+
======================================================================
|
123
|
+
|
124
|
+
LICENSE:
|
125
|
+
|
126
|
+
JSDoc.pm
|
127
|
+
|
128
|
+
This project is based on the JSDoc.pm tool, created by Michael
|
129
|
+
Mathews and Gabriel Reid. More information on JsDoc.pm can
|
130
|
+
be found on the JSDoc.pm homepage: http://jsdoc.sourceforge.net/
|
131
|
+
|
132
|
+
Complete documentation on JsDoc Toolkit can be found on the project
|
133
|
+
wiki at http://code.google.com/p/jsdoc-toolkit/w/list
|
134
|
+
|
135
|
+
Rhino
|
136
|
+
|
137
|
+
Rhino (JavaScript in Java) is open source and licensed by Mozilla
|
138
|
+
under the MPL 1.1 or later/GPL 2.0 or later licenses, the text of
|
139
|
+
which is available at http://www.mozilla.org/MPL/
|
140
|
+
|
141
|
+
You can obtain the source code for Rhino from the Mozilla web site at
|
142
|
+
http://www.mozilla.org/rhino/download.html
|
143
|
+
|
144
|
+
JsDoc Toolkit is a larger work that uses the Rhino JavaScript engine
|
145
|
+
but is not derived from it in any way. The Rhino library is used
|
146
|
+
without modification and without any claims whatsoever.
|
147
|
+
|
148
|
+
The Rhino Debugger
|
149
|
+
|
150
|
+
You can obtain more information about the Rhino Debugger from the
|
151
|
+
Mozilla web site at http://www.mozilla.org/rhino/debugger.html
|
152
|
+
|
153
|
+
JsDoc Toolkit is a larger work that uses the Rhino Debugger but
|
154
|
+
is not derived from it in any way. The Rhino Debugger is used
|
155
|
+
without modification and without any claims whatsoever.
|
156
|
+
|
157
|
+
JsDoc Toolkit
|
158
|
+
|
159
|
+
All code specific to JsDoc Toolkit are free, open source and licensed
|
160
|
+
for use under the X11/MIT License.
|
161
|
+
|
162
|
+
JsDoc Toolkit is Copyright (c)2009 Michael Mathews <micmath@gmail.com>
|
163
|
+
|
164
|
+
This program is free software; you can redistribute it and/or
|
165
|
+
modify it under the terms below.
|
166
|
+
|
167
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
168
|
+
a copy of this software and associated documentation files (the
|
169
|
+
"Software"), to deal in the Software without restriction, including
|
170
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
171
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
172
|
+
permit persons to whom the Software is furnished to do so, subject to
|
173
|
+
the following conditions: The above copyright notice and this
|
174
|
+
permission notice must be included in all copies or substantial
|
175
|
+
portions of the Software.
|
176
|
+
|
177
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
178
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
179
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
180
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
181
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
182
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
183
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
IO.include("frame/Opt.js");
|
2
|
+
IO.include("frame/Chain.js");
|
3
|
+
IO.include("frame/Link.js");
|
4
|
+
IO.include("frame/String.js");
|
5
|
+
IO.include("frame/Hash.js");
|
6
|
+
IO.include("frame/Namespace.js");
|
7
|
+
//IO.include("frame/Reflection.js");
|
8
|
+
|
9
|
+
/** A few helper functions to make life a little easier. */
|
10
|
+
|
11
|
+
function defined(o) {
|
12
|
+
return (o !== undefined);
|
13
|
+
}
|
14
|
+
|
15
|
+
function copy(o) { // todo check for circular refs
|
16
|
+
if (o == null || typeof(o) != 'object') return o;
|
17
|
+
var c = new o.constructor();
|
18
|
+
for(var p in o) c[p] = copy(o[p]);
|
19
|
+
return c;
|
20
|
+
}
|
21
|
+
|
22
|
+
function isUnique(arr) {
|
23
|
+
var l = arr.length;
|
24
|
+
for(var i = 0; i < l; i++ ) {
|
25
|
+
if (arr.lastIndexOf(arr[i]) > i) return false;
|
26
|
+
}
|
27
|
+
return true;
|
28
|
+
}
|
29
|
+
|
30
|
+
/** Returns the given string with all regex meta characters backslashed. */
|
31
|
+
RegExp.escapeMeta = function(str) {
|
32
|
+
return str.replace(/([$^\\\/()|?+*\[\]{}.-])/g, "\\$1");
|
33
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
/**@constructor*/
|
2
|
+
function ChainNode(object, link) {
|
3
|
+
this.value = object;
|
4
|
+
this.link = link; // describes this node's relationship to the previous node
|
5
|
+
}
|
6
|
+
|
7
|
+
/**@constructor*/
|
8
|
+
function Chain(valueLinks) {
|
9
|
+
this.nodes = [];
|
10
|
+
this.cursor = -1;
|
11
|
+
|
12
|
+
if (valueLinks && valueLinks.length > 0) {
|
13
|
+
this.push(valueLinks[0], "//");
|
14
|
+
for (var i = 1, l = valueLinks.length; i < l; i+=2) {
|
15
|
+
this.push(valueLinks[i+1], valueLinks[i]);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
Chain.prototype.push = function(o, link) {
|
21
|
+
if (this.nodes.length > 0 && link) this.nodes.push(new ChainNode(o, link));
|
22
|
+
else this.nodes.push(new ChainNode(o));
|
23
|
+
}
|
24
|
+
|
25
|
+
Chain.prototype.unshift = function(o, link) {
|
26
|
+
if (this.nodes.length > 0 && link) this.nodes[0].link = link;
|
27
|
+
this.nodes.unshift(new ChainNode(o));
|
28
|
+
this.cursor++;
|
29
|
+
}
|
30
|
+
|
31
|
+
Chain.prototype.get = function() {
|
32
|
+
if (this.cursor < 0 || this.cursor > this.nodes.length-1) return null;
|
33
|
+
return this.nodes[this.cursor];
|
34
|
+
}
|
35
|
+
|
36
|
+
Chain.prototype.first = function() {
|
37
|
+
this.cursor = 0;
|
38
|
+
return this.get();
|
39
|
+
}
|
40
|
+
|
41
|
+
Chain.prototype.last = function() {
|
42
|
+
this.cursor = this.nodes.length-1;
|
43
|
+
return this.get();
|
44
|
+
}
|
45
|
+
|
46
|
+
Chain.prototype.next = function() {
|
47
|
+
this.cursor++;
|
48
|
+
return this.get();
|
49
|
+
}
|
50
|
+
|
51
|
+
Chain.prototype.prev = function() {
|
52
|
+
this.cursor--;
|
53
|
+
return this.get();
|
54
|
+
}
|
55
|
+
|
56
|
+
Chain.prototype.toString = function() {
|
57
|
+
var string = "";
|
58
|
+
for (var i = 0, l = this.nodes.length; i < l; i++) {
|
59
|
+
if (this.nodes[i].link) string += " -("+this.nodes[i].link+")-> ";
|
60
|
+
string += this.nodes[i].value.toString();
|
61
|
+
}
|
62
|
+
return string;
|
63
|
+
}
|
64
|
+
|
65
|
+
Chain.prototype.joinLeft = function() {
|
66
|
+
var result = "";
|
67
|
+
for (var i = 0, l = this.cursor; i < l; i++) {
|
68
|
+
if (result && this.nodes[i].link) result += this.nodes[i].link;
|
69
|
+
result += this.nodes[i].value.toString();
|
70
|
+
}
|
71
|
+
return result;
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
/* USAGE:
|
76
|
+
|
77
|
+
var path = "one/two/three.four/five-six";
|
78
|
+
var pathChain = new Chain(path.split(/([\/.-])/));
|
79
|
+
print(pathChain);
|
80
|
+
|
81
|
+
var lineage = new Chain();
|
82
|
+
lineage.push("Port");
|
83
|
+
lineage.push("Les", "son");
|
84
|
+
lineage.push("Dawn", "daughter");
|
85
|
+
lineage.unshift("Purdie", "son");
|
86
|
+
|
87
|
+
print(lineage);
|
88
|
+
|
89
|
+
// walk left
|
90
|
+
for (var node = lineage.last(); node !== null; node = lineage.prev()) {
|
91
|
+
print("< "+node.value);
|
92
|
+
}
|
93
|
+
|
94
|
+
// walk right
|
95
|
+
var node = lineage.first()
|
96
|
+
while (node !== null) {
|
97
|
+
print(node.value);
|
98
|
+
node = lineage.next();
|
99
|
+
if (node && node.link) print("had a "+node.link+" named");
|
100
|
+
}
|
101
|
+
|
102
|
+
*/
|