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
start Xvfb headless X server using pyvirtualdisplay
redirect program display to Xvfb server by setting $DISPLAY variable.
wait some seconds
take screenshot by pyscreenshot which needs scrot.
use .. image:: directive to display image
Installation
General
Ubuntu
sudo apt-get install python-pip sudo apt-get install scrot sudo apt-get install xvfb sudo apt-get install xserver-xephyr sudo apt-get install python-imaging sudo pip install sphinxcontrib-programscreenshot
Uninstall
# as root pip uninstall sphinxcontrib-programscreenshot
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
Close
Hashes for sphinxcontrib-programscreenshot-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63f1920e4f70bd0eefe8c91ddb7654001d8b010c54a012df596467a64b8e7545 |
|
MD5 | 3682767e01dad2824c5c631e78fb69ae |
|
BLAKE2b-256 | 80d0424d9b8297fcf22443dde73f14223c1e49f96e01da700af0f6c12d37d65e |