You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>No plugins are loaded (<code>plugins</code>).</li>
104
+
<li>If recursion is enabled with the <ahref="about-commandline.html"><code>-r</code> command-line flag</a>, JSDoc will search for files 10 levels deep (<code>recurseDepth</code>).</li>
100
105
<li>Only files ending in <code>.js</code>, <code>.jsdoc</code>, and <code>.jsx</code> will be processed (<code>source.includePattern</code>).</li>
101
106
<li>Any file starting with an underscore, or in a directory starting with an underscore, will be ignored (<code>source.excludePattern</code>).</li>
102
107
<li>JSDoc allows you to use unrecognized tags (<code>tags.allowUnknownTags</code>).</li>
<p>To enable plugins, add their paths (relative to the JSDoc folder) into the <code>plugins</code> array.</p>
116
+
<p>For example, the following JSON configuration file will enable the Markdown plugin, which converts Markdown-formatted text to HTML, and the "summarize"
117
+
plugin, which autogenerates a summary for each doclet:
118
+
</p>
119
+
<figure>
120
+
<figcaption>JSON configuration file with plugins</figcaption><preclass="prettyprint"><code>{
121
+
"plugins": [
122
+
"plugins/markdown",
123
+
"plugins/summarize"
124
+
]
125
+
}
126
+
</code></pre>
127
+
</figure>
128
+
<p>See the <ahref="about-plugins.html">plugin reference</a> for further information, and look in <ahref="https://github.com/jsdoc3/jsdoc/tree/master/plugins">JSDoc's <code>plugins</code>
129
+
directory</a> for the plugins built into JSDoc.</p>
130
+
<p>You can configure the Markdown plugin by adding a <code>markdown</code> object to your configuration file. See
131
+
<ahref="plugins-markdown.html">Configuring the Markdown Plugin</a> for details.</p>
<p>The <code>recurseDepth</code> option controls how many levels deep JSDoc will recursively search for source files and tutorials. This option is used only if
134
+
you also specify the <ahref="about-commandline.html"><code>-r</code> command-line
135
+
flag</a>, which tells JSDoc to recursively search for input files.</p>
<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
<p>When options are specified on the command line <em>and</em> in the configuration file, the command line takes precedence.</p>
214
-
<h2id="plugins">Plugins</h2>
215
-
<p>To enable plugins, add their paths (relative to the JSDoc folder) into the <code>plugins</code> array.</p>
216
-
<p>For example, the following JSON configuration file will enable the Markdown plugin, which converts Markdown-formatted text to HTML, and the "summarize"
217
-
plugin, which autogenerates a summary for each doclet:
218
-
</p>
219
-
<figure>
220
-
<figcaption>JSON configuration file with plugins</figcaption><preclass="prettyprint"><code>{
221
-
"plugins": [
222
-
"plugins/markdown",
223
-
"plugins/summarize"
224
-
]
225
-
}
226
-
</code></pre>
227
-
</figure>
228
-
<p>See the <ahref="about-plugins.html">plugin reference</a> for further information, and look in <ahref="https://github.com/jsdoc3/jsdoc/tree/master/plugins">JSDoc's <code>plugins</code>
229
-
directory</a> for the plugins built into JSDoc.</p>
230
-
<p>You can configure the Markdown plugin by adding a <code>markdown</code> object to your configuration file. See
231
-
<ahref="plugins-markdown.html">Configuring the Markdown Plugin</a> for details.</p>
<p>The options in <code>templates</code> affect the appearance and content of generated documentation. Third-party templates may not implement all of these options.
234
-
See <ahref="about-configuring-default-template.html">Configuring JSDoc's Default
235
-
Template</a> for additional options that the default template supports.</p>
236
-
<figure><preclass="prettyprint lang-js"><code>{
237
-
"templates": {
238
-
"cleverLinks": false,
239
-
"monospaceLinks": false
240
-
}
241
-
}
242
-
</code></pre>
243
-
</figure>
244
-
<p>If <code>templates.monospaceLinks</code> is true, all link text from the <ahref="tags-inline-link.html">inline <code>{@link}</code>
245
-
tag</a> will be rendered in monospace.</p>
246
-
<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.
247
-
For example, <code>{@link http://github.com}</code> will render in plain text, but <code>{@link MyNamespace.myFunction}</code> will be in monospace.</p>
248
-
<p>If <code>templates.cleverLinks</code> is true, <code>templates.monospaceLinks</code> is ignored.</p>
249
-
<h2id="tags-and-tag-dictionaries">Tags and tag dictionaries</h2>
246
+
<h2id="configuring-tags-and-tag-dictionaries">Configuring tags and tag dictionaries</h2>
250
247
<p>The options in <code>tags</code> control which JSDoc tags are allowed and how each tag is interpreted.</p>
251
248
<figure><preclass="prettyprint lang-js"><code>{
252
249
"tags": {
@@ -271,6 +268,23 @@ <h2 id="tags-and-tag-dictionaries">Tags and tag dictionaries</h2>
271
268
<code>jsdoc</code> version of the tag takes precedence.</p>
272
269
<p>If you are using JSDoc with a Closure Compiler project, and you want to avoid using tags that Closure Compiler does not recognize, change the <code>tags.dictionaries</code> setting to <code>["closure"]</code>. You can also change this setting to <code>["closure","jsdoc"]</code> if you want to allow
273
270
core JSDoc tags, but you want to ensure that Closure Compiler-specific tags are interpreted as Closure Compiler would interpret them.</p>
<p>The options in <code>templates</code> affect the appearance and content of generated documentation. Third-party templates may not implement all of these options.
273
+
See <ahref="about-configuring-default-template.html">Configuring JSDoc's Default
274
+
Template</a> for additional options that the default template supports.</p>
275
+
<figure><preclass="prettyprint lang-js"><code>{
276
+
"templates": {
277
+
"cleverLinks": false,
278
+
"monospaceLinks": false
279
+
}
280
+
}
281
+
</code></pre>
282
+
</figure>
283
+
<p>If <code>templates.monospaceLinks</code> is true, all link text from the <ahref="tags-inline-link.html">inline <code>{@link}</code>
284
+
tag</a> will be rendered in monospace.</p>
285
+
<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.
286
+
For example, <code>{@link http://github.com}</code> will render in plain text, but <code>{@link MyNamespace.myFunction}</code> will be in monospace.</p>
287
+
<p>If <code>templates.cleverLinks</code> is true, <code>templates.monospaceLinks</code> is ignored.</p>
0 commit comments