Skip to content

Commit 3e1be3d

Browse files
committed
NEW: use redirect-from
1 parent 5f6d7d2 commit 3e1be3d

12 files changed

+12
-42
lines changed

doc/api/backend_gtk3_api.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
**NOTE** These backends are not documented here, to avoid adding a dependency
22
to building the docs.
33

4+
.. redirect-from:: /api/backend_gtk3agg_api
5+
.. redirect-from:: /api/backend_gtk3cairo_api
6+
7+
48
:mod:`matplotlib.backends.backend_gtk3agg`
59
==========================================
610

doc/api/backend_gtk3agg_api.rst

-4
This file was deleted.

doc/api/backend_gtk3cairo_api.rst

-4
This file was deleted.

doc/api/backend_qt4agg_api.rst

-4
This file was deleted.

doc/api/backend_qt4cairo_api.rst

-4
This file was deleted.

doc/api/backend_qt5agg_api.rst

-4
This file was deleted.

doc/api/backend_qt5cairo_api.rst

-4
This file was deleted.

doc/api/backend_qt_api.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
**NOTE** These backends are not documented here, to avoid adding a dependency
22
to building the docs.
33

4+
.. redirect-from:: /api/backend_qt4agg_api
5+
.. redirect-from:: /api/backend_qt4cairo_api
6+
.. redirect-from:: /api/backend_qt5agg_api
7+
.. redirect-from:: /api/backend_qt5cairo_api
8+
49
:mod:`matplotlib.backends.backend_qt4agg`
510
=========================================
611

doc/api/backend_wx_api.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
**NOTE** These backends are not documented here, to avoid adding a dependency
22
to building the docs.
33

4+
.. redirect-from:: /api/backend_wxagg_api
5+
46
:mod:`matplotlib.backends.backend_wxagg`
57
========================================
68

doc/api/backend_wxagg_api.rst

-4
This file was deleted.

doc/conf.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
'sphinx_gallery.gen_gallery',
5757
'matplotlib.sphinxext.mathmpl',
5858
'matplotlib.sphinxext.plot_directive',
59+
'matplotlib.sphinxext.redirect_from',
5960
'sphinxcontrib.inkscapeconverter',
6061
'sphinxext.custom_roles',
6162
'sphinxext.github',
@@ -65,7 +66,6 @@
6566
'sphinxext.skip_deprecated',
6667
'sphinxext.redirect_from',
6768
'sphinx_copybutton',
68-
'sphinx_reredirects'
6969
]
7070

7171
exclude_patterns = [
@@ -486,18 +486,6 @@ def _check_dependencies():
486486
# graphviz_output_format = 'svg'
487487

488488

489-
# sphinx-reredirects
490-
# See https://gitlab.com/documatt/sphinx-reredirects/
491-
redirects = {
492-
"api/backend_gtk3agg_api": "backend_gtk3_api.html",
493-
"api/backend_gtk3cairo_api": "backend_gtk3_api.html",
494-
"api/backend_qt*agg_api": "backend_qt_api.html",
495-
"api/backend_qt*cairo_api": "backend_qt_api.html",
496-
"api/backend_tkagg_api": "backend_tk_api.html",
497-
"api/backend_wxagg_api": "backend_wx_api.html",
498-
}
499-
500-
501489
def setup(app):
502490
if any(st in version for st in ('post', 'alpha', 'beta')):
503491
bld_type = 'dev'

requirements/doc/doc-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ numpydoc>=0.8
1515
sphinxcontrib-svg2pdfconverter>=1.1.0
1616
sphinx-gallery>=0.7
1717
sphinx-copybutton
18-
sphinx-reredirects
1918
scipy

0 commit comments

Comments
 (0)