From e9d2cea2a3f620c5699c58a5b5d7cbf4f9dc0ba7 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Fri, 25 Mar 2022 13:29:37 +0100 Subject: [PATCH] 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 --- doc/conf.py | 1 + scripts/requirements-doc.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index e9d77875763..101ea82a021 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -82,6 +82,7 @@ extensions = [ "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 8a518a69dd3..abc92e70412 100644 --- a/scripts/requirements-doc.txt +++ b/scripts/requirements-doc.txt @@ -7,6 +7,7 @@ sphinx-tabs sphinxcontrib-svg2pdfconverter pygments>=2.9 sphinx-notfound-page +sphinx-copybutton # YAML validation. Used by zephyr_module. PyYAML>=5.1