Skip to content

Commit 10245c2

Browse files
committed
note that comments must be removed from the JSON file (jsdoc/jsdoc#407)
1 parent f2de18c commit 10245c2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Jake/articles/about-configuring-jsdoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ A <a href="#example">full example</a> is provided at the end.
5858

5959
<h2 name="configuration-file-files" id="configuration-file-files">Specifying input files</h2>
6060

61-
<p>The "source" set of options, in combination with paths given to JSDoc on the command-line, determine what files JSDoc generates documentation for.</p>
61+
<p>The "source" set of options, in combination with paths given to JSDoc on the command-line, determine what files JSDoc generates documentation for. (Remove the comments before adding this example to your own .json file.)</p>
6262

6363
{{#example}}
6464
...
@@ -156,6 +156,7 @@ To do this, use the longnames of the relevant options in an "opts" section of co
156156

157157
{{#example}}opts
158158
...
159+
// You must remove the comments before adding these options to your .json file
159160
"opts": {
160161
"template": "default", // same as -t default
161162
"encoding": "utf8", // same as -e utf8
@@ -255,6 +256,7 @@ Example with all configuration options
255256
<p>Here is an example conf.json showing all possible configuration options native to the base JSDoc, along with their default values.</p>
256257

257258
{{#example}}A conf.json showcasing all the configuration options to base JSDoc.
259+
// You must remove the comments before adding these options to your .json file
258260
{
259261
"tags": {
260262
"allowUnknownTags": true

about-configuring-jsdoc.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ <h2 name="configuration-file" id="configuraton-file">Configuration File</h2>
236236

237237
<h2 name="configuration-file-files" id="configuration-file-files">Specifying input files</h2>
238238

239-
<p>The "source" set of options, in combination with paths given to JSDoc on the command-line, determine what files JSDoc generates documentation for.</p>
239+
<p>The "source" set of options, in combination with paths given to JSDoc on the command-line, determine what files JSDoc generates documentation for. (Remove the comments before adding this example to your own .json file.)</p>
240240

241241
<dl class="example">
242242
<dt></dt>
@@ -353,6 +353,7 @@ <h2 name="configuration-file-command-line" id="configuration-file-command-line">
353353
<dd>
354354
<pre class="prettyprint lang-js">
355355
...
356+
// You must remove the comments before adding these options to your .json file
356357
"opts": {
357358
"template": "default", // same as -t default
358359
"encoding": "utf8", // same as -e utf8
@@ -472,6 +473,7 @@ <h2 name="example" id="example">
472473
<dt>A conf.json showcasing all the configuration options to base JSDoc.</dt>
473474
<dd>
474475
<pre class="prettyprint lang-js">
476+
// You must remove the comments before adding these options to your .json file
475477
{
476478
"tags": {
477479
"allowUnknownTags": true

0 commit comments

Comments
 (0)