From ac207ce7aaa73b8be3909f9fe575f60870ff179e Mon Sep 17 00:00:00 2001 From: Daniel Yeh <46629671+Dan-Yeh@users.noreply.github.com> Date: Tue, 12 Aug 2025 21:29:02 +0200 Subject: [PATCH] make code blocks copyable (#2480) Co-authored-by: Chen-Chen Yeh --- docs/requirements.txt | 1 + docs/src/conf.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/requirements.txt b/docs/requirements.txt index 9c8ff52f4..06404fa75 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,4 +1,5 @@ sphinx breathe sphinx-book-theme +sphinx-copybutton mlx diff --git a/docs/src/conf.py b/docs/src/conf.py index d9dd32ad1..446d95cd2 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -18,6 +18,7 @@ release = version # -- General configuration --------------------------------------------------- extensions = [ + "sphinx_copybutton", "sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.intersphinx",