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

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

相关推荐
轻口味1 个月前
使用sphinx自动提取python中的注释成为接口文档
开发语言·python·sphinx
林戈的IT生涯1 个月前
php连接sphinx的长连接事宜以及sphinx的排除查询以及关于sphinx里使用SetSelect进行复杂的条件过滤或复杂查询
php·sphinx·长连接事宜·sphinx排除查询·sphinx条件过滤·sphinx复杂查询
爱123哈哈1 个月前
win11使用sphinx编写文档并部署到github page
github·全文检索·sphinx
GuokLiu2 个月前
240707-Sphinx配置Pydata-Sphinx-Theme
python·搜索引擎·全文检索·文档·sphinx
*_潇_*2 个月前
0122__linux之eventfd理解
sphinx
LingMax20134 个月前
Mysql8 %中间%模糊搜索 强行 支持 使用 索引 代替全文搜索 全文检索数据库
sql·mysql·elasticsearch·全文检索·中文分词·solr·sphinx
ohsehun_mek05 个月前
从0到1搭建文档库——sphinx + git + read the docs
git·github·sphinx·read the docs
小松聊PHP进阶6 个月前
万字详解PHP+Sphinx中文亿级数据全文检索实战(实测亿级数据0.1秒搜索耗时)
服务器·数据库·sql·mysql·全文检索·php·sphinx
摸鱼仙人~6 个月前
Sphinx + Readthedocs 避坑速通指南
sphinx