本地构建文档
1、安装sphinx
2、初始化项目
- 中文:zh_CN
- 主题:
html_theme = 'sphinx_rtd_theme'
3、配置config
在source下设置配置文件:
4、生成rst文件
5、生成html
查看:
- 直接浏览器打开html文件;
- python3 -m http.server 10010
清澈的爱,只为中国
html_theme = 'sphinx_rtd_theme'
在source下设置配置文件:
查看:
清澈的爱,只为中国