Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opennti/sphinxcontrib-programoutput
Sphinx extension for capturing program output
https://github.com/opennti/sphinxcontrib-programoutput
python sphinx sphinx-extension
Last synced: 11 days ago
JSON representation
Sphinx extension for capturing program output
- Host: GitHub
- URL: https://github.com/opennti/sphinxcontrib-programoutput
- Owner: OpenNTI
- License: bsd-3-clause
- Created: 2017-01-06T22:52:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T18:04:56.000Z (over 1 year ago)
- Last Synced: 2024-10-31T05:35:27.473Z (18 days ago)
- Topics: python, sphinx, sphinx-extension
- Language: Python
- Homepage:
- Size: 153 KB
- Stars: 38
- Watchers: 9
- Forks: 18
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
=============================
sphinxcontrib-programoutput
=============================.. image:: https://github.com/NextThought/sphinxcontrib-programoutput/workflows/tests/badge.svg
:target: https://github.com/NextThought/sphinxcontrib-programoutput/actions?query=workflow%3Atests.. image:: https://coveralls.io/repos/github/NextThought/sphinxcontrib-programoutput/badge.svg
:target: https://coveralls.io/github/NextThought/sphinxcontrib-programoutputhttps://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.7.0 and Python 2.7 or Python 3 (Python
3.6+ 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.1Please 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... _Sphinx: http://www.sphinx-doc.org/en/stable/
.. _PyPI: http://pypi.python.org/pypi/sphinxcontrib-programoutput
.. _documentation: http://sphinxcontrib-programoutput.readthedocs.org