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

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

相关推荐
本地化文档12 天前
poethepoet-docs-l10n
python·github·gitcode·sphinx
本地化文档19 天前
gazebosim-docs-l10n
机器人·github·gitcode·sphinx
本地化文档20 天前
skbuild-docs-l10n
python·github·gitcode·sphinx
本地化文档2 个月前
xlwings-docs-l10n
python·github·excel·gitcode·sphinx
2601_961875243 个月前
法考资料电子版|pdf|资料已整理
elasticsearch·搜索引擎·pdf·全文检索·solr·lucene·sphinx
2601_961845423 个月前
考研公共课资料推荐|英语数学政治|电子版|资料已整理
搜索引擎·中文分词·solr·lucene·sphinx·高考
2601_961845423 个月前
高考真题下载|2025高考全科真题网盘分类整理
搜索引擎·中文分词·solr·lucene·sphinx·高考
本地化文档3 个月前
black-docs-l10n
python·github·gitcode·sphinx
本地化文档3 个月前
psycopg3-docs-l10n
数据库·python·postgresql·github·gitcode·sphinx
本地化文档3 个月前
sphinxcontrib-rust-docs-l10n
python·rust·github·gitcode·sphinx