A ticket came up today requesting something I’ve also been wanting in the Django documentation, adding a “copy button” to code snippets: #34846 ("Enhancing User Experience: The Need for a 'Copy' Button in Django Website Code Blocks") – Django
Sarah linked to an existing PR to include the
sphinx-copybutton plugin: added sphinx copy button to commands by VenkataBhaskarr · Pull Request #16342 · django/django · GitHub. At first glances this plugin looks nice as it can handle
pycon snippets by removing prompts & output.