From c079a7c2196a713b9392befcb6c5790c43d5663b Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Fri, 12 May 2023 13:30:41 +0200
Subject: [PATCH] Add copybutton to documentation

---
 README.md            | 1 +
 docs_sphinx/conf.py  | 1 +
 requirements_doc.txt | 1 +
 3 files changed, 3 insertions(+)

diff --git a/README.md b/README.md
index e86058a0..9aed2898 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +55,7 @@ To generate the documentation, the following additional packages are required:
     -   [mplsignal](https://mplsignal.readthedocs.io/)
     -   [jupyters-sphinx](https://jupyter-sphinx.readthedocs.io/)
     -   [qtgallery](https://github.com/ixjlyons/qtgallery)
+    -   [sphinx-copybutton](https://sphinx-copybutton.readthedocs.io/)
 
 ### Using setuptools to create a package
 
diff --git a/docs_sphinx/conf.py b/docs_sphinx/conf.py
index 7f335128..9de7534c 100644
--- a/docs_sphinx/conf.py
+++ b/docs_sphinx/conf.py
@@ -28,6 +28,7 @@ extensions = [
     'sphinx_gallery.gen_gallery',
     'numpydoc',  # Needs to be loaded *after* autodoc.
     'jupyter_sphinx',
+    'sphinx_copybutton',
     #    'qtgallery',
 ]
 
diff --git a/requirements_doc.txt b/requirements_doc.txt
index 3bffd7ca..cdd50398 100644
--- a/requirements_doc.txt
+++ b/requirements_doc.txt
@@ -5,3 +5,4 @@ sphinx-gallery
 mplsignal
 jupyter-sphinx
 qtgallery
+sphinx-copybutton
-- 
GitLab