Skip to main content

Sphinx extension to include program output

Project description

https://github.com/NextThought/sphinxcontrib-programoutput/workflows/tests/badge.svg https://coveralls.io/repos/github/NextThought/sphinxcontrib-programoutput/badge.svg

https://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.7.0 and Python 2.7 or Python 3 (Python 3.6+ 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.

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_programoutput-0.18.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

sphinxcontrib_programoutput-0.18-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib_programoutput-0.18.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.18.tar.gz
Algorithm Hash digest
SHA256 09e68b6411d937a80b6085f4fdeaa42e0dc5555480385938465f410589d2eed8
MD5 e1b57af28f8265e29003e4e067a4583d
BLAKE2b-256 3fc0834af2290f8477213ec0dd60e90104f5644aa0c37b1a0d6f0a2b5efe03c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 8a651bc85de69a808a064ff0e48d06c12b9347da4fe5fdb1e94914b01e1b0c36
MD5 e14a36320f51783cddeb3b16953c5e09
BLAKE2b-256 042c7aec6e0580f666d4f61474a50c4995a98abfff27d827f0e7bc8c4fa528f5

See more details on using hashes here.

Supported by

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