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.
Instead of having an absolute path for
matlab_src_dir
inconf.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 toos.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.