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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sphinxcontrib-programoutput2-2.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa8e17aaa2c8a43e134217d115b8c38a994c797e1c7e1ff7cce81d0dae104cc8 |
|
MD5 | 6fd1c5ce9996e5be72541620079dfe6f |
|
BLAKE2b-256 | badc9781d6b6c5d958ab1acb63a218af2d6acc23e92cbef460a03d03ec64dffc |
Hashes for sphinxcontrib_programoutput2-2.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 466e6aeeaca10e3dd07582664e42904dfd88329b6c4c4b98dc78715e9b44a0a1 |
|
MD5 | f5aad35109c93368ef36970bb7882fc3 |
|
BLAKE2b-256 | e6db5abb82d6195ecaa3e6f024a2426259ebcb3db62689163a6a47c8a01dda87 |