+ + Documentation + + {docs.map((node, i) => { + const current = location.pathname.includes(node.fields.slug); + const title = node.frontmatter.title; + return ( + + {title} + {current && ( + + + {toc && + toc.map((item, j) => ( + + {item.title} + + ))} + + + )} + + ); + })} + + + + + {pageTitle} + + {children} + +