Skip to content

Commit 9ea34e8

Browse files
committed
Add copy buttons to docs code blocks
1 parent b3df972 commit 9ea34e8

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def _get_version() -> str:
4444
"sphinx.ext.autodoc",
4545
"sphinx.ext.viewcode",
4646
"sphinx.ext.intersphinx",
47+
"sphinx_copybutton",
4748
]
4849

4950
# List of patterns, relative to source directory, that match files and

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ test = [
6464
docs = [
6565
"furo>=2024.8.6",
6666
"sphinx>=7.4.7",
67+
"sphinx-copybutton>=0.5.2",
6768
]
6869

6970
django42 = [ "django>=4.2a1,<5; python_version>='3.8'" ]

uv.lock

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)