如何使用sphinx构建一个文件

zed*_*ard 11 python documentation python-sphinx

为了快速预览,我想只构建一个文件而不是所有项目.狮身人面像有可能吗?最近我做了类似的事情:

sphinx-build -b html documentation/ doc_html
Run Code Online (Sandbox Code Playgroud)

谢谢

pla*_*aes 3

Sphinx 已经通过仅为新的和更改的源文件写入输出文件来使用增量构建。但在此之前,需要进行完整的构建,因为 Sphinx 需要知道内部链接指向哪里以及它们是从哪里引用的。