读取源代码时,带有matlabdomain的sphinx似乎陷入无限循环

时间:2018-12-06 21:40:02

标签: matlab python-sphinx

我正在尝试使用sphinx生成matlab文档,但是在阅读源代码时却陷入了无限循环,我也不知道为什么。

所以我可以通过简单的matlab函数使它按​​预期工作,但是当我包含另一个函数时,它会挂起。这是我的index.rst,当文件夹中的唯一文件是matlab函数func1时可以使用,但是当我添加另一个matlab函数func2时无法使用。 func2没什么特别的,scatter3带有颜色图只是一些绘图。

Welcome to documentation!
=========================

.. toctree::
   :maxdepth: 2

.. currentmodule:: new_folder

.. autofunction:: func1


:func:`func1`

Indices and tables
==================
* :ref:`genindex`
* :ref:`search`

1 个答案:

答案 0 :(得分:0)

我遇到的问题是由于其中一个matlab函数(在我的测试中为func2)中连续存在许多%。