From 026dd07e14830ab14ba28db1a435bb50f3700d99 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Fri, 6 Jul 2018 15:58:32 -0700 Subject: [PATCH] copy button --- doc/environment.yml | 1 + doc/source/conf.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/environment.yml b/doc/environment.yml index 824e8ac94b..a707f3d260 100644 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -7,3 +7,4 @@ dependencies: - pip: - recommonmark==0.4.0 - pyyaml + - sphinx-copybutton diff --git a/doc/source/conf.py b/doc/source/conf.py index 6576eed705..10a4a3e00b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -33,7 +33,8 @@ # 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.mathjax'] +extensions = ['sphinx.ext.mathjax', + 'sphinx_copybutton'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']