python - 狮身人面像 : force rebuild of html, 包括 autodoc

标签 python python-sphinx sphinx-apidoc

目前,每当我运行 sphinx-build 时,只有当源文件发生变化时,才会选取和使用内联文档字符串。我试过使用 -a 开关调用 sphinx-build 但这似乎没有效果。

如何强制完全重建 HTML 输出并强制执行 autodoc?

最佳答案

如果 -E option 似乎有效与 -a 一起使用。我将它添加到我的 Makefile 中的 html 目标中,现在可以在不更新任何 .rst 文件的情况下获取文档字符串中的更改。

关于python - 狮身人面像 : force rebuild of html, 包括 autodoc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21019505/

相关文章:

python - 如何使用 Python-Sphinx 生成 HTML 文档?

python - 狮身人面像的自动文档的自动模块显然没有效果

python - Flask 应用程序使用 PyInstaller 打包,EXE 中不包含任何模板或静态内容

python-sphinx - 狮身人面像错误: Unknown directive type "automodule" or "autoclass"

python - 在 sphinx 中自定义方法签名

python - Django Sphinx 自动模块——基础知识

javascript - 如何在 python selenium webdriver 中使用 javascript 代码通过 xpath 查找 web 元素?

python - 尝试将 Pyftpsync 连接到端口 22 上的远程服务器时出现 EFOError

python - 在错误的 XML 情况下捕获错误

python-sphinx - 使用 Sphinx 时不生成模块索引 "modindex"