From d1f88ec51042acb5a44106228cc4f8b7a3d772e0 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Wed, 30 Dec 2020 07:24:02 -0800 Subject: Add sphinx-copybutton to docs to make it easier to copy code blocks. - requires Python 3.4+ --- docs/conf.py | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 613f38dca..a03c61ec7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -56,6 +56,7 @@ extensions = [ 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode', 'sphinxcontrib.autoprogram', + 'sphinx_copybutton', # enable pylons_sphinx_latesturl when this branch is no longer "latest" # 'pylons_sphinx_latesturl', ] diff --git a/setup.py b/setup.py index 84d68c933..dcd2fe468 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ docs_extras = [ 'pylons-sphinx-themes >= 1.0.8', # Ethical Ads 'pylons_sphinx_latesturl', 'repoze.sphinx.autointerface', + 'sphinx-copybutton', 'sphinxcontrib-autoprogram', ] -- cgit v1.2.3