10000 Check for sphinx_copybutton when building the docs by timhoffm · Pull Request #13115 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Check for sphinx_copybutton when building the docs #13115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@
exclude_patterns = ['api/api_changes/*', 'users/whats_new/*']


def _check_deps():
names = {"colorspacious": 'colorspacious',
"IPython.sphinxext.ipython_console_highlighting": 'ipython',
"matplotlib": 'matplotlib',
"nu AE2F mpydoc": 'numpydoc',
"PIL.Image": 'pillow',
"sphinx_gallery": 'sphinx_gallery'}
def _check_dependencies():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

names = {
"colorspacious": 'colorspacious',
"IPython.sphinxext.ipython_console_highlighting": 'ipython',
"matplotlib": 'matplotlib',
"numpydoc": 'numpydoc',
"PIL.Image": 'pillow',
"sphinx_copybutton": 'sphinx_copybutton',
"sphinx_gallery": 'sphinx_gallery',
}
missing = []
for name in names:
try:
Expand All @@ -69,7 +72,8 @@ def _check_deps():
"The following dependencies are missing to build the "
"documentation: {}".format(", ".join(missing)))

_check_deps()
_check_dependencies()


# Import only after checking for dependencies.
# gallery_order.py from the sphinxext folder provides the classes that
Expand Down
0