12 lines
392 B
Markdown
12 lines
392 B
Markdown
# sphinx-build
|
|
|
|
> Sphinx 文档生成器。
|
|
> 更多信息:<https://www.sphinx-doc.org/en/master/man/sphinx-build.html>。
|
|
|
|
- 构建文档:
|
|
|
|
`sphinx-build -b {{html|epub|text|latex|man|...}} {{path/to/source_dir}} {{path/to/build_dir}}`
|
|
|
|
- 构建用于 readthedocs.io 的文档(需要 sphinx-rtd-theme pip 包):
|
|
|
|
`sphinx-build -b {{html}} {{path/to/docs_dir}} {{path/to/build_dir}}` |