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

Skip to content

Commit f87c686

Browse files
authored
Merge pull request #11295 from timhoffm/only-directive
Use sphinx builtin only directive instead of custom one.
2 parents 6eae56b + 10cb6fb commit f87c686

13 files changed

Lines changed: 15 additions & 86 deletions

File tree

doc/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The Matplotlib API
55
####################
66

7-
.. htmlonly::
7+
.. only:: html
88

99
:Release: |version|
1010
:Date: |today|

doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
'numpydoc', # Needs to be loaded *after* autodoc.
3939
'sphinx_gallery.gen_gallery',
4040
'matplotlib.sphinxext.mathmpl',
41-
'matplotlib.sphinxext.only_directives',
4241
'matplotlib.sphinxext.plot_directive',
4342
'sphinxext.custom_roles',
4443
'sphinxext.github',

doc/contents.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Overview
44
========
55

6-
.. htmlonly::
6+
.. only:: html
77

88
:Release: |version|
99
:Date: |today|
@@ -23,7 +23,7 @@ Overview
2323
devel/index.rst
2424
glossary/index.rst
2525

26-
.. htmlonly::
26+
.. only:: html
2727

2828
* :ref:`genindex`
2929
* :ref:`modindex`

doc/devel/MEP/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.. include:: README.rst
44

5-
.. htmlonly::
5+
.. only:: html
66

77
:Release: |version|
88
:Date: |today|

doc/devel/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The Matplotlib Developers' Guide
55
################################
66

7-
.. htmlonly::
7+
.. only:: html
88

99
:Release: |version|
1010
:Date: |today|

doc/faq/howto_faq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ and patches, respectively::
350350

351351
line, = ax.plot(x, y, zorder=10)
352352

353-
.. htmlonly::
353+
.. only:: html
354354

355355
See :ref:`sphx_glr_gallery_misc_zorder_demo.py` for a complete example.
356356

@@ -369,7 +369,7 @@ some ratio which controls the ratio::
369369

370370
ax = fig.add_subplot(111, aspect='equal')
371371

372-
.. htmlonly::
372+
.. only:: html
373373

374374
See :ref:`sphx_glr_gallery_subplots_axes_and_figures_axis_equal_demo.py` for a
375375
complete example.
@@ -413,7 +413,7 @@ locators as desired because the two axes are independent.
413413
plt.show()
414414

415415

416-
.. htmlonly::
416+
.. only:: html
417417

418418
See :ref:`sphx_glr_gallery_api_two_scales.py` for a complete example
419419

doc/faq/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The Matplotlib FAQ
55
##################
66

7-
.. htmlonly::
7+
.. only:: html
88

99
:Release: |version|
1010
:Date: |today|

doc/users/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
User's Guide
55
############
66

7-
.. htmlonly::
7+
.. only:: html
88

99
:Release: |version|
1010
:Date: |today|

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ def thumbnail(infile, thumbfile, scale=0.1, interpolation='bilinear',
14741474
14751475
See examples/misc/image_thumbnail.py.
14761476
1477-
.. htmlonly::
1477+
.. only:: html
14781478
14791479
:ref:`sphx_glr_gallery_misc_image_thumbnail_sgskip.py`
14801480

lib/matplotlib/sphinxext/only_directives.py

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)