对于github下载的项目中docs文件夹下.rst文件和文档的说明和转换

 

作为一个.net程序员, 实在没看见过这样的文档。

从网上搜一下:

全部操作如下。 本身电脑上要装python。

如果忘记了python的安装路径。

请在cmd 下 输入: where python

找到了python的目录。

cd 跳转到python的根目录。

安装 sphinx。

D:\python>pip install Sphinx

同时需要安装 theme

D:\python>pip install sphinx_rtd_theme

 然后cd 到docs的上一级目录

接下来执行命令:

sphinx-build  -b html docs build

执行完 提示: The HTML pages are in build.

在docs同级目录生成一个build文件夹。里面是生成的html的文档。

打开index.html 即可开始阅读文档。

 

 

作为程序员真的很高级啊,既不是.md的文档也不是.html的文档,需要借助python生成的文档。。。。好麻烦。。。

 

posted @ 2021-01-28 17:17  sunshine静  阅读(708)  评论(0)    收藏  举报