Skip to main content

Sphinx extension to include program output

Project description

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 5.0 and Python 3.8+.

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 3.14.2

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

.. command-output:: python -V

Output:

$ python -V
Python 3.14.2

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.19.tar.gz (27.5 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.19-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.19.tar.gz
Algorithm Hash digest
SHA256 787ca068b7e1205ed492ea20a23a8e599c3b4edb8c43bacf564e5ec7c30c7dad
MD5 e3084494dd0598612644c02586d0e99f
BLAKE2b-256 5bc3670084aead0328cb06d6802d6bd9e382f69e93e79a06c278a0447171a1ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 95ff4219ecee64bebf4fc6d2339cb1c2f313258b9999143e54839d83ae32afd1
MD5 1eea5294411b889eea787b3d2c101107
BLAKE2b-256 e790c9d63522a83dd0cc488646179b31638799901d91e6ff856341fb3f31be9a

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