exports.ApiDox()
August 29, 2013 · View on GitHub
Generate node.js API markdown with dox
Source: lib/apidox/index.js
exports.ApiDox()
Reference to ApiDox.
exports.create()
Create a new ApiDox.
Return:
{object}
exports.extend(ext)
Extend ApiDox.prototype.
Parameters:
{object} ext
Return:
{object} Merge result.
ApiDox()
ApiDox constructor.
Usage:
var dox = require('apidox').create();
var markdown = dox
.set('input', '/path/to/source.js')
.set('output', '/path/to/output.md')
.parse()
.convert();
Configuration:
{string} inputSource file to read{string} inputTextAlternative toinput{string|boolean} [inputTitle=input]CustomizeSource: ...link textfalse: OmitSource: ...entirely from markdownstring: Set link text (does not affect link URL)
{string} outputMarkdown file to write
Properties:
{object} anchorsKeys are object paths which already have anchors- For duplicate prevention
{array} commentsFiltered dox-provided objects to convert{string curSectionCurrent section being converted, ex. 'Klass.prototype'.{object} fileCommentFirst dox-provided comment found in the file{array} linesMarkdown lines{object} paramsCollected@parammeta indexed by method name{array} typesType names{string} descriptionFirst line{array} overflowAdditional lines
{object} returnsCollected@returnmetadata indexed by method name{array} typesType names{string} descriptionFirst line{array} overflowAdditional lines
{array} seesCollected@seelines{array} tocCollected table-of-contents metadata objects{string} titleLink title{string} urlLink URL
{array} throwsCollected@throwslines
Go: TOC
ApiDox.prototype.parse(file)
Parse the source file.
Parameters:
{string} file
Return:
{object} this
Go: TOC | ApiDox.prototype
ApiDox.prototype.convert()
Convert comments to markdown.
Return:
{string}
Go: TOC | ApiDox.prototype
—generated by apidox—