Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for sphinxcontrib-programscreenshot 0.0.1dev-20110212

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-programscreenshot 0.0.1dev-20110212
File Size Uploaded
sphinxcontrib-programscreenshot-0.0.1dev-20110212.tar.gz 31.2 kB Details

Release files / sphinxcontrib-programscreenshot-0.0.1dev-20110212.tar.gz

Download URL sphinxcontrib-programscreenshot-0.0.1dev-20110212.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9c6664112f12197d7439cc4bcde1b511dd2c9dac75805bc6ccc15095efce1c84
BLAKE2b-256 checksum
How to use checksums
b79fbdecb2ec8d2e63f95b35d4a8773f1a56f3956a1027ff1eb187406548793b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page