Skip to content

Commit 967b4b0

Browse files
committed
document mustNotHaveDescription option for tag plugins (#56)
1 parent 5197e30 commit 967b4b0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

about-plugins.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,13 @@ <h4 id="the-dictionary">The Dictionary</h4>
221221
<li><code>defineTag(title, opts)</code>: Used to define tags. The first parameter is the name of the tag (for example, <code>param</code> or <code>overview</code>).
222222
The second is an object containing options for the tag. You can include any of the following options; the default value for each option is <code>false</code>:
223223
<ul>
224-
<li><code>mustHaveValue (boolean)</code>: Set to <code>true</code> if the tag must have a value (such as <code>TheName</code> in <code>@name TheName</code>).</li>
225-
<li><code>mustNotHaveValue (boolean)</code>: Set to <code>true</code> if the tag must not have a value.</li>
226224
<li><code>canHaveType (boolean)</code>: Set to <code>true</code> if the tag text can include a type expression (such as <code>{string}</code> in <code>@param {string} name - Description</code>).</li>
227225
<li><code>canHaveName (boolean)</code>: Set to <code>true</code> if the tag text can include a name (such as <code>name</code> in <code>@param {string} name - Description</code>).</li>
228226
<li><code>isNamespace (boolean)</code>: Set to <code>true</code> if the tag should be applied to the doclet&#39;s longname as a namespace. For example, the
229227
<code>@module</code> tag sets this option to <code>true</code>, and using the tag <code>@module myModuleName</code> results in the longname <code>module:myModuleName</code>.</li>
228+
<li><code>mustHaveValue (boolean)</code>: Set to <code>true</code> if the tag must have a value (such as <code>TheName</code> in <code>@name TheName</code>).</li>
229+
<li><code>mustNotHaveDescription (boolean)</code>: Set to <code>true</code> if the tag may have a value but must not have a description (such as <code>TheDescription</code> in <code>@tag {typeExpr} TheDescription</code>).</li>
230+
<li><code>mustNotHaveValue (boolean)</code>: Set to <code>true</code> if the tag must not have a value.</li>
230231
<li><code>onTagged (function)</code>: A callback function executed when the tag is found. The function is passed two parameters: the doclet and the tag object.</li>
231232
</ul>
232233
</li>

content/en/about-plugins.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,12 @@ exports.defineTags = function(dictionary) {
219219
The dictionary provides the following methods:
220220

221221
+ `defineTag(title, opts)`: Used to define tags. The first parameter is the name of the tag (for example, `param` or `overview`). The second is an object containing options for the tag. You can include any of the following options; the default value for each option is `false`:
222-
+ `mustHaveValue (boolean)`: Set to `true` if the tag must have a value (such as `TheName` in `@name TheName`).
223-
+ `mustNotHaveValue (boolean)`: Set to `true` if the tag must not have a value.
224222
+ `canHaveType (boolean)`: Set to `true` if the tag text can include a type expression (such as `{string}` in `@param {string} name - Description`).
225223
+ `canHaveName (boolean)`: Set to `true` if the tag text can include a name (such as `name` in `@param {string} name - Description`).
226224
+ `isNamespace (boolean)`: Set to `true` if the tag should be applied to the doclet's longname as a namespace. For example, the `@module` tag sets this option to `true`, and using the tag `@module myModuleName` results in the longname `module:myModuleName`.
225+
+ `mustHaveValue (boolean)`: Set to `true` if the tag must have a value (such as `TheName` in `@name TheName`).
226+
+ `mustNotHaveDescription (boolean)`: Set to `true` if the tag may have a value but must not have a description (such as `TheDescription` in `@tag {typeExpr} TheDescription`).
227+
+ `mustNotHaveValue (boolean)`: Set to `true` if the tag must not have a value.
227228
+ `onTagged (function)`: A callback function executed when the tag is found. The function is passed two parameters: the doclet and the tag object.
228229
+ `lookUp(tagName)`: Retrieve a tag object by name. Returns the tag object, including its options, or `false` if the tag is not defined.
229230
+ `isNamespace(tagName)`: Returns `true` if the tag is applied to a doclet's longname as a namespace.

0 commit comments

Comments
 (0)