talira

mkdocstrings

Automatic documentation from sources, for MkDocs

open sourceISCfree

mkdocstrings is a plugin for MkDocs that builds API reference documentation from your source code and injects it anywhere in your Markdown pages. It's language-agnostic through handlers (Python, C, Crystal, TypeScript, MATLAB, VBA, shell scripts and GitHub Actions), supports several themes, and cross-references headings across pages and, like Sphinx's intersphinx, API items in other projects' sites through their inventories.

Ways to install

Package managers

Problems it solves

  • generate Python API reference pages for my MkDocs site
  • link to another library's API docs from my own documentation
  • keep API docs in sync with docstrings without writing pages by hand

Features

  • API docs injected inline in Markdown
  • handlers for Python, C, Crystal, TypeScript, MATLAB, VBA, shell and GitHub Actions
  • cross-references across pages
  • cross-references to other sites' inventories
  • several themes

Limitations

  • Its maker has put it in maintenance mode2

Alternatives

The same job

These do what mkdocstrings does.

  1. JSDoc API documentation generator for JavaScript from comments in the code
  2. pdoc API documentation for Python projects
  3. DocFX Static site generator for .NET API documentation
  4. Doxygen Code documentation. Automated. Free, open source, cross-platform.
  5. phpDocumentor API documentation generator for PHP

Compare mkdocstrings with the top 3