File tree 3 files changed +22
-4
lines changed 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 60
60
@echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
61
61
62
62
html-noexamples :
63
- $(SPHINXBUILD ) -D plot_gallery=0 -b html $(ALLSPHINXOPTS ) $(SOURCEDIR ) $(BUILDDIR ) /html
63
+ SPHINX_GALLERY_PLOT=False $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(SOURCEDIR ) $(BUILDDIR ) /html
64
64
@echo
65
65
@echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
66
66
@@ -167,7 +167,7 @@ changes:
167
167
@echo " The overview file is in $( BUILDDIR) /changes."
168
168
169
169
linkcheck :
170
- $(SPHINXBUILD ) -D plot_gallery=0 -b linkcheck $(ALLSPHINXOPTS ) $(BUILDDIR ) /linkcheck
170
+ SPHINX_GALLERY_PLOT=False $(SPHINXBUILD ) -b linkcheck $(ALLSPHINXOPTS ) $(BUILDDIR ) /linkcheck
171
171
@echo
172
172
@echo " Link check complete; look for any errors in the above output " \
173
173
" or in $( BUILDDIR) /linkcheck/output.txt."
Original file line number Diff line number Diff line change 68
68
if "dev" in autosklearn .__version__ :
69
69
binder_branch = "development"
70
70
71
+ # Getting issues with the `-D plot_gallery=0` for sphinx gallery, this is a workaround
72
+ # We do this by setting an evironment variable we check and modifying the python config
73
+ # object.
74
+ # We have this extra processing as it enters as a raw string and we need a boolean value
75
+ gallery_env_var = "SPHINX_GALLERY_PLOT"
76
+
77
+ sphinx_plot_gallery_flag = True
78
+ if gallery_env_var in os .environ :
79
+ value = os .environ [gallery_env_var ]
80
+ if value in ["False" , "false" , "0" ]:
81
+ sphinx_plot_gallery_flag = False
82
+ elif value in ["True" , "true" , "1" ]:
83
+ sphinx_plot_gallery_flag = True
84
+ else :
85
+ raise ValueError (f'Env variable { gallery_env_var } must be set to "false" or "true"' )
86
+
71
87
sphinx_gallery_conf = {
72
88
# path to the examples
73
89
'examples_dirs' : '../examples' ,
78
94
#'reference_url': {
79
95
# 'autosklearn': None
80
96
#},
97
+ 'plot_gallery' : sphinx_plot_gallery_flag ,
81
98
'backreferences_dir' : None ,
82
99
'filename_pattern' : 'example.*.py$' ,
83
100
'ignore_pattern' : r'custom_metrics\.py|__init__\.py|example_parallel_manual_spawning_python.py' ,
Original file line number Diff line number Diff line change 42
42
"seaborn" ,
43
43
],
44
44
"docs" : [
45
- "sphinx" ,
46
- "sphinx-gallery<=0.10.0 " ,
45
+ "sphinx<4.3 " ,
46
+ "sphinx-gallery" ,
47
47
"sphinx_bootstrap_theme" ,
48
48
"numpydoc" ,
49
49
"sphinx_toolbox" ,
50
+ "docutils==0.16"
50
51
],
51
52
}
52
53
You can’t perform that action at this time.
0 commit comments