From 0d7a48439e307e31dc273e90d485814dc88eeac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Wed, 11 Mar 2026 14:11:20 -0600 Subject: [PATCH] Add a copy button to code blocks in the docs --- docs/conf.py | 2 +- docs/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index f647e9ba..97e41c9e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,7 +31,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['myst_parser'] +extensions = ['myst_parser', 'sphinx_copybutton'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/requirements.txt b/docs/requirements.txt index 001c1d75..6531ad7b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -4,3 +4,4 @@ docutils == 0.21.2 sphinx == 8.2.3 myst-parser == 4.0.1 furo == 2025.7.19 +sphinx-copybutton==0.5.2