Skip to main content

A Sphinx extension for generating Matlab HTML docs.

Project description


Build Status

A Sphinx extension for generating Matlab HTML docs. This extension builds the Sphinx project into a set of HTML documents and additionally generates the TOC helptoc.xml file required for the Matlab toolbox documentation

For generating documentation for Matlab code, check out the matlabdomain Sphinx extension.


The package can be installed from Pip

pip install sphinx-matlabdoc-builder

Alternatively you can download the sphinx_matlabdoc_builder package into your sphinx directory and add the local directory to the sphinx path.


This package is an extension to Sphinx. Requires Python 3.


To use sphinx-matlabdoc-builder, you must first install the package and add the extension to your sphinx file. For example, add the sphinx_matlabdoc_builder extension to the end of your extension list:

extensions = [

Then compile the source with

make matlabdoc

or if using sphinx-build

sphinx-build -M matlabdoc ./ build

this should generate the normal HTML output and add the helptoc.xml file to the output directory.

To use the helptoc.xml file in your toolbox, create a new matlab package and click add documentation and specify the documentation output directory. If you have an existing info.xml file, simply change the documentation directory to point to the output directory containing the helptoc.xml file. For example, on Matlab 2018a, a info.xml file might look something like:

<?xml version="1.0" encoding="utf-8"?>
<productinfo xmlns:xsi="" xsi:noNamespaceSchemaLocation="optional"><?xml-stylesheet type="text/xsl"href="optional"?>

where help_location specifies the path to the Sphinx output directory.

Project details

Download files

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

Files for sphinx-matlabdoc-builder, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size sphinx_matlabdoc_builder-0.1.2-py3-none-any.whl (5.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sphinx-matlabdoc-builder-0.1.2.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page