Sphinx extension to include program output
Project description
http://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 1.3.5 and Python 2.7 or Python 3 (Python 3.5+ is tested) at least.
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 2.7.1
The latter directive mimics a shell session, and is intended to show examples:
.. command-output:: python -V
Output:
$ python -V Python 2.7.1
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-programoutput-0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdee94fcebb0d8fddfccac5c4fa560f6177d5340c4349ee447c890bea8857094 |
|
MD5 | 8e511e476c67696c7ae2c08b15644eb4 |
|
BLAKE2b-256 | aae12a999a0dc384928356e53ba3ec9461a928e75ba1d26c6cc4a2173b76ce17 |
Hashes for sphinxcontrib_programoutput-0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d665ece29627d87b7e3b678bbba4007f147de0ee27418c66b6128329b0c49ad |
|
MD5 | fe176bd233d9ce238c95fdcaa8bdbefc |
|
BLAKE2b-256 | c270addc3e19a10558d378ec59e5c00f7c5605ac4e5b09a4f6ef32b62ae0b53d |