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.3

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.3
File Size Uploaded
mkdocstrings_matlab-2.1.3.tar.gz 988.6 kB Details

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / mkdocstrings_matlab-2.1.3.tar.gz

Download URL mkdocstrings_matlab-2.1.3.tar.gz
Size 988.6 kB
Tags Source
SHA-256 checksum
How to use checksums
577529a8c3ea2bfbadd8167083562b8eea0df58657db55539b6704f14bdcfa46
BLAKE2b-256 checksum
How to use checksums
6907cfc13d8e817889431424471b65b52b6300a3cf6076418a482370ff2fd8f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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.3-py3-none-any.whl

Download URL mkdocstrings_matlab-2.1.3-py3-none-any.whl
Size 56.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55b4026937787dd96bdbcfb4aadfb3fc01953ceabb30617a9b988936144cc460
BLAKE2b-256 checksum
How to use checksums
ce67965d70a7bd227b11aecd2cf19c7f0c4fa2cac992a135823dadcac7e92220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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.3 This release

2 release files

2.1.2

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