From c5816bdd833d47a30999907473d3c0ec8fe28f17 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 7 Nov 2023 15:58:02 -0800 Subject: [PATCH] Doc: Button to Copy Code Blocks Add a copy button to every code block in the docs. --- docs/requirements.txt | 1 + docs/source/conf.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/requirements.txt b/docs/requirements.txt index e513cec7..f346cd9b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,5 +6,6 @@ matplotlib nbsphinx numpydoc pydata-sphinx-theme +sphinx-copybutton sphinx-design sphinx-gallery diff --git a/docs/source/conf.py b/docs/source/conf.py index 0c41a2b5..66caf351 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -38,6 +38,7 @@ "sphinx.ext.coverage", "sphinx.ext.autosummary", "sphinx.ext.viewcode", + "sphinx_copybutton", "sphinx_design", "numpydoc", "matplotlib.sphinxext.plot_directive",