From 1c4125d717ea64d4d66533d52a0bbc6ac4447f9d Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Wed, 10 Jul 2024 13:44:01 -0500 Subject: [PATCH] docs: add copybutton to code blocks (#374) --- 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 b1e977f3..9d9b7f0e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,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 972b11bf..4072332b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,4 @@ furo sphinx myst-parser +sphinx-copybutton