Skip to main content

Sphinx extension to include program output

Project description

https://secure.travis-ci.org/lunaryorn/sphinxcontrib-programoutput.png

http://sphinxcontrib-programoutput.readthedocs.org

A Sphinx extension to literally insert the output of arbitrary commands into documents, helping you to keep your command examples up to date.

Installation

Install this extension from the Cheeseshop:

pip install sphinxcontrib-programoutput

The extension requires Sphinx 1.1 and Python 2.6 or Python 3.1 at least.

Usage

Just add this extension to extensions:

extensions = ['sphinxcontrib.programoutput']

Now you’ve two new directives program-output and command-output to insert the output of programs. The former just inserts the output:

.. program-output:: python -V

Output:

Python 2.7.1

The latter directive mimics a shell session, and is intended to show examples:

.. command-output:: python -V

Output:

$ python -V
Python 2.7.1

Please refer to the documentation for comprehensive information about usage and configuration of this extension.

Support

Please report issues to the issue tracker if you have trouble or found a bug in this extension, but respect the following guidelines:

  • Check that the issue has not already been reported.

  • Check that the issue is not already fixed in the master branch.

  • Open issues with clear title and a detailed description in grammatically correct, complete sentences.

Development

The source code is hosted on Github:

git clone https://github.com/lunaryorn/sphinxcontrib-programoutput

Please fork the repository and send pull requests with your fixes or features, but respect these guidelines:

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sphinxcontrib_programoutput-0.8-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

sphinxcontrib_programoutput-0.8-cp35-none-any.whl (9.0 kB view details)

Uploaded CPython 3.5

sphinxcontrib_programoutput-0.8-cp27-none-any.whl (9.0 kB view details)

Uploaded CPython 2.7

File details

Details for the file sphinxcontrib_programoutput-0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8220004935e1f5e68e5201eb4e9a400df73d8570f70044491715324cffa33fbe
MD5 125e203920a1f71a5ce792998f72bac6
BLAKE2b-256 f0ce205bc4b721002f441dd2428908d09c91d167cc4165ccdbb8275521cc97ff

See more details on using hashes here.

File details

Details for the file sphinxcontrib_programoutput-0.8-cp35-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.8-cp35-none-any.whl
Algorithm Hash digest
SHA256 946b1fc839461abbce19a32d1b21fc922cca7e4be5ee094d15f9fad1cbef21d6
MD5 fbe20e52445520b6eb6e5f984f3f24e7
BLAKE2b-256 5ed4ccc1ab3ce03f3b24a9b496cdee7166d48f24d60211506382ee4816e67ee1

See more details on using hashes here.

File details

Details for the file sphinxcontrib_programoutput-0.8-cp27-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.8-cp27-none-any.whl
Algorithm Hash digest
SHA256 5e36f487fbddd4f6cf1949ab336f1ed0a692dc623b29dc72573d54a1d76d6b29
MD5 eff2c7a527c9581d23c7f589a8a13b6f
BLAKE2b-256 70336b565d47f8543f018b8026e104c1fb63785af3ba85120de93cee70c3d36e

See more details on using hashes here.

Supported by

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