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

Skip to content

Commit 74331a4

Browse files
committed
DOC: add redirects for new removed files
1 parent 58775f7 commit 74331a4

9 files changed

+29
-0
lines changed

doc/api/backend_gtk3agg_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_gtk3_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_gtk3cairo_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_gtk3_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_qt4agg_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_qt_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_qt4cairo_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_qt_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_qt5agg_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_qt_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_qt5cairo_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_qt_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_tkagg_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_tk_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/api/backend_wxagg_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This file has been moved to backend_gtk3_api.rst and will be redirected
2+
by the reredirects extension during the docs build.

doc/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
'sphinxext.mock_gui_toolkits',
6565
'sphinxext.skip_deprecated',
6666
'sphinx_copybutton',
67+
'sphinx_reredirects'
6768
]
6869

6970
exclude_patterns = [
@@ -484,6 +485,18 @@ def _check_dependencies():
484485
# graphviz_output_format = 'svg'
485486

486487

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

0 commit comments

Comments
 (0)