Skip to content

Commit

Permalink
Add sphinx-reredirects to handle redirects
Browse files Browse the repository at this point in the history
- For example, installation.html now redirects to installation/index.html
  • Loading branch information
aclark4life committed Feb 25, 2024
1 parent 60dba78 commit a95ca25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx_inline_tabs",
"sphinx_removed_in",
"sphinxext.opengraph",
"sphinx_reredirects",
]

intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
Expand Down Expand Up @@ -350,3 +351,8 @@
"pillow-logo-dark-text-1280x640.png"
)
ogp_image_alt = "Pillow"

# sphinx-reredirects
redirects = {
"installation.html": "installation/index.html"
}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ docs = [
"sphinx-inline-tabs",
"sphinx-removed-in",
"sphinxext-opengraph",
"sphinx-reredirects",
]
fpx = [
"olefile",
Expand Down

0 comments on commit a95ca25

Please sign in to comment.