Skip to content

Commit

Permalink
Add sphinx-copybutton to allow copying code blocks with a single clic…
Browse files Browse the repository at this point in the history
…k of a button
  • Loading branch information
stevepiercy committed Jul 3, 2024
1 parent 470485b commit 3626458
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ New features:
- Add function ``icalendar.use_pytz()``.
- Add `sphinx-autobuild` for `livehtml` Makefile target.
- Add pull request preview on Read the Docs.
- Add sphinx-copybutton to allow copying code blocks with a single click of a button.

Bug fixes:

Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.viewcode'
'sphinx.ext.viewcode',
'sphinx_copybutton'
]
source_suffix = '.rst'
master_doc = 'index'
Expand Down
1 change: 1 addition & 0 deletions requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Sphinx>=1.2.3
sphinx_rtd_theme
sphinx-autobuild
sphinx-copybutton
.

0 comments on commit 3626458

Please sign in to comment.