diff --git a/docs/requirements.txt b/docs/requirements.txt index 3bae619297..de8870c9fe 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -12,3 +12,4 @@ pyro-api>=0.1.1 tqdm>=4.36 funsor[torch] setuptools +sphinx_copybutton diff --git a/docs/source/conf.py b/docs/source/conf.py index afb694ddd1..9d7b6b063e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -48,6 +48,7 @@ "sphinx.ext.autodoc", "sphinx.ext.doctest", 'sphinx.ext.napoleon', + "sphinx_copybutton", ] # Disable documentation inheritance so as to avoid inheriting