mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Add sphinx-reredirects to handle redirects
- For example, installation.html now redirects to installation/index.html
This commit is contained in:
parent
73e49cad21
commit
ecba08f8c4
|
@ -36,6 +36,7 @@ extensions = [
|
|||
"sphinx_inline_tabs",
|
||||
"sphinx_removed_in",
|
||||
"sphinxext.opengraph",
|
||||
"sphinx_reredirects",
|
||||
]
|
||||
|
||||
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
||||
|
@ -350,3 +351,8 @@ ogp_image = (
|
|||
"pillow-logo-dark-text-1280x640.png"
|
||||
)
|
||||
ogp_image_alt = "Pillow"
|
||||
|
||||
# sphinx-reredirects
|
||||
redirects = {
|
||||
"installation.html": "installation/index.html"
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ docs = [
|
|||
"sphinx-inline-tabs",
|
||||
"sphinx-removed-in",
|
||||
"sphinxext-opengraph",
|
||||
"sphinx-reredirects",
|
||||
]
|
||||
fpx = [
|
||||
"olefile",
|
||||
|
|
Loading…
Reference in New Issue
Block a user