docs | 使用 sphinx 转化rst文件为html文档

1. 效果图

book 风格。

优点:

  • 极简风格
  • 右边有标题导航
  • 左侧是文件导航,可隐藏

2. 使用方式

reST 格式,比markdown格式更复杂。

推荐使用 book 风格。

文档构建工具是 sphinx,是一个python包。

复制代码
$ pip3 list | grep -i Sphinx
Sphinx                        7.3.7
sphinxcontrib-applehelp       1.0.8
sphinxcontrib-devhelp         1.0.6
sphinxcontrib-htmlhelp        2.0.5
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.7
sphinxcontrib-serializinghtml 1.1.10


$ pip3 install sphinx-book-theme

# conf.py 
html_theme = 'sphinx_book_theme'

$ make html

注意:上文包名字的下划线_和减号-的区别。

相关推荐
2601_9618454221 小时前
高考真题下载|2025高考全科真题网盘分类整理
搜索引擎·中文分词·solr·lucene·sphinx·高考
本地化文档2 天前
black-docs-l10n
python·github·gitcode·sphinx
本地化文档6 天前
psycopg3-docs-l10n
数据库·python·postgresql·github·gitcode·sphinx
本地化文档9 天前
sphinxcontrib-rust-docs-l10n
python·rust·github·gitcode·sphinx
CoderIsArt2 个月前
Sphinx
搜索引擎·全文检索·sphinx
UhMITKJvJkro4 个月前
LLC谐振变换器变频移相(PFM + PSM)混合控制仿真探秘
sphinx
MC皮蛋侠客5 个月前
部署 Sphinx 文档到 GitHub Pages 详细指南
github·全文检索·sphinx
MC皮蛋侠客5 个月前
使用 Sphinx 构建高质量 Python 文档
python·全文检索·sphinx
Once_day7 个月前
sphinx(3)RST语法
sphinx
闲人编程7 个月前
【指南】为你的开源Python项目编写完善的文档(Sphinx)
python·开源·文档·sphinx·算法改进·codecapsule