diff --git a/CHANGES.rst b/CHANGES.rst index bb5ee620..74405b16 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -65,10 +65,11 @@ New features: - Test compatibility with Python 3.12 - Add function ``icalendar.use_pytz()``. -- Add `sphinx-autobuild` for `livehtml` Makefile target. +- Add ``sphinx-autobuild`` for ``livehtml`` Makefile target. - Add pull request preview on Read the Docs, building only on changes to documentation-related files. - Add link to pull request preview builds in the pull request description only when there are changes to documentation-related files. - Add documentation of live HTML preview of documentation and clean up of ``install.rst``. +- Add ``sphinx-copybutton`` to allow copying code blocks with a single click of a button. Bug fixes: diff --git a/docs/conf.py b/docs/conf.py index a46c8829..d3a67d1c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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' diff --git a/requirements_docs.txt b/requirements_docs.txt index 3691eef5..bffee2f0 100644 --- a/requirements_docs.txt +++ b/requirements_docs.txt @@ -1,4 +1,5 @@ Sphinx>=1.2.3 sphinx_rtd_theme sphinx-autobuild +sphinx-copybutton .