Skip to main content

Sphinx extension to include screenshot of programs

Project description

This Sphinx 1.0 extension executes programs during the build step and includes their screenshot into the documentation. GUI version of the sphinxcontrib.programoutput extension.

home: https://github.com/ponty/sphinxcontrib-programscreenshot

documentation: http://ponty.github.com/sphinxcontrib-programscreenshot

Basic usage

.. program-screenshot:: xmessage hello
    :prompt:

How it works

  1. start Xvfb headless X server using PyVirtualDisplay

  2. redirect program display to Xvfb server by setting $DISPLAY variable.

  3. wait some seconds

  4. take screenshot by pyscreenshot which needs scrot.

  5. use .. image:: directive to display image

Installation

General

if you have setuptools installed:

# as root
easy_install sphinxcontrib-programscreenshot

if you have pip installed:

# as root
pip install sphinxcontrib-programscreenshot

Ubuntu

sudo apt-get install python-setuptools
sudo apt-get install scrot
sudo apt-get install xvfb
sudo apt-get install xserver-xephyr
sudo apt-get install python-imaging
sudo easy_install sphinxcontrib-programscreenshot

Uninstall

# as root
pip uninstall sphinxcontrib-programscreenshot

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

File details

Details for the file sphinxcontrib-programscreenshot-0.0.3dev-20110422.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-programscreenshot-0.0.3dev-20110422.tar.gz
Algorithm Hash digest
SHA256 881ab1eb0b5d3ea3ce2cffccb3a4fe95c6d76851cdb329d1548f3930402b717d
MD5 1ba487e74da5685b4f5ea1c6e1bbdea8
BLAKE2b-256 50b0a62eb4489c9c81e251781e5f0fc6532d15391c78588f7f4171b3f0c67c6c

See more details on using hashes here.

Supported by

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