code: function buildHTML(navigation, first, sParentLink) {
      return '<ul class="nav' + (first ? ' sidenav' : '') + '">' + navigation.map(function(loc) {
  
        if (!loc || !loc.link) return '';
        loc.link = (opts.parentLink && sParentLink ? sParentLink + '-' : '') + loc.link;
        loc.$ele.attr('id', loc.link);
  
        return '<li><a href="#' + loc.link + '">' + escape(loc.text) + '</a>' + (loc.children ? buildHTML(loc.children, false, loc.link) : '') + '</li>';
      }).join('\n') + '</ul>';
    }
docs: Build the HTML for side navigation.