Skip to main content

docutils extension to insert stdout of given shell command

Project description

This package defines the shell directive, a Docutils extension which can insert the output of any shell command into your restructered text markup.

For example, this markup:

.. shell:: hg parent --template {rev}
           REVISION

.. shell:: date "+built on %a %d %b %Y at %X %Z"
           TIMESTAMP

Revision |REVISION|, |TIMESTAMP|

Will appear something like this:

Revision 5, built on Sun 14 Jun 2015 at 13:02:21 CDT

See http://pythonhosted.org/docutils_shell/ for more information.

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

docutils_shell-0.0.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page