From ba462c9526b115524a4b8ea423f468030a2f2dc5 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sat, 2 Mar 2024 13:15:17 +0100 Subject: [PATCH] Doc: Add copy button to the right of codeblocks --- doc/source/conf.py | 2 +- doc/source/requirements.txt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index df07273..8153904 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -14,7 +14,7 @@ release = '1.0' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ['myst_parser', 'sphinx_markdown_builder', 'sphinx_rtd_dark_mode'] +extensions = ['sphinx_rtd_dark_mode', 'sphinx_copybutton'] templates_path = ['_templates'] exclude_patterns = ['_build'] diff --git a/doc/source/requirements.txt b/doc/source/requirements.txt index ba97ce7..9cf9e95 100644 --- a/doc/source/requirements.txt +++ b/doc/source/requirements.txt @@ -1,5 +1,6 @@ sphinx sphinx-rtd-theme sphinx-rtd-dark-mode -myst-parser -sphinx_markdown_builder + +# Adds a 'copy' button to the right of codeblocks. +sphinx-copybutton