Skip to content

Commit f089d3a

Browse files
committed
add sphinx_copybutton to user guide
1 parent 3692ef4 commit f089d3a

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/conda-env/doctest-env.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ dependencies:
1313
- nbsphinx
1414
- docutils
1515
- numpydoc
16+
- sphinx-copybutton

doc/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@
5454
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5555
# ones.
5656
extensions = [
57-
'sphinx.ext.autodoc', 'sphinx.ext.todo',
58-
'sphinx.ext.intersphinx', 'sphinx.ext.imgmath',
59-
'sphinx.ext.autosummary', 'nbsphinx', 'numpydoc',
60-
'sphinx.ext.linkcode', 'sphinx.ext.doctest'
57+
'sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.intersphinx',
58+
'sphinx.ext.imgmath', 'sphinx.ext.autosummary', 'nbsphinx', 'numpydoc',
59+
'sphinx.ext.linkcode', 'sphinx.ext.doctest', 'sphinx_copybutton'
6160
]
6261

6362
# scan documents for autosummary directives and generate stub pages for each.

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ numpy
33
scipy
44
matplotlib
55
sphinx_rtd_theme
6+
sphinx-copybutton
67
numpydoc
78
ipykernel
89
nbsphinx

0 commit comments

Comments
 (0)