Skip to main content

A MATLAB handler for mkdocstrings

Project description

mkdocstrings-matlab

A MATLAB handler for mkdocstrings.

Qualify documentation pypi version codecov

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

  • 🤖 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocstrings_matlab-2.0.1.tar.gz (906.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocstrings_matlab-2.0.1-py3-none-any.whl (54.5 kB view details)

Uploaded Python 3

File details

Details for the file mkdocstrings_matlab-2.0.1.tar.gz.

File metadata

  • Download URL: mkdocstrings_matlab-2.0.1.tar.gz
  • Upload date:
  • Size: 906.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.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}

File hashes

Hashes for mkdocstrings_matlab-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4f08b8632057a973b5d0837f2d2898a13c2e4711ba150e6eb0729d4f4ca205c3
MD5 610d8fabe6bb7359f39b8fdf9ae41f14
BLAKE2b-256 b794ba3c0c5183ec2c494f79689b661625a4176e03c1d42ca9b2333c8bbe3a7b

See more details on using hashes here.

File details

Details for the file mkdocstrings_matlab-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: mkdocstrings_matlab-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 54.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.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}

File hashes

Hashes for mkdocstrings_matlab-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00e77af0e4b032524a7a88d411acfdaf6dce54cdd866fc3bff87ba201382a4a8
MD5 f48af339fcad05ccb8c9aed24cf9ba9c
BLAKE2b-256 e355c7323ea3f6081a57f5785fb1a0aaf5041fd2417ae1428feb7c46758663ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page