File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ apt-run: &apt-install
2727 graphviz \
2828 fonts-crosextra-carlito \
2929 fonts-freefont-otf \
30- fonts-humor-sans
30+ fonts-humor-sans \
31+ optipng
3132
3233fonts-run : &fonts-install
3334 name : Install custom fonts
Original file line number Diff line number Diff line change 2424 rm -rf " $( SOURCEDIR) /savefig"
2525 rm -rf " $( SOURCEDIR) /sphinxext/__pycache__"
2626
27+ show :
28+ @python -c " import webbrowser; webbrowser.open_new_tab('file://$( PWD) /build/html/index.html')"
29+
2730# Catch-all target: route all unknown targets to Sphinx using the new
2831# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2932% : Makefile
Original file line number Diff line number Diff line change @@ -189,10 +189,6 @@ div.documentwrapper {
189189}
190190*/
191191
192- div .clearer {
193- clear : both;
194- }
195-
196192div .related h3 {
197193 display : none;
198194}
Original file line number Diff line number Diff line change 2121 creates no example file for those (sphinx-gallery/sphinx-gallery#365)
2222
2323 {% else %}
24- .. include :: {{module}}.{{objname}}.examples
25-
26- .. raw :: html
27-
28- <div class =" clearer" ></div >
24+ .. minigallery :: {{module}}.{{objname}}
25+ :add-heading:
2926
3027{% endif %}
3128{% endif %}
Original file line number Diff line number Diff line change 55
66.. autofunction :: {{ objname }}
77
8- .. include :: {{module}}.{{objname}}.examples
9-
10- .. raw :: html
11-
12- <div class =" clearer" ></div >
8+ .. minigallery :: {{module}}.{{objname}}
9+ :add-heading:
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ def _check_dependencies():
139139 'within_subsection_order' : gallery_order .subsectionorder ,
140140 'remove_config_comments' : True ,
141141 'min_reported_time' : 1 ,
142+ 'compress_images' : ('thumbnails' , 'images' ),
143+ 'matplotlib_animations' : True ,
142144}
143145
144146plot_gallery = 'True'
Original file line number Diff line number Diff line change @@ -890,7 +890,9 @@ Miscellaneous
890890Adding animations
891891-----------------
892892
893- There is a Matplotlib Google/Gmail account with username ``mplgithub ``
893+ Animations are scraped automatically by Sphinx-gallery. If this is not
894+ desired,
895+ there is also a Matplotlib Google/Gmail account with username ``mplgithub ``
894896which was used to setup the github account but can be used for other
895897purposes, like hosting Google docs or Youtube videos. You can embed a
896898Matplotlib animation in the docs by first saving the animation as a
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ colorspacious
1212ipython
1313ipywidgets
1414numpydoc>=0.8
15- sphinx-gallery>=0.5
15+ sphinx-gallery>=0.7
1616sphinx-copybutton
You can’t perform that action at this time.
0 commit comments