docs: function buildNav(members) {
    const nav = [];
    // merge namespaces and classes, then sort
    const merged = members.modules.concat(members.classes);
    merged.sort(function(a, b) {
      if (a.longname > b.longname) {
        return 1;
      }
      if (a.longname < b.longname) {
        return -1;
      }
      return 0;
    });
    _.each(merged, function(v) {
      // exclude interfaces from sidebar
      if (v.interface !== true) {
        if (v.kind == 'module') {
          nav.push({
            type: 'module',
            longname: v.longname,
            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.push({
            type: 'class',
            longname: v.longname,
            name: v.name,
            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
            })
          });
        }
      }
    });
    return nav;
  }