mkdocstrings 1.0.4


pip install mkdocstrings

  Latest version

Released: Apr 15, 2026


Meta
Author: Timothée Mazzucotelli
Requires Python: >=3.10

Classifiers

Development Status
  • 4 - Beta

Intended Audience
  • Developers

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Documentation
  • Software Development
  • Software Development :: Documentation
  • Utilities

Typing
  • Typed

mkdocstrings

ci documentation pypi version conda version gitter

Automatic documentation from sources, for MkDocs. Come have a chat or ask questions on our Gitter channel.


Features - Installation - Quick usage

mkdocstrings_gif1

Features

  • Language-agnostic: just like MkDocs, mkdocstrings is written in Python but is language-agnostic. It means you can use it with any programming language, as long as there is a handler for it. We currently have handlers for the C, Crystal, GitHub Actions, Python, MATLAB, TypeScript, and VBA languages, as well as for shell scripts/libraries. Maybe you'd like to add another one to the list? :wink:

  • Multiple themes support: each handler can offer multiple themes. Currently, we offer the :star: Material theme :star: as well as basic support for the ReadTheDocs and MkDocs themes for the Python handler.

  • Cross-references across pages: mkdocstrings makes it possible to reference headings in other Markdown files with the classic Markdown linking syntax: [identifier][] or [title][identifier] -- and you don't need to remember which exact page this object was on. This works for any heading that's produced by a mkdocstrings language handler, and you can opt to include any Markdown heading into the global referencing scheme.

    Note: in versions prior to 0.15 all Markdown headers were included, but now you need to opt in.

  • Cross-references across sites: similarly to Sphinx's intersphinx extension, mkdocstrings can reference API items from other libraries, given they provide an inventory and you load that inventory in your MkDocs configuration.

  • Inline injection in Markdown: instead of generating Markdown files, mkdocstrings allows you to inject documentation anywhere in your Markdown contents. The syntax is simple: ::: identifier followed by a 4-spaces indented YAML block. The identifier and YAML configuration will be passed to the appropriate handler to collect and render documentation.

  • Global and local configuration: each handler can be configured globally in mkdocs.yml, and locally for each "autodoc" instruction.

  • Reasonable defaults: you should be able to just drop the plugin in your configuration and enjoy your auto-generated docs.

Used by

mkdocstrings is used by well-known companies, projects and scientific teams: Ansible, Apache, FastAPI, Google, IBM, Jitsi, Microsoft, NVIDIA, Prefect, Pydantic, Textual, and more...

Installation

The mkdocstrings package doesn't provide support for any language: it's just a common base for language handlers. It means you likely want to install it with one or more official handlers, using extras. For example, to install it with Python support:

pip install 'mkdocstrings[python]'

Alternatively, you can directly install the language handlers themselves, which depend on mkdocstrings anyway:

pip install mkdocstrings-python

This will give you more control over the accepted range of versions for the handlers themselves.

See the official language handlers.


With conda:

conda install -c conda-forge mkdocstrings mkdocstrings-python

Quick usage

In mkdocs.yml:

site_name: "My Library"

theme:
  name: "material"

plugins:
- search
- mkdocstrings

In one of your markdown files:

# Reference

::: my_library.my_module.my_class

See the Usage section of the docs for more examples!

Sponsors

Silver sponsors

FastAPI

Bronze sponsors

Nixtla


ofek samuelcolvin tlambert03 ssbarnea femtomc cmarqu kolenaIO ramnes machow BenHammersley trevorWieland MarcoGorelli analog-cbarber OdinManiac rstudio-sponsorship schlich butterlyn livingbio NemetschekAllplan EricJayHartman 15r10nk activeloopai roboflow cmclaughlin blaisep RapidataAI rodolphebarbanneau theSymbolSyndicate blakeNaccarato ChargeStorm Alphadelta14 Cusp-AI

And 7 more private sponsor(s).

1.0.4 Apr 15, 2026
1.0.3 Feb 07, 2026
1.0.2 Jan 24, 2026
1.0.1 Jan 19, 2026
1.0.0 Nov 27, 2025
0.30.1 Sep 19, 2025
0.30.0 Jul 22, 2025
0.29.1 Mar 31, 2025
0.29.0 Mar 10, 2025
0.28.3 Mar 08, 2025
0.28.2 Feb 24, 2025
0.28.1 Feb 14, 2025
0.28.0 Feb 03, 2025
0.27.0 Nov 08, 2024
0.26.2 Oct 12, 2024
0.26.1 Sep 06, 2024
0.26.0 Sep 01, 2024
0.25.2 Jul 25, 2024
0.25.1 May 05, 2024
0.25.0 Apr 27, 2024
0.24.3 Apr 05, 2024
0.24.2 Apr 02, 2024
0.24.1 Feb 27, 2024
0.24.0 Nov 14, 2023
0.23.0 Sep 02, 2023
0.22.0 May 26, 2023
0.21.2 Apr 06, 2023
0.21.1 Apr 05, 2023
0.21.0 Apr 05, 2023
0.20.0 Jan 19, 2023
0.19.1 Dec 13, 2022
0.19.0 May 28, 2022
0.18.1 Mar 01, 2022
0.18.0 Feb 06, 2022
0.17.0 Dec 27, 2021
0.16.2 Oct 04, 2021
0.16.1 Sep 23, 2021
0.16.0 Sep 21, 2021
0.15.2 Jun 09, 2021
0.15.1 May 16, 2021
0.15.0 Feb 28, 2021
0.14.0 Jan 06, 2021
0.14.0b1 Dec 31, 2020
0.13.6 Sep 28, 2020
0.13.5 Sep 28, 2020
0.13.4 Sep 25, 2020
0.13.3 Sep 24, 2020
0.13.2 Sep 08, 2020
0.13.1 Sep 03, 2020
0.13.0 Aug 21, 2020
0.12.2 Jul 24, 2020
0.12.1 Jul 07, 2020
0.12.0 Jun 16, 2020
0.11.4 Jun 08, 2020
0.11.3 Jun 07, 2020
0.11.2 May 20, 2020
0.11.1 May 14, 2020
0.11.0 Apr 23, 2020
0.10.3 Apr 10, 2020
0.10.2 Apr 07, 2020
0.10.1 Apr 03, 2020
0.10.0 Mar 27, 2020
0.9.1 Mar 21, 2020
0.9.0 Mar 21, 2020
0.8.0 Mar 04, 2020
0.7.2 Mar 04, 2020
0.7.1 Feb 18, 2020
0.7.0 Jan 13, 2020
0.6.1 Jan 02, 2020
0.6.0 Dec 28, 2019
0.5.0 Dec 22, 2019
0.4.0 Dec 22, 2019
0.3.0 Dec 21, 2019
0.2.0 Dec 15, 2019
0.1.0 Dec 12, 2019

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
Jinja2 (>=3.1)
Markdown (>=3.6)
MarkupSafe (>=1.1)
mkdocs (>=1.6)
mkdocs-autorefs (>=1.4)
pymdown-extensions (>=6.3)