sphinxcontrib-programscreenshot 0.0.5

Creator: bradpython12

Last updated:

0 purchases

TODO
Add to Cart

Description:

sphinxcontribprogramscreenshot 0.0.5

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


install Xvfb and Xephyr
install PIL
install scrot
install pip
install the program:
# as root
pip install sphinxcontrib-programscreenshot





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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.