Skip to content

Commit 8aa5358

Browse files
committed
docs: Rebuild HTML
1 parent babfab0 commit 8aa5358

File tree

85 files changed

+570
-929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+570
-929
lines changed

about-block-inline-tags.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ <h2 id="examples">Examples</h2>
5555
Shoe.prototype.setColor = function(color) {
5656
// ...
5757
};
58-
</code></pre>
59-
</figure>
58+
</code></pre></figure>
6059
<p>You can use inline tags within a description, as shown above, or within a block tag, as shown below:</p>
6160
<figure>
6261
<figcaption>Inline tag used within a block tag</figcaption><pre class="prettyprint lang-js"><code>/**
@@ -68,8 +67,7 @@ <h2 id="examples">Examples</h2>
6867
Shoe.prototype.setColor = function(color) {
6968
// ...
7069
};
71-
</code></pre>
72-
</figure>
70+
</code></pre></figure>
7371
<p>When you use multiple block tags in a JSDoc comment, they must be separated by line breaks:</p>
7472
<figure>
7573
<figcaption>Multiple block tags separated by line breaks</figcaption><pre class="prettyprint lang-js"><code>/**
@@ -81,13 +79,11 @@ <h2 id="examples">Examples</h2>
8179
Shoe.prototype.setLaceType = function(color, type) {
8280
// ...
8381
};
84-
</code></pre>
85-
</figure>
82+
</code></pre></figure>
8683
</article>
8784
<footer>
8885
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">
89-
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" />
90-
</a>
86+
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" /></a>
9187
<br> Copyright &#169; 2011-2017 the
9288
<a href="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the JSDoc 3 documentation project.
9389
<br> This website is <a href="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">

about-commandline.html

Lines changed: 25 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ <h2>Table of Contents</h2>
3535
<pre class="prettyprint"><code>/path/to/jsdoc yourSourceCodeFile.js anotherSourceCodeFile.js ...
3636
</code></pre>
3737
<p>where <code>...</code> are paths to other files to generate documentation for.</p>
38-
<p>Additionally, one may provide the path to a <a href="http://daringfireball.net/projects/markdown/">Markdown file</a> (ending in &quot;.md&quot;) or a file named
39-
&quot;README&quot;, and this will be added to the documentation on the front page. See <a href="about-including-readme.html">these
38+
<p>Additionally, one may provide the path to a <a href="http://daringfireball.net/projects/markdown/">Markdown file</a> (ending in <code>.md</code>) or a file named
39+
<code>README</code>, and this will be added to the documentation on the front page. See <a href="about-including-readme.html">these
4040
instructions</a>.</p>
4141
<p>JSDoc supports a number of command-line options, many of which have both long and short forms. Alternatively, the command-line options may be <a href="about-configuring-jsdoc.html">specified in a configuration file</a> given to JSDoc. The command-line options are:</p>
4242
<table>
@@ -48,107 +48,87 @@ <h2>Table of Contents</h2>
4848
</thead>
4949
<tbody>
5050
<tr>
51-
<td><code>-a &lt;value&gt;</code>, <code>--access &lt;value&gt;</code>
52-
</td>
51+
<td><code>-a &lt;value&gt;</code>, <code>--access &lt;value&gt;</code></td>
5352
<td>Only display symbols with the given <code>access</code> property: <code>private</code>, <code>protected</code>, <code>public</code>, or <code>undefined</code>,
5453
or <code>all</code> for all access levels. By default, all except <code>private</code> symbols are shown.</td>
5554
</tr>
5655
<tr>
57-
<td><code>-c &lt;value&gt;</code>, <code>--configure &lt;value&gt;</code>
58-
</td>
56+
<td><code>-c &lt;value&gt;</code>, <code>--configure &lt;value&gt;</code></td>
5957
<td>The path to a JSDoc <a href="about-configuring-jsdoc.html">configuration file</a>. Defaults to <code>conf.json</code> or <code>conf.json.EXAMPLE</code> in the directory where JSDoc is installed.</td>
6058
</tr>
6159
<tr>
62-
<td><code>-d &lt;value&gt;</code>, <code>--destination &lt;value&gt;</code>
63-
</td>
60+
<td><code>-d &lt;value&gt;</code>, <code>--destination &lt;value&gt;</code></td>
6461
<td>The path to the output folder for the generated documentation. For JSDoc&#39;s built-in Haruki template, use <code>console</code> to dump data to the console.
6562
Defaults to <code>./out</code>.</td>
6663
</tr>
6764
<tr>
68-
<td><code>--debug</code>
69-
</td>
65+
<td><code>--debug</code></td>
7066
<td>Log information that can help debug issues in JSDoc itself.</td>
7167
</tr>
7268
<tr>
73-
<td><code>-e &lt;value&gt;</code>, <code>--encoding &lt;value&gt;</code>
74-
</td>
69+
<td><code>-e &lt;value&gt;</code>, <code>--encoding &lt;value&gt;</code></td>
7570
<td>Assume this encoding when reading all source files. Defaults to <code>utf8</code>.</td>
7671
</tr>
7772
<tr>
78-
<td><code>-h</code>, <code>--help</code>
79-
</td>
73+
<td><code>-h</code>, <code>--help</code></td>
8074
<td>Display information about JSDoc&#39;s command-line options, then exit.</td>
8175
</tr>
8276
<tr>
83-
<td><code>--match &lt;value&gt;</code>
84-
</td>
77+
<td><code>--match &lt;value&gt;</code></td>
8578
<td>Only run tests whose names contain <code>value</code>.</td>
8679
</tr>
8780
<tr>
88-
<td><code>--nocolor</code>
89-
</td>
81+
<td><code>--nocolor</code></td>
9082
<td>When running tests, do not use color in the console output. On Windows, this option is enabled by default.</td>
9183
</tr>
9284
<tr>
93-
<td><code>-p</code>, <code>--private</code>
94-
</td>
85+
<td><code>-p</code>, <code>--private</code></td>
9586
<td>Include symbols marked with the <a href="tags-private.html"><code>@private</code> tag</a> in the generated documentation. By default, private symbols are
9687
not included.</td>
9788
</tr>
9889
<tr>
99-
<td><code>-P</code>, <code>--package</code>
100-
</td>
90+
<td><code>-P</code>, <code>--package</code></td>
10191
<td>The <code>package.json</code> file that contains the project name, version, and other details. Defaults to the first <code>package.json</code> file found
10292
in the source paths.</td>
10393
</tr>
10494
<tr>
105-
<td><code>--pedantic</code>
106-
</td>
95+
<td><code>--pedantic</code></td>
10796
<td>Treat errors as fatal errors, and treat warnings as errors. Defaults to <code>false</code>.</td>
10897
</tr>
10998
<tr>
110-
<td><code>-q &lt;value&gt;</code>, <code>--query &lt;value&gt;</code>
111-
</td>
99+
<td><code>-q &lt;value&gt;</code>, <code>--query &lt;value&gt;</code></td>
112100
<td>A query string to parse and store in the global variable <code>env.opts.query</code>. Example: <code>foo=bar&amp;baz=true</code>.</td>
113101
</tr>
114102
<tr>
115-
<td><code>-r</code>, <code>--recurse</code>
116-
</td>
103+
<td><code>-r</code>, <code>--recurse</code></td>
117104
<td>Recurse into subdirectories when scanning for source files and tutorials.</td>
118105
</tr>
119106
<tr>
120-
<td><code>-R</code>, <code>--readme</code>
121-
</td>
107+
<td><code>-R</code>, <code>--readme</code></td>
122108
<td>The <code>README.md</code> file to include in the generated documentation. Defaults to the first <code>README.md</code> file found in the source paths.</td>
123109
</tr>
124110
<tr>
125-
<td><code>-t &lt;value&gt;</code>, <code>--template &lt;value&gt;</code>
126-
</td>
111+
<td><code>-t &lt;value&gt;</code>, <code>--template &lt;value&gt;</code></td>
127112
<td>The path to the template to use for generating output. Defaults to <code>templates/default</code>, JSDoc&#39;s built-in default template.</td>
128113
</tr>
129114
<tr>
130-
<td><code>-T</code>, <code>--test</code>
131-
</td>
115+
<td><code>-T</code>, <code>--test</code></td>
132116
<td>Run JSDoc&#39;s test suite, and print the results to the console.</td>
133117
</tr>
134118
<tr>
135-
<td><code>-u &lt;value&gt;</code>, <code>--tutorials &lt;value&gt;</code>
136-
</td>
119+
<td><code>-u &lt;value&gt;</code>, <code>--tutorials &lt;value&gt;</code></td>
137120
<td>Directory in which JSDoc should search for tutorials. If omitted, no tutorial pages will be generated. See the <a href="about-tutorials.html">tutorial instructions</a> for more information.</td>
138121
</tr>
139122
<tr>
140-
<td><code>-v</code>, <code>--version</code>
141-
</td>
123+
<td><code>-v</code>, <code>--version</code></td>
142124
<td>Displays JSDoc&#39;s version number, then exits.</td>
143125
</tr>
144126
<tr>
145-
<td><code>--verbose</code>
146-
</td>
127+
<td><code>--verbose</code></td>
147128
<td>Log detailed information to the console as JSDoc runs. Defaults to <code>false</code>.</td>
148129
</tr>
149130
<tr>
150-
<td><code>-X</code>, <code>--explain</code>
151-
</td>
131+
<td><code>-X</code>, <code>--explain</code></td>
152132
<td>Dump all doclets to the console in JSON format, then exit.</td>
153133
</tr>
154134
</tbody>
@@ -157,21 +137,18 @@ <h2 id="examples">Examples</h2>
157137
<p>Generate documentation for files in the <code>./src</code> directory, using the configuration file
158138
<code>/path/to/my/conf.json</code>, and save the output in the <code>./docs</code> directory:</p>
159139
<figure><pre class="prettyprint"><code>/path/to/jsdoc src -r -c /path/to/my/conf.json -d docs
160-
</code></pre>
161-
</figure>
140+
</code></pre></figure>
162141
<p>Run all JSDoc tests whose names include the word <code>tag</code>, and log information about each test:</p>
163142
<figure><pre class="prettyprint"><code>/path/to/jsdoc -T --match tag --verbose
164-
</code></pre>
165-
</figure>
143+
</code></pre></figure>
166144
<h2 id="related-links">Related Links</h2>
167145
<p>
168146
<a href="about-configuring-jsdoc.html">Configuring JSDoc with a configuration file</a>
169147
</p>
170148
</article>
171149
<footer>
172150
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">
173-
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" />
174-
</a>
151+
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" /></a>
175152
<br> Copyright &#169; 2011-2017 the
176153
<a href="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the JSDoc 3 documentation project.
177154
<br> This website is <a href="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">

about-configuring-default-template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ <h2 id="related-links">Related Links</h2>
103103
</article>
104104
<footer>
105105
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">
106-
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" />
107-
</a>
106+
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" /></a>
108107
<br> Copyright &#169; 2011-2017 the
109108
<a href="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the JSDoc 3 documentation project.
110109
<br> This website is <a href="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">

about-configuring-jsdoc.html

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,14 @@ <h2 id="configuration-file-formats">Configuration file formats</h2>
6969
<figcaption>JSON configuration file</figcaption><pre class="prettyprint lang-js"><code>{
7070
"plugins": ["plugins/markdown"]
7171
}
72-
</code></pre>
73-
</figure>
72+
</code></pre></figure>
7473
<figure>
7574
<figcaption>JavaScript configuration file</figcaption><pre class="prettyprint lang-js"><code>'use strict';
7675

7776
module.exports = {
7877
plugins: ['plugins/markdown']
7978
};
80-
</code></pre>
81-
</figure>
79+
</code></pre></figure>
8280
<p>For a more comprehensive example of a JSON configuration file, see the file
8381
<a href="https://github.com/jsdoc3/jsdoc/blob/master/conf.json.EXAMPLE"><code>conf.json.EXAMPLE</code></a>.</p>
8482
<h2 id="default-configuration-options">Default configuration options</h2>
@@ -100,8 +98,7 @@ <h2 id="default-configuration-options">Default configuration options</h2>
10098
"monospaceLinks": false
10199
}
102100
}
103-
</code></pre>
104-
</figure>
101+
</code></pre></figure>
105102
<p>This means:</p>
106103
<ul>
107104
<li>No plugins are loaded (<code>plugins</code>).</li>
@@ -128,8 +125,7 @@ <h2 id="configuring-plugins">Configuring plugins</h2>
128125
"plugins/summarize"
129126
]
130127
}
131-
</code></pre>
132-
</figure>
128+
</code></pre></figure>
133129
<p>See the <a href="about-plugins.html">plugin reference</a> for further information, and look in <a href="https://github.com/jsdoc3/jsdoc/tree/master/plugins">JSDoc&#39;s <code>plugins</code>
134130
directory</a> for the plugins built into JSDoc.</p>
135131
<p>You can configure the Markdown plugin by adding a <code>markdown</code> object to your configuration file. See
@@ -141,8 +137,7 @@ <h2 id="specifying-recursion-depth">Specifying recursion depth</h2>
141137
<figure><pre class="prettyprint lang-js"><code>{
142138
"recurseDepth": 10
143139
}
144-
</code></pre>
145-
</figure>
140+
</code></pre></figure>
146141
<h2 id="specifying-input-files">Specifying input files</h2>
147142
<p>The <code>source</code> set of options, in combination with paths given to JSDoc on the command line, determines the set of input files that JSDoc uses to generate
148143
documentation.</p>
@@ -154,16 +149,15 @@ <h2 id="specifying-input-files">Specifying input files</h2>
154149
"excludePattern": "(^|\\/|\\\\)_"
155150
}
156151
}
157-
</code></pre>
158-
</figure>
152+
</code></pre></figure>
159153
<ul>
160154
<li><code>source.include</code>: An optional array of paths that contain files for which JSDoc should generate documentation. The paths given to JSDoc on the command
161155
line are combined with these paths. You can use the <a href="about-commandline.html"><code>-r</code> command-line option</a> to recurse into subdirectories.</li>
162156
<li><code>source.exclude</code>: An optional array of paths that JSDoc should ignore. In JSDoc 3.3.0 and later, this array may include subdirectories of the paths
163157
in <code>source.include</code>.</li>
164158
<li><code>source.includePattern</code>: An optional string, interpreted as a regular expression. If present, all filenames must match this regular expression to
165-
be processed by JSDoc. By default, this option is set to &quot;.+&#92;.js(doc|x)?$&quot;, meaning that only files with the extensions <code>.js</code>, <code>.jsdoc</code>,
166-
and
159+
be processed by JSDoc. By default, this option is set to <code>.+&amp;#92;.js(doc|x)?$</code>, meaning that only files with the extensions <code>.js</code>,
160+
<code>.jsdoc</code>, and
167161
<code>.jsx</code> will be processed.</li>
168162
<li><code>source.excludePattern</code>: An optional string, interpreted as a regular expression. If present, any file matching this regular expression will be
169163
ignored. By default, this option is set so that files beginning with an underscore (or anything under a directory beginning with an underscore) is ignored.
@@ -188,8 +182,7 @@ <h2 id="specifying-input-files">Specifying input files</h2>
188182
|- a.js
189183
|- ignore.js
190184
|- d.txt
191-
</code></pre>
192-
</figure>
185+
</code></pre></figure>
193186
<p>In addition, suppose your <code>conf.json</code> file looks like this example:</p>
194187
<figure><pre class="prettyprint lang-js"><code>{
195188
"source": {
@@ -199,17 +192,13 @@ <h2 id="specifying-input-files">Specifying input files</h2>
199192
"excludePattern": "(^|\\/|\\\\)_"
200193
}
201194
}
202-
</code></pre>
203-
</figure>
195+
</code></pre></figure>
204196
<p>If you run <code>jsdoc myProject/c.js -c /path/to/my/conf.json -r</code> from the file containing the
205197
<code>myProject</code> folder, JSDoc will generate documentation for the following files:</p>
206198
<ul>
207-
<li><code>myProject/a.js</code>
208-
</li>
209-
<li><code>myProject/c.js</code>
210-
</li>
211-
<li><code>myProject/lib/a.js</code>
212-
</li>
199+
<li><code>myProject/a.js</code></li>
200+
<li><code>myProject/c.js</code></li>
201+
<li><code>myProject/lib/a.js</code></li>
213202
</ul>
214203
<p>Here&#39;s why:</p>
215204
<ol>
@@ -238,8 +227,7 @@ <h2 id="specifying-the-source-type">Specifying the source type</h2>
238227
<figure><pre class="prettyprint lang-js"><code>{
239228
"sourceType": "module"
240229
}
241-
</code></pre>
242-
</figure>
230+
</code></pre></figure>
243231
<h2 id="incorporating-command-line-options-into-the-configuration-file">Incorporating command-line options into the configuration file</h2>
244232
<p>You can put many of JSDoc&#39;s <a href="about-commandline.html">command-line options</a> into the configuration file instead of specifying them on the command
245233
line. To do this, add the long names of the relevant options into an
@@ -254,8 +242,7 @@ <h2 id="incorporating-command-line-options-into-the-configuration-file">Incorpor
254242
"tutorials": "path/to/tutorials", // same as -u path/to/tutorials
255243
}
256244
}
257-
</code></pre>
258-
</figure>
245+
</code></pre></figure>
259246
<p>By using the <code>source.include</code> and <code>opts</code> options, you can put almost all of the arguments to JSDoc in a configuration file, so that the
260247
command line reduces to:</p>
261248
<pre class="prettyprint"><code>jsdoc -c /path/to/conf.json
@@ -269,8 +256,7 @@ <h2 id="configuring-tags-and-tag-dictionaries">Configuring tags and tag dictiona
269256
"dictionaries": ["jsdoc","closure"]
270257
}
271258
}
272-
</code></pre>
273-
</figure>
259+
</code></pre></figure>
274260
<p>The <code>tags.allowUnknownTags</code> property affects how JSDoc handles unrecognized tags. If you set this option to <code>false</code>, and JSDoc finds a
275261
tag that it does not recognize (for example, <code>@foo</code>), JSDoc logs a warning. By default, this option is set to <code>true</code>. In JSDoc 3.4.1
276262
and later, you can also set this property to an array of tag names that JSDoc should allow (for example, <code>[&quot;foo&quot;,&quot;bar&quot;]</code>).</p>
@@ -296,8 +282,7 @@ <h2 id="configuring-templates">Configuring templates</h2>
296282
"monospaceLinks": false
297283
}
298284
}
299-
</code></pre>
300-
</figure>
285+
</code></pre></figure>
301286
<p>If <code>templates.monospaceLinks</code> is true, all link text from the <a href="tags-inline-link.html">inline <code>{@link}</code>
302287
tag</a> will be rendered in monospace.</p>
303288
<p>If <code>templates.cleverLinks</code> is true, <code>{@link asdf}</code> will be rendered in normal font if <code>asdf</code> is a URL, and monospace otherwise.
@@ -318,8 +303,7 @@ <h2 id="related-links">Related Links</h2>
318303
</article>
319304
<footer>
320305
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">
321-
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" />
322-
</a>
306+
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg" width="80" height="15" /></a>
323307
<br> Copyright &#169; 2011-2017 the
324308
<a href="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the JSDoc 3 documentation project.
325309
<br> This website is <a href="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">

0 commit comments

Comments
 (0)