reStructuredText文档更新
文档更新后,必须用sphnix制作新html,因为read the docs只加载html内容。
1. 用编辑器打开需要修改的rst文件,之后保存
2. 进入WIKI的目录下(与make.bat在一级),输入make html
加载完毕后,html即更新。
如果出现以下问题:
The 'sphinx-build' command was not found. Make sure you have Sphinx
installed, then set the SPHINXBUILD environment variable to point
to the full path of the 'sphinx-build' executable. Alternatively you
may add the Sphinx directory to PATH.
If you don't have Sphinx installed, grab it from
http://sphinx-doc.org/
我们需要给SPHINXBUILD配置路径,解决方法如下:
- 找到python的安装路径,打开script文件,找到“sphinx-build.exe”。
- 接下来配置SPHINXBUILD的PATH,从而让系统可以直接打开。
据说可以使用命令行解决,然而没看懂这个是什么意思。
SPHINXBUILD <-- C:\Python27\Scripts\sphinx-build.exe
但是我们可以手动设置。
1.W10系统中,找到设置,搜索环境变量。
2.按照步骤进入到环境变量的编辑中,在这里把刚才的sphinx-build.exe的地址复制进去,注意地址不包括sphins-build.exe。这样系统就可以自动找到这个程序。