Skip to content

Commit 89acae0

Browse files
authored
added code copy button (#1216)
1 parent 488a2eb commit 89acae0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Add any Sphinx extension module names here, as strings. They can be
5656
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5757
# ones.
58-
extensions = ['sphinx.ext.mathjax',
58+
extensions = ['sphinx.ext.mathjax', 'sphinx_copybutton',
5959
'sphinx_gallery.gen_gallery']
6060

6161

@@ -250,4 +250,4 @@ def setup(app):
250250
app.add_directive('galleryitem', GalleryItemDirective)
251251
app.add_directive('customgalleryitem', CustomGalleryItemDirective)
252252
app.add_directive('customcarditem', CustomCardItemDirective)
253-
app.add_directive('customcalloutitem', CustomCalloutItemDirective)
253+
app.add_directive('customcalloutitem', CustomCalloutItemDirective)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
sphinx==1.8.2
44
sphinx-gallery==0.3.1
5+
sphinx-copybutton
56
tqdm
67
numpy
78
matplotlib

0 commit comments

Comments
 (0)