qmetrics.net

DocToc

Command-line Markdown table of contents generator

CLI tool that inserts and updates tables of contents in Markdown files in a git repo, with anchors compatible with GitHub and other hosts.

Overview

DocToc generates tables of contents for Markdown files in a local git repository. It scans files or folders recursively, processes .md, .markdown, and .mdx files, and writes TOC blocks with links that match anchors produced by GitHub or other sites when configured with the appropriate renderer mode.

You can run it on a single file, a list of paths, or an entire directory tree, skipping .git and node_modules by default. Existing DocToc sections are found via pragma comments and updated in place, and you can pin TOC placement with an in-file marker or choose automatic placement at the top or before the first heading.

Configuration covers heading level limits, TOC title and list formatting, indentation, minimum document length, dry-run mode for CI, stdout output for one file, and update-only mode that touches files that already have a TOC. Bitbucket, GitLab, and similar modes adjust link compatibility.

Installation is via npm global install. It can run as a pre-commit hook to keep TOCs current, and an unofficial Docker image exists for containerized CI use.

Key features

  • Recursive Markdown TOC insertion
  • GitHub-compatible anchor modes
  • In-place TOC update via pragmas
  • Configurable heading minlevel and maxlevel
  • Dry-run for CI freshness checks
  • Custom TOC title and list styles
  • Pre-commit hook integration
  • Ignore and exclude heading markers

Use cases

  • Keeping README TOCs up to date
  • CI checks that docs TOC is current
  • Bulk TOC generation in a repo
  • Git pre-commit TOC refresh

Similar software

AppFlowy

Open-source, self-hostable AI workspace for projects, wikis and teams

AppFlowy is an AI workspace that combines documents, wikis, databases and project management in one app. Teams can self-host it and keep control of their data, with desktop, mobile and web clients.

  • Documents, wikis and flexible databases
  • Project management tools
  • AI search, writing assistant and chatbot
DartLinux, macOS, Windows, AndroidDetails →
★ 79.9k⟳ 1 month agoAGPL-3.0
Open Source Alternative to:AsanaCoda+10

Docusaurus

React-based static site generator for documentation

Docusaurus builds documentation sites, blogs, and marketing pages from MDX content. It ships preset layouts and plugins so teams can publish quickly.

  • MDX-powered docs and blog authoring
  • Pluggable React layout customization
  • Built-in localization support
TypeScriptCLIDetails →
★ 66.8k⟳ todayMIT
Open Source Alternative to:Mintlify

Outline

Collaborative team knowledge base for internal docs and wikis

Outline is a fast, markdown-friendly wiki for teams to store specs, support answers, meeting notes, and onboarding material. A hosted offering exists, and you can also run your own instance.

  • Realtime collaborative document editing
  • Markdown editor with slash commands and embeds
  • Workspace search with AI question answering
TypeScriptDockerDetails →
★ 41.5k⟳ todaySource-available

DevDocs

Unified offline-capable API documentation browser

Combines many developer API references in one searchable web interface. Supports instant search, offline use, mobile layout, dark theme, and keyboard shortcuts.

  • Multiple docs in one UI
  • Instant full-text search
  • Offline mode and PWA support
RubyWeb, Linux, macOS, WindowsDetails →
★ 39.7k⟳ todayMPL-2.0

docsify

Dynamic Markdown documentation site generator

Turns Markdown files into a documentation website in the browser without a static HTML build step, with themes, search, and plugins.

  • No static HTML build step
  • Runtime Markdown rendering
  • Full-text search plugin
JavaScriptDetails →
★ 31.6k⟳ yesterdayMIT
Open Source Alternative to:Mintlify

Wiki.js

Self-hosted wiki with rich Markdown authoring

Wiki.js is a web wiki you run yourself, backed by Node.js and PostgreSQL. Teams author pages in Markdown or other editors, collaborate in real time, and govern access with path-based rules.

  • Markdown editing with live preview
  • Real-time collaborative live notes
  • Built-in PostgreSQL full-text search
TypeScriptWeb, DockerDetails →
★ 29.4k⟳ todayAGPL-3.0
Open Source Alternative to:ConfluenceConfluence Data Center+3