From 1be87329ff11ec97c5cfbc755c859ec3f1d6772c Mon Sep 17 00:00:00 2001 From: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> Date: Fri, 4 Nov 2022 13:18:28 -0700 Subject: [PATCH] [DOC] add sphinx-copybutton requirement to copy button on code snippets. (#5326) Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> Signed-off-by: andrusenkoau --- docs/source/conf.py | 2 +- requirements/requirements_docs.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index c4f9ad7e9e38..236c4f8a8af6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -109,7 +109,7 @@ "sphinx.ext.intersphinx", "sphinx.ext.autosectionlabel", "sphinxcontrib.bibtex", - # "sphinx_rtd_theme", + "sphinx_copybutton", ] bibtex_bibfiles = [ diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index 561b3d3f507c..4b75cf8c6b75 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -1,6 +1,7 @@ latexcodec sphinx>=3.0 sphinx-book-theme +sphinx-copybutton sphinxcontrib-bibtex wrapt numpy