跳转到主要内容

sphinx的github指令和角色

项目描述

在您的sphinx简历/项目中展示github存储库和pull请求。

https://badge.fury.io/py/sphinxcontrib-github.png

安装

$ pip install sphinxcontrib-github

将sphinxcontrib-github添加到您的conf.py中的extensions。

extensions.append('sphinxcontrib.github')

或者更改

extensions = ['sphinx.ext.intersphinx', ...]

extensions = ['sphinx.ext.intersphinx', 'sphinxcontrib.github', ...]

设置API访问

第一次使用需要输入您的github用户名和密码。阅读登录源。它将在github创建一个API密钥,并在项目目录中保存api id和api密钥以供将来使用。

.github.auth添加到您的.gitignore

使用

github pull request角色

:github-pr:`saltstack/salt/pull/7665`

输出

salt (#7665) 修复进度事件和预加载的标签

24次添加(+), 12次删除(-) 2013-10-08

github repo角色

:github-repo:`saltstack/salt`

输出

salt-states-configs: github

github repo指令

.. github-repo:: saltstack/salt
    :homepage: http://www.saltstack.org/
    :travis: https://www.travis-ci.org/saltstack/salt/
    :docs: http://salt.readthedocs.org/en/v0.16.4/
    :api: http://salt.readthedocs.org/en/v0.16.4/ref/python-api.html
    :pypi: https://pypi.python.org/pypi/salt

输出

github - travis - docs - api - pypi - homepage - 2296 watchers - 813 forks

python支持

2.7

sphinx支持

>=0.6

文档

http://sphinxcontrib-github.rtfd.org

API

http://sphinxcontrib-github.readthedocs.org/en/latest/api.html

更新日志

http://sphinxcontrib-github.readthedocs.org/en/latest/history.html

问题

https://github.com/tony/sphinxcontrib-github/issues

源代码

https://github.com/tony/sphinxcontrib-github

pypi

https://pypi.python.org/pypi/sphinxcontrib-github

许可证

BSD许可协议.

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

sphinxcontrib-github-0.1.3.tar.gz (6.2 kB 查看哈希值)

上传时间 源代码

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面