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.20.tar.gz (28.2 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.20-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.20.tar.gz
Algorithm Hash digest
SHA256 5c4282c1c7fc9b5a23febe16ae038b6392d7ce068d186ad4870ba22e74db0711
MD5 ce0623eab95cf96f6bad0e9d0a972349
BLAKE2b-256 1be50549d81b4144a1cc8464d368bd2d7a3482fd185399d9430c548978f13036

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinxcontrib_programoutput-0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 f473f9e7992879358efdeb9962fbec2103f6ba1cb6a738eb7f81dae554bc5ec7
MD5 04c1a25850c638d01dec9e3606e3c51f
BLAKE2b-256 aa02bb155d4a570d7ceaf48e81f1412093ecf066437bfcb56f34c1407bf14f50

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