我似乎无法让 ReadTheDocs 显示任何模块的 :members:,例如在我的本地 html 中,我得到:
MODULE
module.Beta(r, theta, beta)
evaluates Beta at point
但是在推送到 github 之后,readthedocs 文档只说:
MODULE
没有出现错误,当我在本地将其构建为 html 时,它运行时没有警告。
如有任何提示,我们将不胜感激!
最佳答案
在 readthedocs.org 仪表板中检查您的构建日志。
很可能您使用的是无法在 readthedocs.org 上导入的第三方包,因为您没有提供正确的 requirements.txt
文件。
关于python - Sphinx automodule 离线工作但不能通过 readthedocs.org,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29246562/