This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch docs/copy-code-block-feature
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit cf1b1c86eff686c563d37330d48c841ae6484d1a
Author: Ronny Berndt <[email protected]>
AuthorDate: Fri Jan 5 20:31:46 2024 +0100

    Add extension for copying code blocks with just one click
    
    Add the sphinx-copybutton extension to get this functionality for code 
blocks.
---
 src/docs/requirements.txt | 1 +
 src/docs/src/conf.py      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/docs/requirements.txt b/src/docs/requirements.txt
index 5e9942b9b..de04c55ce 100644
--- a/src/docs/requirements.txt
+++ b/src/docs/requirements.txt
@@ -2,3 +2,4 @@ Sphinx==7.2.6
 sphinx-rtd-theme==2.0.0
 sphinxcontrib-httpdomain==1.8.1
 sphinxcontrib-jquery==4.1
+sphinx-copybutton==0.5.2
diff --git a/src/docs/src/conf.py b/src/docs/src/conf.py
index eadfa2420..f672a3a31 100644
--- a/src/docs/src/conf.py
+++ b/src/docs/src/conf.py
@@ -24,6 +24,7 @@ extensions = [
     "sphinx.ext.extlinks",
     "sphinxcontrib.httpdomain",
     "sphinxcontrib.jquery",
+    "sphinx_copybutton",
     "configdomain",
 ]
 

Reply via email to