Skip to main content

Sphinx extension cheeseshop

Project description

Ah! We do have some Camembert, sir…

This extension adds directives for easy linking to Cheese Shop (Python Package Index) packages. It requires Sphinx 1.0.

It’s a bit runny, sir…

It supports a directive and a role, as well as a new config value.

Well, as a matter of fact it’s very runny, sir…

The pypi-release directive adds an HTML-only output block that automatically fetches the download links for the latest release of the given package and displays them as a list. For example,

.. pypi-release:: Sphinx
   :prefix: Download
   :class: sidebar

will display “Download:” and a list of download links (eggs and the source distribution) for the latest Sphinx release. The “sidebar” class makes the resulting <div> appear like a reStructuredText sidebar. Using “prefix”, you can select what text precedes the list.

I think it’s runnier than you like it, sir…

The pypi role links to a package. Use it in one of these forms:

:pypi:`Sphinx`  -- link to latest release
:pypi:`the Sphinx package <Sphinx>`  -- dito, but explicit title given
:pypi:`Sphinx (0.6)`  -- link to specific release
:pypi:`the Sphinx package <Sphinx (0.6)>`  -- dito, with explicit title

This extension also adds a cheeseshop_url config value, which defaults to 'http://pypi.python.org/pypi' and is used to build URLs to the Cheese Shop.

Have fun!

Oh… The cat’s eaten it.

Project details


Download files

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

Files for sphinxcontrib-cheeseshop, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size sphinxcontrib_cheeseshop-0.2-py2.4.egg (6.4 kB) File type Egg Python version 2.4 Upload date Hashes View
Filename, size sphinxcontrib_cheeseshop-0.2-py2.5.egg (6.4 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size sphinxcontrib_cheeseshop-0.2-py2.6.egg (6.4 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size sphinxcontrib-cheeseshop-0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page