Skip to main content

mkdocstrings-matlab

A MATLAB handler for mkdocstrings,
compatible with Material for MkDocs and Zensical.

Qualify documentation pypi version codecov

A modern documentation framework for MATLAB. Automatically generate beautiful documentation pages from your MATLAB code's comments and docstrings, harnessing the power of Markdown for advanced formatting.

The MATLAB handler uses maxx to collect documentation from MATLAB source code, which in turn uses Tree-sitter and its MATLAB parser.

You can install this handler by specifying it as a dependency:

# PEP 621 dependencies declaration
# adapt to your dependencies manager
[project]
dependencies = [
    "mkdocstrings-matlab>=0.X.Y",
]

To get started, checkout the 📝 documentation.

Features

  • Compatible with both Material for Mkdocs and Zensical.

  • 🤖 Data collection from source code: collection of the object-tree and the docstrings is done thanks to Tree-sitter.

  • ✨ Support for argument validation blocks: Tree-sitter collects your function and method argument validation blocks to display input and output argument types and default values. It is even able to automatically add cross-references to other objects from your API, and links to MathWorks documentation are generated for MATLAB builtin classes.

  • 🔁 Recursive documentation of MATLAB namespaces and folders: just add + to the identifer for namespaces or the relative path for folder, and you get documentation for the entire directory. You don't need to inject documentation for each class, function, and script. Additionaly, the directory documentation will be either extracted from the Contents.m or the readme.md file at the root of the namespace or folder.

  • 📄 Multiple docstring-styles support: common support for Google-style, Numpydoc-style, and Sphinx-style docstrings. See Griffe's documentation on docstrings support.

  • ⚠️ Admonition support in Google docstrings: blocks like Note: or Warning: will be transformed to their admonition equivalent. We do not support nested admonitions in docstrings!

  • 🔗 Every object has a TOC entry: we render a heading for each object, meaning MkDocs picks them into the Table of Contents, which is nicely displayed by the Material theme. Thanks to mkdocstrings cross-reference ability, you can reference other objects within your docstrings, with the classic Markdown syntax: [this object][namespace.subnamespace.object] or directly with [namespace.subnamespace.object][]

  • 📺 Source code display: mkdocstrings can add a collapsible div containing the highlighted source code of the MATLAB object.

Metadata

Release files for mkdocstrings-matlab 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocstrings-matlab 2.1.2
File Size Uploaded
mkdocstrings_matlab-2.1.2.tar.gz 909.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocstrings-matlab 2.1.2
File Interpreter ABI Platform
mkdocstrings_matlab-2.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 964.8 kB

Release files / mkdocstrings_matlab-2.1.2.tar.gz

Download URL mkdocstrings_matlab-2.1.2.tar.gz
Size 909.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d9266d61549857b0b40012642aaefed1cfa06fdb322a11df4c18eb37f8d8f0ae
BLAKE2b-256 checksum
How to use checksums
b8dc4811faf2fdf2255b5234e26e3957487882ee188577cdde0a374cf4853822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mkdocstrings_matlab-2.1.2-py3-none-any.whl

Download URL mkdocstrings_matlab-2.1.2-py3-none-any.whl
Size 55.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8df03f5206f760d1649e6862e0b0f2b19f4e45a55fbb28786ab9858e0dfbfad4
BLAKE2b-256 checksum
How to use checksums
748c11b71d5f0a74785fac129424c8fea389214b68148c84faa94a25d295af7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.1.2 This release

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page