File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,22 @@ help:
1818# Catch-all target: route all unknown targets to Sphinx using the new
1919# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2020% : Makefile
21- @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
21+ @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(O )
22+
23+ # Build without executing the example gallery (faster)
24+ html-noplot :
25+ @$(SPHINXBUILD ) $(SPHINXOPTS ) -D plot_gallery=0 $(SOURCEDIR ) $(BUILDDIR )
2226
2327# View the built documentation
28+ # If we build the example gallery, the index file is at _build/html/index.html
29+ # If we don't (e.g. html-noplot), then it is at _build/index.html
2430view :
25- @python -c " import webbrowser; webbrowser.open_new_tab('file://$( PWD) /_build/html/index.html')"
31+ @if [ -f " $( BUILDDIR) /html/index.html" ]; then \
32+ python -c " import webbrowser; webbrowser.open_new_tab('file://$( PWD) /$( BUILDDIR) /html/index.html')" ; \
33+ elif [ -f " $( BUILDDIR) /index.html" ]; then \
34+ python -c " import webbrowser; webbrowser.open_new_tab('file://$( PWD) /$( BUILDDIR) /index.html')" ; \
35+ else echo " No index.html file found to open. Did you build the docs?" ; \
36+ fi
2637
2738clean :
2839 -rm -rf _build auto_examples generated
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ doc = [
5858 " seaborn" ,
5959 " sphinx-copybutton" ,
6060 " sphinx>=7.4.7" ,
61- " sphinx_gallery" ,
61+ " sphinx_gallery>=0.19.0 " ,
6262]
6363# Dependencies for using all mne_bids features
6464full = [
You can’t perform that action at this time.
0 commit comments