Skip to content

Document feature to create custom Table of Contents #11124

Description

@PaulRBerg

Have you read the Contributing Guidelines on issues?

Description

Problem

It took me 10 minutes to wade through several discussions, issues, and PRs, to find out that it is possible to customize the TOC in an MDX file.

Solution

Document feature to create custom Table of Contents:

export const toc = [
  {
    "value": "Doc heading",
    "id": "doc-heading",
    "level": 2
  },
]

References

Self-service

  • I'd be willing to address this documentation request myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThe issue is related to the documentation of Docusaurusstatus: needs triageThis issue has not been triaged by maintainers

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions