docs: function buildNav(members) {
      var nav = [];
  
      if (members.namespaces.length) {
          _.each(members.namespaces, function (v) {
              nav.push({
                  type: 'namespace',
                  longname: v.longname,
                  deprecated: v.deprecated,
                  name: v.name,
                  members: find({
                      kind: 'member',
                      memberof: v.longname
                  }),
                  methods: find({
                      kind: 'function',
                      memberof: v.longname
                  }),
                  typedefs: find({
                      kind: 'typedef',
                      memberof: v.longname
                  }),
                  interfaces: find({
                      kind: 'interface',
                      memberof: v.longname
                  }),
                  events: find({
                      kind: 'event',
                      memberof: v.longname
                  }),
                  classes: find({
                      kind: 'class',
                      memberof: v.longname
                  })
              });
          });
      }
  
      if (members.globals.length) {
          nav.push({
              type: 'namespace',
              longname: 'global',
              members: members.globals.filter(function(v) { return v.kind === 'member'; }),
              methods: members.globals.filter(function(v) { return v.kind === 'function'; }),
              typedefs: members.globals.filter(function(v) { return v.kind === 'typedef'; }),
              interfaces: members.globals.filter(function(v) { return v.kind === 'interface'; }),
              events: members.globals.filter(function(v) { return v.kind === 'event'; }),
              classes: members.globals.filter(function(v) { return v.kind === 'class'; })
          });
      }
  
      if (members.classes.length) {
          _.each(members.classes, function (v) {
              nav.push({
                  type: 'class',
                  longname: v.longname,
                  name: v.name,
                  deprecated: v.deprecated,
                  members: find({
                      kind: 'member',
                      memberof: v.longname
                  }),
                  methods: find({
                      kind: 'function',
                      memberof: v.longname
                  }),
                  typedefs: find({
                      kind: 'typedef',
                      memberof: v.longname
                  }),
  	            interfaces: find({
                      kind: 'interface',
                      memberof: v.longname
                  }),
                  events: find({
                      kind: 'event',
                      memberof: v.longname
                  })
              });
          });
      }
  
      if (members.tutorials.length) {
          _.each(members.tutorials, function(v) {
              nav.push({
                  type: 'tutorial',
                  name: v.name,
                  longname: v.longname,
                  title: v.title,
                  children: v.children,
                  parent: v.parent
              });
          });
      }
  
      return nav;
  }