DocToc is a command-line utility that automatically generates and maintains tables of contents inside Markdown documents. It supports Markdown, Markdown Extended, and MDX files and can recursively process complete directory trees. Generated links can match anchor conventions used by GitHub, GitLab, Bitbucket, Node.js, and Ghost. Users can limit heading levels, exclude specific headings, control list formats, and choose where the generated table appears. Dry-run and update-only modes make it useful in continuous integration and staged commit workflows. Existing generated sections can be refreshed without manually editing their contents. DocToc can also run as a pre-commit hook to keep documentation navigation synchronized automatically.

Features

  • Automatic Markdown table of contents generation
  • Recursive directory processing
  • GitHub, GitLab, Bitbucket, Node.js, and Ghost anchors
  • Heading depth and exclusion controls
  • Dry-run and update-only modes
  • Pre-commit hook integration

Project Samples

Project Activity

See All Activity >

Categories

Markdown Editors

License

MIT License

Follow DocToc

DocToc Web Site

Other Useful Business Software
Veeam Data Platform v13.1 - Get Your Free Trial Icon
Veeam Data Platform v13.1 - Get Your Free Trial

Secure by design, portable by default. Recover clean, fast, anywhere. Start a free trial.

Try Veeam Data Platform today. Experience the unified platform that's secure by design, portable by default, and proven to recover clean, fast, and anywhere.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DocToc!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Markdown Editors

Registered

20 hours ago