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

Skip to content

Commit de7d791

Browse files
committed
NEW: use redirect-from
1 parent 9728e7e commit de7d791

12 files changed

+12
-42
lines changed

doc/api/backend_gtk3_api.rst

Lines changed: 4 additions & 0 deletions
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

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

doc/api/backend_gtk3cairo_api.rst

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

doc/api/backend_qt4agg_api.rst

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

doc/api/backend_qt4cairo_api.rst

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

doc/api/backend_qt5agg_api.rst

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

doc/api/backend_qt5cairo_api.rst

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

doc/api/backend_qt_api.rst

Lines changed: 5 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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

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

doc/conf.py

Lines changed: 1 addition & 13 deletions
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',
@@ -64,7 +65,6 @@
6465
'sphinxext.mock_gui_toolkits',
6566
'sphinxext.skip_deprecated',
6667
'sphinx_copybutton',
67-
'sphinx_reredirects'
6868
]
6969

7070
exclude_patterns = [
@@ -485,18 +485,6 @@ def _check_dependencies():
485485
# graphviz_output_format = 'svg'
486486

487487

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

requirements/doc/doc-requirements.txt

Lines changed: 0 additions & 1 deletion
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)