From ca82a4b1dff20dba0c852f4e0ac41501cba6e9ab Mon Sep 17 00:00:00 2001 From: Faizan Alam <51821426+Faizan-Alam-1@users.noreply.github.com> Date: Sat, 27 May 2023 17:00:02 +0530 Subject: [PATCH] Add copy button in the documentation code snippets (#840) --- docs/conf.py | 1 + docs/doc_requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index e7c64d07..0cbf3471 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,6 +45,7 @@ extensions = [ 'sphinx.ext.napoleon', 'sphinx.ext.imgconverter', 'IPython.sphinxext.ipython_console_highlighting', + 'sphinx_copybutton', ] # Add any paths that contain templates here, relative to this directory. diff --git a/docs/doc_requirements.txt b/docs/doc_requirements.txt index c01b5965..04c30e60 100644 --- a/docs/doc_requirements.txt +++ b/docs/doc_requirements.txt @@ -2,3 +2,4 @@ sphinx == 4.3.2 # For sphinx documentation sphinx_rtd_theme == 1.0.0 IPython == 8.10.0 # For sphinx documentation sphinxcontrib-napoleon == 0.7 # For auto doc +sphinx-copybutton