I like to write my pydoc with the great Sphinx. One of my preferred feature is the doctest highlighting!!!

In the official PyDoc yesterday i noticed a very cool button >>> that hide / show prompts and output.

To install it we need to download copybutton.js in the static folder; then we can simply add in conf.py auto-gen by Sphinx.

def setup(app):

blog comments powered by Disqus


02 December 2011