8000 Check for sphinx_copybutton when building the docs · matplotlib/matplotlib@44ad7e6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44ad7e6

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

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
@@ -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)
0