diff --git a/src/templates/Doc.jsx b/src/templates/Doc.jsx index 9e0310eb..a72ef85c 100644 --- a/src/templates/Doc.jsx +++ b/src/templates/Doc.jsx @@ -124,7 +124,7 @@ export const pageQuery = graphql` query DocBySlug($slug: String!) { markdownRemark(fields: { slug: { eq: $slug } }) { id - tableOfContents + tableOfContents(maxDepth: 3) html htmlAst frontmatter {