Skip to main content

github directives and roles for sphinx

Project description

Installation

$ pip install sphinxcontrib-github

Add sphinxcontrib-github to your extensions in conf.py.

extensions.append('sphinxcontrib.github')

or change:

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

to:

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

Setting up API access

First use will require entering your github username and password. Read the source for logging in. It will create an API key with github and save an api id and api key for future usage in your projects directory.

Add .github.auth to your .gitignore.

Usage

github pull request role

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

output:

salt (#7665) Fixed tags for progress events and preload

24 additions(+), 12 deletion(-) 2013-10-08

github repo role

:github-repo:`saltstack/salt`

output:

salt-states-configs: github

github repo directive

.. 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-hypernode.com/pypi/salt

output:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-github-0.1.2.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file sphinxcontrib-github-0.1.2.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-github-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ab3dd533fb1c38736b987c55036ba5b2a09e851be0ebba04ad1733485c44e9c0
MD5 1bd219dc333f45319b83ee1211f0496f
BLAKE2b-256 b9a704676a8028e83e0e636d715573b019e807deb380d8b01e173c8aec937f69

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page