From 2238e9baf94d1d2af794d6cb064dbac098abd3f3 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 20 May 2022 14:57:26 -0700 Subject: [PATCH] sphinx-copybutton extension, closes #436 --- docs/conf.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7244d2d..996a499 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,7 +30,7 @@ from subprocess import Popen, PIPE # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc"] +extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc", "sphinx_copybutton"] autodoc_member_order = "bysource" autodoc_typehints = "description" diff --git a/setup.py b/setup.py index 51830e3..eafb1ce 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ setup( ], extras_require={ "test": ["pytest", "black", "hypothesis", "cogapp"], - "docs": ["furo", "sphinx-autobuild", "codespell"], + "docs": ["furo", "sphinx-autobuild", "codespell", "sphinx-copybutton"], "mypy": [ "mypy", "types-click",