File from the test fixture:
/**
* var create = require('component');
* var component = create();
*
* @usage
*/
/**
* A mock program module, using the @module tag sets the overall
* title at the initial level setting.
*
* @module API Documents
*
* @author muji
* @version 1.1.0
* @since 1.0
* @license MIT
*
* @see https://github.com/mkdoc/mkapi mkapi
* @see https://github.com/jgm/commonmark.js commonmark
*/
/**
* Mock class, you can add an extended description of the class behaviour here.
*
* @class Component
*/
/**
* An abstract component.
*
* @constructor Component
* @inherits EventEmitter Object
*
* @author muji
* @version 1.1.0
* @since 1.0
*
* @param opts Component options.
*
* @option enabled Whether the component is initially enabled.
*/
/**
* Do foo thing with bar.
*
* @function foo
* @member
*
* @author muji
* @version 1.1.0
* @since 1.0
*
* @param {Object} [opts] An options arguments.
* @param {Function} cb Callback function.
*
* @option {Boolean} noop Dry run.
*
* @throws Error JSON parse error.
* @throws Error File create error.
*/
/**
* A static function declaration.
*
* @deprecated use create instead.
*
* @static factory
*
* @returns a new component.
*/
/**
* Create a new component.
*
* @function create
*/
/**
* Sets the BAZ variable.
*
* @property BAZ
* @default baz
*
* @author muji
* @version 1.1.0
* @since 1.0
*
*/
/**
* Sets the QUX variable.
*
* @property QUX
*/
/**
* Gets the ZAR variable.
*
* @constant ZAR
* @default foo
*/Rendered output with --level=2:
A mock program module, using the @module tag sets the overall title at the initial level setting.
- author
muji - version
1.1.0 - since
1.0 - license
MIT - mkapi
- commonmark
Mock class, you can add an extended description of the class behaviour here.
new Component(opts)An abstract component.
- author
muji - version
1.1.0 - since
1.0 optsComponent options.
enabledWhether the component is initially enabled.
Component.prototype.foo([opts], cb)Do foo thing with bar.
- author
muji - version
1.1.0 - since
1.0 optsObject An options arguments.cbFunction Callback function.
noopBoolean Dry run.
ErrorJSON parse error.ErrorFile create error.
create()Create a new component.
BAZ = baz;Sets the BAZ variable.
- author
muji - version
1.1.0 - since
1.0
QUXSets the QUX variable.
Created by mkdoc on February 8, 2017