|
1 | 1 | <!--{
|
2 |
| - "title": "Readme", |
3 |
| - "out": "about-jsdoc3.html", |
4 |
| - "description": "Usage instructions and basic info about JSDoc 3" |
| 2 | + "title" : "Readme", |
| 3 | + "out" : "about-jsdoc3.html", |
| 4 | + "description" : "Usage instructions and basic info about JSDoc 3" |
5 | 5 | }-->
|
6 | 6 |
|
7 |
| -<h1> |
8 |
| - JSDoc 3 |
9 |
| -</h1> |
10 |
| - |
11 |
| -<p> |
12 |
| - An inline API documentation processor for JavaScript. JSDoc 3 is intended to be an upgrade to JsDoc Toolkit (JSDoc 2). |
13 |
| -</p> |
14 |
| - |
15 |
| -<h3> |
16 |
| - Pull Requesters: Please read HOW<em>TO</em>CONTRIBUTE.md |
17 |
| -</h3> |
18 |
| - |
19 |
| -<h2> |
20 |
| - Installation |
21 |
| -</h2> |
22 |
| - |
23 |
| -<p> |
24 |
| - Download a copy of JSDoc 3 from the official Git Hub repository here: <a href="https://github.com/jsdoc3/jsdoc">https://github.com/jsdoc3/jsdoc</a> |
25 |
| -</p> |
26 |
| - |
27 |
| -<p> |
28 |
| - To test that jsdoc is working, change your working directory to the jsdoc folder and run the following command on Windows: |
29 |
| -</p> |
30 |
| - |
31 |
| -{{#example}}Example |
32 |
| -jsdoc -T |
33 |
| -{{/example}} |
34 |
| - |
35 |
| -<p> |
36 |
| - ... or on a Max OSX or *nix platform: |
37 |
| -</p> |
38 |
| - |
39 |
| -{{#example}}Example |
40 |
| -./jsdoc -T |
41 |
| -{{/example}} |
42 |
| - |
43 |
| -<p> |
44 |
| - If you can't get the short-form commands to work, try invoking Java directly: |
45 |
| -</p> |
46 |
| - |
47 |
| -{{#example}}Example |
48 |
| -java -cp lib/js.jar org.mozilla.javascript.tools.shell.Main \ |
49 |
| --modules nodejs_modules -modules rhino_modules -modules . \ |
50 |
| -jsdoc.js -T |
51 |
| -{{/example}} |
52 |
| - |
53 |
| -<h2> |
54 |
| - Usage |
55 |
| -</h2> |
56 |
| - |
57 |
| -<p> |
58 |
| - This example assumes that your working directory is the jsdoc application base directory: |
59 |
| -</p> |
60 |
| - |
61 |
| - |
62 |
| -{{#example}}Example |
63 |
| -./jsdoc yourSourceCodeFile.js |
64 |
| -{{/example}} |
65 |
| - |
66 |
| -<p> |
67 |
| - For help regarding the supported commandline options use the --help option. |
68 |
| -</p> |
69 |
| - |
70 |
| -{{#example}}Example |
71 |
| -./jsdoc --help |
72 |
| -{{/example}} |
73 |
| - |
74 |
| -<p> |
75 |
| - Generated documentation will appear in the folder specified by the --destination option, or in a folder named "out" by default. |
76 |
| -</p> |
77 |
| - |
78 |
| -<h2> |
79 |
| - Dependencies |
80 |
| -</h2> |
81 |
| - |
82 |
| -<p> |
83 |
| - JSDoc 3 utilises the Mozilla Rhino engine, which requires Java. JSDoc 3 is known to work with version 1.6.0_24 of Java. |
84 |
| -</p> |
85 |
| - |
86 |
| -<p> |
87 |
| - JSDoc 3 uses advanced features in the Rhino application which are only available in or after the 1.7 release 3. A copy of this version of Rhino is included in JSDoc so this is not normally an issue that the user needs to be concerned with. However, in rare cases, users may have their Java CLASSPATH configured to override that included Rhino and point to some older version of Rhino instead. If this is the case, simply correct the CLASSPATH to remove the older Rhino. |
88 |
| -</p> |
89 |
| - |
90 |
| -<p> |
91 |
| - The version of rhino distributed with JSDoc 3 can be found here: https://github.com/jannon/rhino |
92 |
| -</p> |
93 |
| - |
94 |
| -<h2> |
95 |
| - Debugging |
96 |
| -</h2> |
97 |
| - |
98 |
| -<p> |
99 |
| - Rhino is not always very friendly when it comes to reporting errors in JavaScript. Luckily it comes with a full-on debugger included that can be much more useful than a simple stack trace. To invoke JSDoc with the debugger try the following command: |
100 |
| -</p> |
101 |
| - |
102 |
| - |
103 |
| -{{#example}}Example |
104 |
| -jsdoc --debug |
105 |
| -{{/example}} |
106 |
| - |
107 |
| -<p> |
108 |
| - or the long form version: |
109 |
| -</p> |
110 |
| - |
111 |
| -{{#example}}Example |
112 |
| -$ java -classpath lib/js.jar \ |
113 |
| -org.mozilla.javascript.tools.debugger.Main -debug \ |
114 |
| --modules nodejs_modules -modules rhino_modules -modules . \ |
115 |
| -jsdoc.js \ |
116 |
| -your/script.js |
117 |
| -{{/example}} |
118 |
| - |
119 |
| -<p> |
120 |
| - Note: <code>--debug</code> must be the first argument to the short form command |
121 |
| -</p> |
122 |
| - |
123 |
| -<p> |
124 |
| - This will open a debugging window. Choose "Break on Exceptions" from the "Debug" menu, then press the "Run" button. If there is an error, you should see exactly where it is in the source code. |
125 |
| -</p> |
126 |
| - |
127 |
| -<h2> |
128 |
| - See Also |
129 |
| -</h2> |
130 |
| - |
131 |
| -<p> |
132 |
| - <br> |
133 |
| - Project Documentation: <a href="http://usejsdoc.org/">http://usejsdoc.org/</a> (under development) |
134 |
| - <br> |
135 |
| - Project Documentation Source: <a href="https://github.com/micmath/micmath.github.com">https://github.com/micmath/micmath.github.com</a> |
136 |
| - <br> |
137 |
| - JSDoc User's Group: <a href="http://groups.google.com/group/jsdoc-users">http://groups.google.com/group/jsdoc-users</a> |
138 |
| - <br> |
139 |
| - JSDoc 3 Ant Task <a href="https://github.com/jannon/jsdoc3-ant-task">https://github.com/jannon/jsdoc3-ant-task</a> |
140 |
| - <br> |
141 |
| - Project Announcemnts: <a href="http://twitter.com/jsdoc3">http://twitter.com/jsdoc3</a> |
142 |
| -</p> |
143 |
| - |
144 |
| -<h2> |
145 |
| - License |
146 |
| -</h2> |
147 |
| - |
148 |
| -<p> |
149 |
| - JSDoc 3 is copyright (c) 2011 Michael Mathews <a href="mailto:micmath@gmail.com">micmath@gmail.com</a> |
150 |
| -</p> |
151 |
| - |
152 |
| -<p> |
153 |
| - See file "LICENSE.md" in this distribution for more details about terms of use. |
154 |
| -</p> |
| 7 | +<div class="about-overview" id="jsdoc3-overview"> |
| 8 | +{{#include}} |
| 9 | + Jake/extended_docs/about/about-jsdoc3 |
| 10 | +{{/include}} |
| 11 | +</div> |
0 commit comments