Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ apt-run: &apt-install
graphviz \
fonts-crosextra-carlito \
fonts-freefont-otf \
fonts-humor-sans
fonts-humor-sans \
optipng

fonts-run: &fonts-install
name: Install custom fonts
Expand Down
3 changes: 3 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ clean:
rm -rf "$(SOURCEDIR)/savefig"
rm -rf "$(SOURCEDIR)/sphinxext/__pycache__"

show:
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/build/html/index.html')"

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
Expand Down
4 changes: 0 additions & 4 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ div.documentwrapper {
}
*/

div.clearer {
clear: both;
}

div.related h3 {
display: none;
}
Expand Down
7 changes: 2 additions & 5 deletions doc/_templates/autosummary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
creates no example file for those (sphinx-gallery/sphinx-gallery#365)

{% else %}
.. include:: {{module}}.{{objname}}.examples

.. raw:: html

<div class="clearer"></div>
.. minigallery:: {{module}}.{{objname}}
:add-heading:

{% endif %}
{% endif %}
7 changes: 2 additions & 5 deletions doc/_templates/function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@

.. autofunction:: {{ objname }}

.. include:: {{module}}.{{objname}}.examples

.. raw:: html

<div class="clearer"></div>
.. minigallery:: {{module}}.{{objname}}
:add-heading:
2 changes: 2 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def _check_dependencies():
'within_subsection_order': gallery_order.subsectionorder,
'remove_config_comments': True,
'min_reported_time': 1,
'compress_images': ('thumbnails', 'images'),
'matplotlib_animations': True,
}

plot_gallery = 'True'
Expand Down
4 changes: 3 additions & 1 deletion doc/devel/documenting_mpl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,9 @@ Miscellaneous
Adding animations
-----------------

There is a Matplotlib Google/Gmail account with username ``mplgithub``
Animations are scraped automatically by Sphinx-gallery. If this is not
desired,
there is also a Matplotlib Google/Gmail account with username ``mplgithub``
which was used to setup the github account but can be used for other
purposes, like hosting Google docs or Youtube videos. You can embed a
Matplotlib animation in the docs by first saving the animation as a
Expand Down
2 changes: 1 addition & 1 deletion requirements/doc/doc-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ colorspacious
ipython
ipywidgets
numpydoc>=0.8
sphinx-gallery>=0.5
sphinx-gallery>=0.7
sphinx-copybutton