build/updates/builder.js
function (cb) {

            var opts = {
                meta: {}
            };
            opts = this.populateClasses(opts);
            opts = this.populateModules(opts);

            ['classes', 'modules'].forEach(function (id) {
                opts.meta[id].forEach(function (v, k) {
                    opts.meta[id][k] = v.name;
                    if (v.submodules) {
                        v.submodules.forEach(function (s) {
                            opts.meta[id].push(s.displayName);
                        });
                    }
                });
                opts.meta[id].sort();
            });

            var apijs = 'YUI.add("yuidoc-meta", function(Y) {\n' +
                '   Y.YUIDoc = { meta: ' + JSON.stringify(opts.meta, null, 4) + ' };\n' +
                '});';

            cb(apijs);
        }
function (cb) {

            var opts = {
                meta: {}
            };
            opts = this.populateClasses(opts);
            opts = this.populateModules(opts);

            ['classes', 'modules'].forEach(function (id) {
                opts.meta[id].forEach(function (v, k) {
                    opts.meta[id][k] = v.name;
                    if (v.submodules) {
                        v.submodules.forEach(function (s) {
                            opts.meta[id].push(s.displayName);
                        });
                    }
                });
                opts.meta[id].sort();
            });

            var apijs = 'YUI.add("yuidoc-meta", function(Y) {\n' +
                '   Y.YUIDoc = { meta: ' + JSON.stringify(opts.meta, null, 4) + ' };\n' +
                '});';

            cb(apijs);
        }
function ( cb ) { var opts = { meta : { } } ; opts = this . populateClasses ( opts ) ; opts = this . populateModules ( opts ) ; [ 'classes' , 'modules' ] . forEach ( function ( id ) { opts . meta [ id ] . forEach ( function ( v , k ) { opts . meta [ id ] [ k ] = v . name ; if ( v . submodules ) { v . submodules . forEach ( function ( s ) { opts . meta [ id ] . push ( s . displayName ) ; } ) ; } } ) ; opts . meta [ id ] . sort ( ) ; } ) ; var apijs = 'YUI.add("yuidoc-meta", function(Y) {\n' + '   Y.YUIDoc = { meta: ' + JSON . stringify ( opts . meta , null , 4 ) + ' };\n' + '});' ; cb ( apijs ) ; }
Render the API meta and return the Javascript
@method renderAPIMeta
@param {Callback} cb The callback
@async
Render the API meta and return the Javascript