8000 Merge pull request #13115 from timhoffm/check-sphinx_copybutton · matplotlib/matplotlib@2502fe6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2502fe6

Browse files
authored
Merge pull request #13115 from timhoffm/check-sphinx_copybutton
Check for sphinx_copybutton when building the docs
2 parents 4635026 + 44ad7e6 commit 2502fe6

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

doc/conf.py

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

5454

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

73-
_check_deps()
76+
_check_dependencies()
77+
7478

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

0 commit comments

Comments
 (0)
0