From 91775570cb7576636fcd95c19cc10fff3c14a0cb Mon Sep 17 00:00:00 2001 From: Mathias157 Date: Wed, 18 Sep 2024 21:10:00 +0200 Subject: [PATCH] Added copy button to code snippets --- docs/conf.py | 3 ++- docs/docs_environment.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index de06786..3028f5c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,6 +13,7 @@ extensions = [ "myst_parser", # in order to use markdown "autoapi.extension", # in order to use markdown + "sphinx_copybutton", ] # search this directory for Python files @@ -22,7 +23,7 @@ autoapi_ignore = ["*/conf.py"] myst_enable_extensions = [ - "colon_fence", # ::: can be used instead of ``` for better rendering + "colon_fence", # ::: can be used instead of ``` for better rendering ] html_theme = "sphinx_rtd_theme" diff --git a/docs/docs_environment.yml b/docs/docs_environment.yml index 8da439c..8f8ecc0 100644 --- a/docs/docs_environment.yml +++ b/docs/docs_environment.yml @@ -6,4 +6,5 @@ dependencies: - myst-parser - sphinx - sphinx-rtd-theme - - sphinx-autoapi \ No newline at end of file + - sphinx-autoapi + - sphinx-copybutton \ No newline at end of file