Skip to content

Commit 516d20d

Browse files
authored
Add copy button to code blocks in documents (#1744)
1 parent 0052967 commit 516d20d

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
# Emits a meta-refresh stub at each old docname listed in `redirects`
5858
# below, so inbound links to pages that have moved keep working.
5959
"sphinx_reredirects",
60+
"sphinx_copybutton",
6061
]
6162

6263
# Old page URLs that have moved. The site is single-version (each release

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,5 @@ docs = [
236236
"sphinx-autoapi>=3.4.0",
237237
"sphinx-reredirects>=0.1.5",
238238
"sphinx>=7.1.2",
239+
"sphinx_copybutton>=0.5.2",
239240
]

uv.lock

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

0 commit comments

Comments
 (0)