Skip to content

Commit 90ec757

Browse files
authored
Add sphinx copy button for code blocks (#1854)
1 parent 4a3be51 commit 90ec757

File tree

4 files changed

+35
-11
lines changed

4 files changed

+35
-11
lines changed

docs/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ dependencies:
1010
- nbsphinx-link
1111
- sphinx
1212
- sphinx_bootstrap_theme
13+
- sphinx-copybutton
1314
- IPython
1415
- ..

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom
3939
# ones.
4040
extensions = [
41+
"sphinx_copybutton",
4142
"sphinx.ext.autosectionlabel",
4243
"sphinx.ext.autosummary",
4344
"sphinx.ext.napoleon",

poetry.lock

Lines changed: 32 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pytest-timeout = "^2.1.0"
7272
pydot = "^1.4.2"
7373
sphinx = "^4.2.0"
7474
sphinx-bootstrap-theme = "^0.8.0"
75+
sphinx-copybutton = "^0.5.1"
7576
nbsphinx = "^0.8.8"
7677
nbsphinx-link = "^1.3.0"
7778
IPython = "^7.34.0"

0 commit comments

Comments
 (0)