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
File details
Details for the file sphinxcontrib-programoutput2-2.0a0.tar.gz
.
File metadata
- Download URL: sphinxcontrib-programoutput2-2.0a0.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb8af24bb7b303b8b783f7df74ed31e636721ac7fa0580a2973d74af1abc136 |
|
MD5 | 2ff25990616f5f41ec7bfbbd04f728d6 |
|
BLAKE2b-256 | 43313962f446c1078db9acd2e1862329e95a01fc748062f3671c708e0495dc76 |
File details
Details for the file sphinxcontrib_programoutput2-2.0a0-py3-none-any.whl
.
File metadata
- Download URL: sphinxcontrib_programoutput2-2.0a0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 057f7c1c78752390c35b80a6266118173335198ab84e1d9ded4fda2a580ef611 |
|
MD5 | db138c398e061c3ac72d5c7f5d572ed5 |
|
BLAKE2b-256 | 42e8a29c4ac063331f2f14439a9bfe54c1a93c9560839217b4727a5fc8905cb8 |