【问题标题】:Sphinx ignores .rst filesSphinx 忽略 .rst 文件
【发布时间】:2020-06-17 12:36:01
【问题描述】:

make html 和 sphinx-build 'source' 'build\html' -a -E 给出相同的结果;当我添加到:exclude-members: here 时,我修改的docs/source 中的.rst 文件被覆盖,生成docs 并显示member 存在。如果只是擦除整个 .rst 文件,则行为相同;似乎这些更改被完全忽略了,Sphinx 正在使用一些缓存的.rst 代替(尽管-a -E)。

我不记得除了make html 之外的任何事情。我还尝试在前面加上make clean,并注释掉一个app.connect,它被认为可能不稳定。是否有一些命令可以让 Sphinx 使用当前的 .rst 文件?

【问题讨论】:

    标签: python-sphinx autodoc


    【解决方案1】:

    您正在编辑 build 中的 .rst.txt 文件,这些文件是 Sphinx 通过读取 source 中的 .rst生成的。大脑袋。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-02
      • 1970-01-01
      • 2020-03-18
      • 1970-01-01
      • 2012-12-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多