From cf40654e4125f0fe1aacc6975f7881396f41a2d8 Mon Sep 17 00:00:00 2001 From: Chirag Shilwant Date: Fri, 1 Nov 2024 05:47:15 +0530 Subject: [PATCH] style(conf): enable sphinx-copybutton Add sphinx-copybutton, a small sphinx extension to add a "copy" button to code blocks. Signed-off-by: Chirag Shilwant --- python-scripts/conf.py | 3 ++- requirements.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python-scripts/conf.py b/python-scripts/conf.py index 27a655db0..d98ef63f9 100644 --- a/python-scripts/conf.py +++ b/python-scripts/conf.py @@ -36,7 +36,8 @@ 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx_rtd_theme', - 'sphinx_tabs.tabs' + 'sphinx_tabs.tabs', + 'sphinx_copybutton' ] # Add any paths that contain templates here, relative to this directory. diff --git a/requirements.txt b/requirements.txt index 0b428da2c..8207c8839 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,7 @@ Pygments==2.11.2 requests==2.31.0 snowballstemmer==2.2.0 Sphinx==4.3.2 +sphinx-copybutton==0.5.2 sphinx-tabs==3.4.5 sphinx-rtd-theme==1.0.0 sphinxcontrib-applehelp==1.0.2