function buildPage(page, depth, currentDocumentLink) {
        if(!page.active) {return ''}

        let html = '<div class="docs-page-link depth-' + depth + '">'
        if(depth > 0) {
            const classList = ['button']
            if(currentDocumentLink !== undefined && page.link.join('/').indexOf(currentDocumentLink) >= 0) {
                classList.push('active')
            }
            html += '<a href="'+ ED.utilities.normaliseInternalLink(page.link) + '" class="' + classList.join(' ') + '">' + page.title + '</a>'
        }
        if(page.children!== undefined && page.children.length>0) {
            let nextDepth = depth + 1
            for(let i =0; i < page.children.length; i++) {
                html += buildPage(page.children[i], nextDepth, currentDocumentLink)
            }
        }
        return html + '</div>'
    }
Builds out page navigation objects
@param {Page} page 
@param {number} depth
@param {string?} currentDocumentLink
@return {string}