首先安装Sphinx pip install Sphinx 如果包含rst文档的目录名为doc, 以下将生成html 格式的文档到build 目录 sphinx-build -b html doc build