sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
Other
64 stars 45 forks source link

Interpret `matlab_src_dir` relative to the sphinx source directory. #223

Closed stibus closed 8 months ago

stibus commented 8 months ago

Instead of having an absolute path for matlab_src_dir in conf.py interpret the supplied value as path relative to the sphinx source directory. This enables the use of matlabdomain with, e.g., sphinx-multiversion which relies on running sphinx-build on different versions checked out to temporary folders. Thanks to os.path.join() it is still possible to provide an absolute path, though.

This solves https://github.com/Holzhaus/sphinx-multiversion/issues/108 which I found while looking for a solution.