Skip to main content
https://secure.travis-ci.org/NextThought/sphinxcontrib-programoutput.png https://coveralls.io/repos/github/NextThought/sphinxcontrib-programoutput/badge.svg

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 PyPI:

pip install sphinxcontrib-programoutput

The extension requires Sphinx 1.3.5 and Python 2.7 or Python 3 (Python 3.5+ is tested) 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.

Development and Support

Please refer to the documentation for information on support and the development process.

Download files

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

Source Distribution

sphinxcontrib-programoutput-0.10.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

sphinxcontrib_programoutput-0.10-py2.py3-none-any.whl (19.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sphinxcontrib-programoutput-0.10.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-programoutput-0.10.tar.gz
Algorithm Hash digest
SHA256 fdee94fcebb0d8fddfccac5c4fa560f6177d5340c4349ee447c890bea8857094
MD5 8e511e476c67696c7ae2c08b15644eb4
BLAKE2b-256 aae12a999a0dc384928356e53ba3ec9461a928e75ba1d26c6cc4a2173b76ce17

See more details on using hashes here.

File details

Details for the file sphinxcontrib_programoutput-0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9d665ece29627d87b7e3b678bbba4007f147de0ee27418c66b6128329b0c49ad
MD5 fe176bd233d9ce238c95fdcaa8bdbefc
BLAKE2b-256 c270addc3e19a10558d378ec59e5c00f7c5605ac4e5b09a4f6ef32b62ae0b53d

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 Sentry Error logging StatusPage Status page