Skip to content

Commit e1026bd

Browse files
committed
🎨 add copy button for code blocks per default
1 parent 0e93852 commit e1026bd

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

developing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ extensions = [
159159
"sphinx.ext.intersphinx", # allows linking to other projects' documentation in API
160160
"sphinx_new_tab_link", # each link opens in a new tab
161161
"myst_nb", # Markdown and Jupyter Notebook support
162+
"sphinx_copybutton", # add copy button to code blocks
162163
]
163164
```
164165

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"sphinx.ext.intersphinx", # allows linking to other projects' documentation in API
3737
"sphinx_new_tab_link", # each link opens in a new tab
3838
"myst_nb", # Markdown and Jupyter Notebook support
39+
"sphinx_copybutton", # add copy button to code blocks
3940
]
4041

4142
# https://myst-nb.readthedocs.io/en/latest/computation/execute.html

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ docs = [
3939
"ipywidgets",
4040
"sphinx-new-tab-link!=0.2.2",
4141
"jupytext",
42+
"sphinx-copybutton",
4243
]
4344
# local development options
4445
dev = ["black[jupyter]", "ruff", "pytest"]

0 commit comments

Comments
 (0)