build/jsdocs/template/publish.js
/**
 * Create the navigation sidebar.
 * @param {object} members The members that will be used to create the sidebar.
 * @param {array<object>} members.classes
 * @param {array<object>} members.externals
 * @param {array<object>} members.globals
 * @param {array<object>} members.mixins
 * @param {array<object>} members.modules
 * @param {array<object>} members.namespaces
 * @param {array<object>} members.tutorials
 * @param {array<object>} members.events
 * @return {string} The HTML for the navigation sidebar.
 */
Create the navigation sidebar.
@param {object} members The members that will be used to create the sidebar.
Create the navigation sidebar . @param { object } members The members that will be used to create the sidebar .
function buildNavMap(members) {
    this.navMap = {};
    _.each(members, function (v) {
        var nav;
        if (v.kind == 'namespace') {
            nav = {
                type: 'namespace',
                longname: v.longname,
                version:v.version,
                name: v.name,
                members: find({
                    kind: 'member',
                    memberof: v.longname
                }),
                methods: find({
                    kind: 'function',
                    memberof: v.longname
                }),
                typedefs: find({
                    kind: 'typedef',
                    memberof: v.longname
                }),
                events: find({
                    kind: 'event',
                    memberof: v.longname
                })
            };
        }
        if (v.kind == 'class') {
            nav = {
                type: 'class',
                longname: v.longname,
                name: v.name,
                version:v.version,
                members: find({
                    kind: 'member',
                    memberof: v.longname
                }),
                methods: find({
                    kind: 'function',
                    memberof: v.longname
                }),
                typedefs: find({
                    kind: 'typedef',
                    memberof: v.longname
                }),
                fires: v.fires,
                events: find({
                    kind: 'event',
                    memberof: v.longname
                })
            };
        }
        navMap[v.longname] = nav;
    });
    return navMap;
}
function buildNavMap ( members ) { this . navMap = { } ; _ . each ( members , function ( v ) { var nav ; if ( v . kind == 'namespace' ) { nav = { type : 'namespace' , longname : v . longname , version : v . version , name : v . name , members : find ( { kind : 'member' , memberof : v . longname } ) , methods : find ( { kind : 'function' , memberof : v . longname } ) , typedefs : find ( { kind : 'typedef' , memberof : v . longname } ) , events : find ( { kind : 'event' , memberof : v . longname } ) } ; } if ( v . kind == 'class' ) { nav = { type : 'class' , longname : v . longname , name : v . name , version : v . version , members : find ( { kind : 'member' , memberof : v . longname } ) , methods : find ( { kind : 'function' , memberof : v . longname } ) , typedefs : find ( { kind : 'typedef' , memberof : v . longname } ) , fires : v . fires , events : find ( { kind : 'event' , memberof : v . longname } ) } ; } navMap [ v . longname ] = nav ; } ) ; return navMap ; }
Create the navigation sidebar.
Create the navigation sidebar .