From a1f10d92890e3367f6f5147df336375a820bbbef Mon Sep 17 00:00:00 2001 From: HArsil Date: Tue, 17 Mar 2026 08:04:59 +0530 Subject: [PATCH] docs: add copybutton sphinx extension (#4958) --- docs/requirements.txt | 1 + docs/src/conf.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 0319b3087..dce5387bc 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,6 +1,7 @@ # primary furo==2024.8.6 Sphinx==7.0.1 +sphinx-copybutton==0.5.2 # dependencies alabaster==0.7.16 diff --git a/docs/src/conf.py b/docs/src/conf.py index 354759a23..ffdbedf8e 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -48,7 +48,7 @@ sys.path.insert(0, os.path.abspath('sphinx-plugins')) # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['manpage'] +extensions = ['manpage', 'sphinx_copybutton'] # Add any paths that contain templates here, relative to this directory. templates_path = ['templates']