8000 print theme versions · matplotlib/matplotlib@af3780d · GitHub
[go: up one dir, main page]

Skip to content

Commit af3780d

Browse files
committed
print theme versions
1 parent 412dced commit af3780d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ def _check_dependencies():
144144
raise ImportError(
145145
"The following dependencies are missing to build the "
146146
f"documentation: {', '.join(missing)}")
147+
148+
# debug sphinx-pydata-theme and mpl-theme-version
149+
if 'mpl_sphinx_theme' not in missing:
150+
import pydata_sphinx_theme
151+
import mpl_sphinx_theme
152+
print(f"pydata sphinx theme: {pydata_sphinx_theme.__version__}")
153+
print(f"mpl sphinx theme: {mpl_sphinx_theme.__version__}")
154+
147155
if shutil.which('dot') is None:
148156
raise OSError(
149157
"No binary named dot - graphviz must be installed to build the "

0 commit comments

Comments
 (0)
0