doc: enable sphinx-copybutton extension

The sphinx-copybutton extension adds a button to every code snippet
that, when clicked, copies the code to the clipboard.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
diff --git a/doc/conf.py b/doc/conf.py
index e9d7787..101ea82 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -82,6 +82,7 @@
     "zephyr.doxyrunner",
     "zephyr.vcs_link",
     "notfound.extension",
+    "sphinx_copybutton",
     "zephyr.external_content",
 ]
 
diff --git a/scripts/requirements-doc.txt b/scripts/requirements-doc.txt
index 8a518a6..abc92e7 100644
--- a/scripts/requirements-doc.txt
+++ b/scripts/requirements-doc.txt
@@ -7,6 +7,7 @@
 sphinxcontrib-svg2pdfconverter
 pygments>=2.9
 sphinx-notfound-page
+sphinx-copybutton
 
 # YAML validation. Used by zephyr_module.
 PyYAML>=5.1