Skip to content

Commit ca7f5ea

Browse files
committed
Add copy button to code blocks
1 parent 7495bfe commit ca7f5ea

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Features:
2828
- Add ``supported_np_pix_fmts`` by :gh-user:`WyattBlue` in (:pr:`1766`).
2929
- Add ``Codec.canonical_name`` by :gh-user:`WyattBlue`.
3030

31-
Misc.
31+
Misc:
32+
3233
- Drop support for MacOS 11 by :gh-user:`WyattBlue` in (:pr:`1764`).
3334
- Add warnings when compiling from source by :gh-user:`WyattBlue` in (:pr:`1773`).
3435

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _build/rst/%.rst: %.py $(TAGFILE) $(shell find ../include ../av -name '*.pyx' -o
1717
mv $@.tmp $@
1818

1919
html: $(RENDERED)
20-
$(PIP) install -U sphinx
20+
$(PIP) install -U sphinx sphinx-copybutton
2121
rm -rf $(BUILDDIR)
2222
sphinx-build -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
2323

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"sphinx.ext.viewcode",
1717
"sphinx.ext.extlinks",
1818
"sphinx.ext.doctest",
19+
"sphinx_copybutton", # Add copy button to code blocks
1920
]
2021

2122
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)