From 0c32201d1b17b3bd8836ec7708f77e10fcc4a7f6 Mon Sep 17 00:00:00 2001 From: William Budiatmadjaja Date: Tue, 7 Dec 2021 09:28:41 +0100 Subject: [PATCH] Add copybutton extension to RTD #188 --- doc/rtd/conf.py | 2 +- doc/rtd/requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/rtd/conf.py b/doc/rtd/conf.py index 5b9a9cc88..d75553bfd 100644 --- a/doc/rtd/conf.py +++ b/doc/rtd/conf.py @@ -30,7 +30,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_copybutton'] autodoc_member_order = 'bysource' # Add any paths that contain templates here, relative to this directory. diff --git a/doc/rtd/requirements.txt b/doc/rtd/requirements.txt index 1f2d2cf92..49a3b26c1 100644 --- a/doc/rtd/requirements.txt +++ b/doc/rtd/requirements.txt @@ -1,3 +1,4 @@ sphinx sphinx_rtd_theme -sphinxcontrib-napoleon \ No newline at end of file +sphinxcontrib-napoleon +sphinx-copybutton \ No newline at end of file