Search code examples
docusaurus

Docusaurus - How to remove TOC(table of contents)?


I'm using docusaurus for our dev docs.

How to disable TOC?

enter image description here

Thanks.


Solution

  • Docosaurus has Markdown Frontmatter metadata fields for .md files where you will eventually make use of the hide_table_of_contents field and set it to true.

    Your .md should look like:

    --- 
    hide_table_of_contents: true
    ---
    # Markdown Features
    My Document Markdown content