From cf6260c4136c232c7fd608e11b2d9f7f2333a468 Mon Sep 17 00:00:00 2001 From: denehoffman Date: Tue, 19 Nov 2024 18:28:27 -0500 Subject: [PATCH] docs: add copy button to code --- docs/requirements.txt | 1 + docs/source/conf.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index dee52b7..53652a1 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,4 @@ laddu sphinx==8.1.3 sphinx-rtd-theme==3.0.1 +sphinx-copybutton==0.5.2 diff --git a/docs/source/conf.py b/docs/source/conf.py index c71ca5c..8a3ed03 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,7 +17,7 @@ # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ["sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.napoleon"] +extensions = ["sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.napoleon", "sphinx_copybutton"] autodoc_default_options = { "members": True,