awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
thlorenz avatar

thlorenz/doctoc

0
View on GitHub↗
4,451 stars·487 forks·JavaScript·MIT·16 viewswww.npmjs.com/package/doctoc↗

Doctoc

doctoc is a markdown table of contents generator and file processor designed to automatically create and update linked lists of headings within markdown documents. It functions as a git repository documentation tool that scans local directories to ensure navigation remains consistent across a collection of files.

The tool features a GitHub compatible anchor generator that formats heading links to match the specific requirements of GitHub and similar hosting platforms. It manages updates by locating marker comments to replace existing tables of contents without overwriting other document content.

The project covers recursive directory processing, which allows it to scan nested folders and apply updates to all compatible files. It also includes content filtering and entry control to exclude specific headings or files based on nesting levels or metadata tags.

A consistency validation utility allows the tool to check if files are out of date without modifying them, facilitating integration into automated documentation workflows.

Features

  • Automatic Table of Contents - Automatically generates navigational outlines based on the heading hierarchy of Markdown documents.
  • Anchor Links - Generates navigation identifiers that ensure compatibility with the anchor requirements of hosting providers.
  • Markdown Processors - Provides a recursive processor that scans and transforms Markdown documents to maintain consistent navigation and formatting.
  • Markdown Documentation - Automates the creation and maintenance of tables of contents for large sets of Markdown documentation.
  • Platform Anchor Generators - Provides GitHub-compatible anchor generation to ensure navigation links function correctly on hosting platforms.
  • TOC Refresh Utilities - Refreshes existing tables of contents by locating marker comments to prevent duplicate entries.
  • Git Documentation Utilities - Scans local Git directories to ensure all Markdown files have consistent and current navigation.
  • RegEx Heading Extractors - Uses regular expressions to identify heading levels and extract structure for table of contents generation.
  • Markdown Content Structures - Manages navigation for complex directory structures through recursive processing and content filtering.
  • Content Consistency Validators - Checks if document headings match the existing table of contents to signal required updates without modifying files.
  • TOC Generation - Validates the consistency of the generated table of contents against the actual document headings.
  • TOC Content Filters - Excludes specific headings or files from the generated table of contents using specialized markup tags.
  • TOC Entry Controllers - Controls which headings appear in the table of contents based on nesting levels and minimum length.
  • GitHub Repository Utilities - Provides utility functions to ensure Markdown navigation links are compatible with GitHub's repository structure.
  • Documentation Automation - Integrates table of contents generation into build pipelines to keep navigation in sync with heading changes.
  • Recursive Directory Processing - Traverses folder hierarchies to apply table of contents updates across entire project directories.
  • Markdown File Processors - Recursively scans directories to apply table of contents generation to all compatible Markdown files.
  • Recursive Directory Traversers - Recursively walks directory trees to locate all markdown files for batch processing.
  • Marker-Based Injection Utilities - Implements programmatic updates of documentation by injecting table of contents between predefined marker comments.
  • Markdown Tools - Generates table of contents for markdown files.

Star history

Star history chart for thlorenz/doctocStar history chart for thlorenz/doctoc

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does thlorenz/doctoc do?

doctoc is a markdown table of contents generator and file processor designed to automatically create and update linked lists of headings within markdown documents. It functions as a git repository documentation tool that scans local directories to ensure navigation remains consistent across a collection of files.

What are the main features of thlorenz/doctoc?

The main features of thlorenz/doctoc are: Automatic Table of Contents, Anchor Links, Markdown Processors, Markdown Documentation, Platform Anchor Generators, TOC Refresh Utilities, Git Documentation Utilities, RegEx Heading Extractors.

Which projects share features with thlorenz/doctoc?

Projects with overlapping indexed features include: ekalinin/github-markdown-toc — This project is a command-line utility designed to automate the creation and maintenance of tables of contents within… jonschlinkert/markdown-toc — Markdown-toc is a utility for generating and maintaining tables of contents within markdown files. It functions as… russross/blackfriday — Blackfriday is a Go library for parsing and converting Markdown text into HTML, LaTeX, and other structured formats.… richardlitt/standard-readme — Standard README is a markdown documentation standard and specification designed to organize project metadata and… swiftggteam/the-swift-programming-language-in-chinese — This project is a Simplified Chinese translation of the official Swift programming language documentation. It… christianlempa/cheat-sheets — This project is a technical reference knowledge base and developer cheat sheet repository. It functions as a…

Projects sharing features with Doctoc

These projects share indexed features with Doctoc. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • ekalinin/github-markdown-tocekalinin avatar

    ekalinin/github-markdown-toc

    3,292View on GitHub↗

    This project is a command-line utility designed to automate the creation and maintenance of tables of contents within markdown files. It functions as a static documentation processor that parses document headings to generate hierarchical navigation lists, which are then injected directly into the source files. The tool distinguishes itself by supporting both local files and remote network streams as input sources. It utilizes marker-based content updating to refresh existing navigation sections without requiring manual edits, and it includes authentication support for remote requests to bypas

    Shellgithubmarkdownshell
    View on GitHub↗3,292
  • jonschlinkert/markdown-tocjonschlinkert avatar

    jonschlinkert/markdown-toc

    1,752View on GitHub↗

    Markdown-toc is a utility for generating and maintaining tables of contents within markdown files. It functions as both a command-line interface and a programmatic library, enabling the automated creation of structured navigation links based on the heading hierarchy of a document. The tool distinguishes itself through its marker-based injection system, which allows for the precise placement and updating of navigation blocks within existing files. It includes a dedicated transformation pipeline for slugifying heading text into URL-friendly identifiers, ensuring that generated links remain cons

    JavaScriptjavascriptjonschlinkertmarkdown
    View on GitHub↗1,752
russross/blackfridayrussross avatar

russross/blackfriday

5,614View on GitHub↗

Blackfriday is a Go library for parsing and converting Markdown text into HTML, LaTeX, and other structured formats. It functions as an extensible Markdown processor that transforms syntax into target markup languages. The project is distinguished by its pluggable rendering architecture, which allows for the production of diverse output targets such as Slack message styles, Confluence Wiki Markup, and GitHub Flavored Markdown. It supports custom syntax extensions including definition lists, footnotes, autolinks, and strikethroughs. The processor includes utilities for generating automatic ta

Go
View on GitHub↗5,614
  • richardlitt/standard-readmeRichardLitt avatar

    RichardLitt/standard-readme

    6,311View on GitHub↗

    Standard README is a markdown documentation standard and specification designed to organize project metadata and instructions. It functions as an open source governance framework that establishes a formal set of rules and templates to ensure project information remains predictable and consistent across different repositories. The project provides a documentation compliance validator to check if a README complies with these predefined formatting standards. It includes tools for README template generation to produce baseline documentation files and a system for signaling specification complianc

    JavaScriptdocsdocumentationreadme
    View on GitHub↗6,311
  • Compare all 30 related projects→