From 8cb68ea02c755d79cbd33ce4d4e2455f5e90f4d5 Mon Sep 17 00:00:00 2001 From: Josh Richards Date: Fri, 17 May 2024 08:51:03 -0400 Subject: [PATCH] feat(docs): Add a "copy" button to code blocks Signed-off-by: Josh Richards --- conf.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 98091a240..7ad81c245 100644 --- a/conf.py +++ b/conf.py @@ -8,7 +8,7 @@ dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.path.abspath(dir_path + '/_ext')) now = datetime.datetime.now() -extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode'] +extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode', 'sphinx_copybutton'] # General information about the project. copyright = str(now.year) + ' Nextcloud GmbH' diff --git a/requirements.txt b/requirements.txt index a2103353a..43b91d8d4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,6 +18,7 @@ rst2pdf==0.101 smartypants==2.0.1 snowballstemmer==2.2.0 Sphinx==7.2.6 +sphinx-copybutton==0.5.2 sphinx-rtd-theme==2.0.0 sphinx-rtd-dark-mode==1.3.0 sphinxcontrib-applehelp==1.0.8