From aa32194ad21352700b5101f7032ffacbabae19eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Stefanik?= Date: Tue, 29 Oct 2024 12:17:09 +0100 Subject: [PATCH] attempt to add sphinx_copybutton --- docs/requirements.txt | 1 + docs/source/conf.py | 1 + 2 files changed, 2 insertions(+) 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