【文件属性】:
文件名称:Sphinx 生成HTML 格式API文档
文件大小:6KB
文件格式:ZIP
更新时间:2020-03-26 04:43:55
Sphinx HTML API
[Sphinx](http://www.sphinx-doc.org/en/stable/contents.html)
Install [python](https://www.python.org/downloads/)
Install Sphinx
python -m pip install -U pip Sphinx
set PATH environment
C:\Users\XXX\AppData\Local\Programs\Python\Python36\Scripts
Setup work directory
sphinx-quickstart
Dowmload [sublime-rst-completion](https://github.com/mgaitan/sublime-rst-completion)
Edit conf.py Line 90 - Line 116
html_theme = "classic"
html_theme_options = {
"nosidebar": "false",
"relbarbgcolor": "black",
"collapsiblesidebar": "true",
"footerbgcolor" : "",
"footertextcolor" : "",
"sidebarbgcolor" : "#333",
"sidebarbtncolor" : "",
"sidebartextcolor" : "#ccc",
"sidebarlinkcolor" : "#ccc",
"relbarbgcolor" : "#0084B6",
"relbartextcolor" : "#FFF",
"relbarlinkcolor" : "#FFF",
"bgcolor" : "#fff",
"textcolor" : "#333",
"linkcolor" : "#43853d",
"visitedlinkcolor" : "",
"headbgcolor" : "",
"headtextcolor" : "#43853d",
"headlinkcolor" : "",
"codebgcolor" : "",
"codetextcolor" : "",
"bodyfont" : "Lato, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Verdana, Tahoma, sans-serif",
"headfont" : ""
}
Edit /source/_static/classic.css Line 241 - Line 247
th {
background-color: #43853d;
}
th.head {
color:#ddd;
}
附加是一个可以直接运行的Demo。
============================
【文件预览】:
source
----_templates()
----conf.py(6KB)
----sample02.rst(751B)
----index.rst(420B)
----sample01.rst(751B)
----_static()
--------classic.css(4KB)
make.bat
build
Makefile