通过sphinx将.rst格式文件转换为.html格式(ubuntu环境)

第一步:

安装python

第二步

安装sphinx

pip3 install sphinx

第三步

mkdir rst && cd rst

执行

sphinx-quickstart

rst目录下生成如下文件列表

build

source

make.bat

Makefile

扫描二维码关注公众号,回复: 10018942 查看本文章

执行

make html

则在build文件夹下生成index.html等.html文件

备注:

修改 source/conf.py 内容

html_theme = 'sphinx_rtd_theme'
发布了41 篇原创文章 · 获赞 4 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/u010018991/article/details/102617269