Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bda6ac5

Browse files
committed
Update header patch for sphinx-gallery 0.16.0
There was a small change to the `EXAMPLE_HEADER` that we patch, so update that to match the new version. However, since that change is only a single period, I did not bother to keep the old version around.
1 parent 4a80339 commit bda6ac5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def gallery_image_warning_filter(record):
325325
:class: sphx-glr-download-link-note
326326
327327
:ref:`Go to the end <sphx_glr_download_{1}>`
328-
to download the full example code{2}
328+
to download the full example code.{2}
329329
330330
.. rst-class:: sphx-glr-example-title
331331

lib/matplotlib/tests/test_doc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ def test_sphinx_gallery_example_header():
99
EXAMPLE_HEADER, this test will start to fail. In that case, please update
1010
the monkey-patching of EXAMPLE_HEADER in conf.py.
1111
"""
12-
gen_rst = pytest.importorskip('sphinx_gallery.gen_rst')
12+
pytest.importorskip('sphinx_gallery', minversion='0.16.0')
13+
from sphinx_gallery import gen_rst
1314

1415
EXAMPLE_HEADER = """
1516
.. DO NOT EDIT.
@@ -24,7 +25,7 @@ def test_sphinx_gallery_example_header():
2425
:class: sphx-glr-download-link-note
2526
2627
:ref:`Go to the end <sphx_glr_download_{1}>`
27-
to download the full example code{2}
28+
to download the full example code.{2}
2829
2930
.. rst-class:: sphx-glr-example-title
3031

0 commit comments

Comments
 (0)