From 708e625615785d6585492aa70a011e3ca8521177 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sun, 23 May 2021 23:47:26 +0300 Subject: [PATCH] Add copy button to the docs --- docs/conf.py | 3 ++- requirements-dev.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 2d5d9eb3..0c06232f 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,7 +31,8 @@ needs_sphinx = '2.1' # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'myst_parser' + 'myst_parser', + 'sphinx_copybutton' ] # Add any paths that contain templates here, relative to this directory. diff --git a/requirements-dev.txt b/requirements-dev.txt index cd5edb93..a82294f2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,6 +5,7 @@ pre-commit pytest requests sphinx>=2.1 +sphinx-copybutton sphinx-intl tabulate transifex-client