summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-05-06 12:46:54 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-05-06 12:46:54 +0100
commit094809b515b38940a8cd015633d815ec0f18b83d (patch)
treeaa983d7029fdf5026bf08150beeeb2320ad037a7 /docs/conf.py
parent3a6b7be2b5e13e279c23ced23b750eb1033b968a (diff)
downloadpython-setuptools-git-094809b515b38940a8cd015633d815ec0f18b83d.tar.gz
Move userguide/keywords to deprecated/changed_keyworkds
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 4ebb521c..1023539c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -129,6 +129,12 @@ html_theme_options = {
},
}
+# Redirect old docs so links and references in the ecosystem don't break
+extensions += ['sphinx_reredirects']
+redirects = {
+ "userguide/keywords": "/deprecated/changed_keywords.html",
+}
+
# Add support for inline tabs
extensions += ['sphinx_inline_tabs']