Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44ad7e6

Browse files
committed
Check for sphinx_copybutton when building the docs
1 parent 0c35833 commit 44ad7e6

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

doc/conf.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,16 @@
5151
exclude_patterns = ['api/api_changes/*', 'users/whats_new/*']
5252

5353

54-
def _check_deps():
55-
names = {"colorspacious": 'colorspacious',
56-
"IPython.sphinxext.ipython_console_highlighting": 'ipython',
57-
"matplotlib": 'matplotlib',
58-
"numpydoc": 'numpydoc',
59-
"PIL.Image": 'pillow',
60-
"sphinx_gallery": 'sphinx_gallery'}
54+
def _check_dependencies():
55+
names = {
56+
"colorspacious": 'colorspacious',
57+
"IPython.sphinxext.ipython_console_highlighting": 'ipython',
58+
"matplotlib": 'matplotlib',
59+
"numpydoc": 'numpydoc',
60+
"PIL.Image": 'pillow',
61+
"sphinx_copybutton": 'sphinx_copybutton',
62+
"sphinx_gallery": 'sphinx_gallery',
63+
}
6164
missing = []
6265
for name in names:
6366
try:
@@ -69,7 +72,8 @@ def _check_deps():
6972
"The following dependencies are missing to build the "
7073
"documentation: {}".format(", ".join(missing)))
7174

72-
_check_deps()
75+
_check_dependencies()
76+
7377

7478
# Import only after checking for dependencies.
7579
# gallery_order.py from the sphinxext folder provides the classes that

0 commit comments

Comments
 (0)