Skip to main content

Sphinx extension to include program output

Project description

https://sphinxcontrib-programoutput2.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-programoutput2

The extension requires Sphinx 3.0.0 and Python 3.6 or newer.

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.9.0

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

.. command-output:: python -V

Output:

$ python -V
Python 3.9.0

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-programoutput2-2.0a1.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

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

sphinxcontrib_programoutput2-2.0a1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib-programoutput2-2.0a1.tar.gz.

File metadata

  • Download URL: sphinxcontrib-programoutput2-2.0a1.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sphinxcontrib-programoutput2-2.0a1.tar.gz
Algorithm Hash digest
SHA256 aa8e17aaa2c8a43e134217d115b8c38a994c797e1c7e1ff7cce81d0dae104cc8
MD5 6fd1c5ce9996e5be72541620079dfe6f
BLAKE2b-256 badc9781d6b6c5d958ab1acb63a218af2d6acc23e92cbef460a03d03ec64dffc

See more details on using hashes here.

File details

Details for the file sphinxcontrib_programoutput2-2.0a1-py3-none-any.whl.

File metadata

  • Download URL: sphinxcontrib_programoutput2-2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sphinxcontrib_programoutput2-2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 466e6aeeaca10e3dd07582664e42904dfd88329b6c4c4b98dc78715e9b44a0a1
MD5 f5aad35109c93368ef36970bb7882fc3
BLAKE2b-256 e6db5abb82d6195ecaa3e6f024a2426259ebcb3db62689163a6a47c8a01dda87

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