API Docs for: 0.10.0
Show:

YUIDoc Class

Defined in: lib/yuidoc.js:51
Module: yuidoc

YUIDoc main class

   var options = {
       paths: [ './lib' ],
       outdir: './out'
   };

   var Y = require('yuidoc');
   var json = (new Y.YUIDoc(options)).run();

Constructor

YUIDoc

(
  • config
)

Defined in lib/yuidoc.js:51

Parameters:

  • config Object

    The config object

Methods

_processConfig

() private

Defined in lib/yuidoc.js:129

Does post process on self.options.

_setDefaultExcludes

() private

Defined in lib/yuidoc.js:114

Always exclude these directories

parsedir

(
  • dir
)
private

Defined in lib/yuidoc.js:151

Walks the passed directory and grabs all the files recursively.

Parameters:

  • dir String

    The directory to parse the contents of.

parsefiles

(
  • dir
  • files
)
private

Defined in lib/yuidoc.js:192

Gathers all the file data and populates the filemap and dirmap hashes.

Parameters:

  • dir String

    The directory to start from.

  • files Array

    List of files to parse.

run

() Object

Defined in lib/yuidoc.js:378

Process the config, walk the file tree and write out the JSON data.

Returns:

Object:

The JSON data returned from the DocParser

runPreprocessors

() Object private

Defined in lib/yuidoc.js:250

Applies preprocessors to the data tree. This function first clones the data and operates on the clone.

Returns:

Object:

The mutated data

walk

() private

Defined in lib/yuidoc.js:140

Walks the paths and parses the directory contents

writeJSON

(
  • parser
)
Object private

Defined in lib/yuidoc.js:289

Writes the parser JSON data to disk. Applies preprocessors, if any.

Parameters:

  • parser Object

    The DocParser instance to use

Returns:

Object:

The JSON data returned from the DocParser

Properties

dirmap

Object private

Defined in lib/yuidoc.js:89

Holder for the list of directories we are processing.

endtime

Timestamp

Defined in lib/yuidoc.js:406

Timestamp holder so we know when YUIDoc has finished the parse process.

filecount

Boolean private

Defined in lib/yuidoc.js:68

Holds the number of files that we are processing.

filemap

Object private

Defined in lib/yuidoc.js:82

Holder for the list of files we are processing.

OPTIONS

Object final

Defined in lib/yuidoc.js:31

The default list of configuration options

options

Object private

Defined in lib/yuidoc.js:97

Internal holder for configuration options.

selleck

Object private

Defined in lib/yuidoc.js:75

Hash map of dirnames to selleck config options.

starttime

Timestamp

Defined in lib/yuidoc.js:384

Timestamp holder so we know when YUIDoc started the parse process.