Last updated 1 month ago

enableToc

Usage

When set to true, displays a table of contents (ToC) on the right side of each MD(X) page.

  • To modify all pages in the portal, add it to the top level of the siteConfig.yaml file.
  • To override the site-wide configuration, add it to the front matter of specific MD(X) pages.

Read more about ToC configuration.

Related options

Use tocMaxDepth to control the depth of heading levels displayed in the ToC.

Examples

In siteConfigIn front matter
meta:
  title: Example Developer Portal
  description: Learn how to work with Example APIs
enableToc: true
---
title: Markdown example
description: GitHub-flavored Markdown example
enableToc: false
---

Example text