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