Skip to content

Apache DataFusion SQL Query Engine

Redirect user defined webpags (#16475)

Andrew Lamb5443c67a2c82
diff --git a/docs/requirements.txt b/docs/requirements.txt
index bd030fb670..b1cb76a3cc 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -16,6 +16,7 @@
# under the License.
sphinx
+sphinx-reredirects
pydata-sphinx-theme==0.8.0
myst-parser
maturin
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 00037867a0..9e24a0aeae 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -52,6 +52,7 @@ extensions = [
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
'myst_parser',
+ 'sphinx_reredirects',
]
source_suffix = {
@@ -121,3 +122,7 @@ myst_enable_extensions = ["colon_fence", "deflist", "tasklist"]
# issue for our documentation. So, suppress these warnings to keep our build
# log cleaner.
suppress_warnings = ['misc.highlighting_failure']
+
+redirects = {
+ "library-user-guide/adding-udfs": "functions/index.html",
+}
\ No newline at end of file