Skip to main content
 首页 » 编程设计

python之Sphinx automodule 离线工作但不能通过 readthedocs.org

2025年05月04日10oomusou

我似乎无法让 ReadTheDocs 显示任何模块的 :members:,例如在我的本地 html 中,我得到:

MODULE 
module.Beta(r, theta, beta) 
    evaluates Beta at point 

但是在推送到 github 之后,readthedocs 文档只说:

MODULE 

没有出现错误,当我在本地将其构建为 html 时,它运行时没有警告。

如有任何提示,我们将不胜感激!

请您参考如下方法:

在 readthedocs.org 仪表板中检查您的构建日志。

很可能您使用的是无法在 readthedocs.org 上导入的第三方包,因为您没有提供正确的 requirements.txt 文件。

Please see FAQ here .