问题描述
我是 Sphinx 的新手,我正在使用 Sphinx 的自动生成工具。我试图从 python 文件夹中导入一个类中的所有方法。我像这样在 conf.py 中成功设置了路径
import os
import sys
sys.path.insert(0,os.path.abspath(r'path'))
.. autoclass:: nameofpythonfile
:members:
但是,当我尝试使用 make HTML 构建 HTML 时,它给了我这个错误
Running Sphinx v4.0.2
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 0 added,1 changed,0 removed
reading sources... [100%] code
WARNING: don't kNow which module to import for autodocumenting 'synthesizer' (try placing a "module" or "currentmodule" directive in the document,or giving an explicit module name)
looking for Now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded,1 warning.
The HTML pages are in build\html.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)