# DocToc
> Generates table of contents for Markdown files in git repositories

## Summary
Auto-generates GitHub-compatible table of contents for Markdown files

## Capabilities
- Generate table of contents for Markdown files
- GitHub-compatible anchor links
- Process all Markdown files in a git repository
- Update existing TOCs in place

## When to Use
- You need to add a table of contents to Markdown documentation
- You want auto-generated TOCs compatible with GitHub

## When NOT to Use
- You are working with non-Markdown documentation

## Related Tools
- [grip](/tools/grip) (complementary)

---
Source: https://littlescripts.sh/tools/doctoc
