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;
} `




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值