python-sphinx-copybutton

Sphinx-copybutton does one thing: add a little "copy" button to the right of your code blocks. If the code block overlaps to the right of the text area, you can just click the button to get the whole thing.