Mesa (main): docs: use http-redirect when possible
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 26 23:33:29 UTC 2022
Module: Mesa
Branch: main
Commit: f07f4d5ec559c8fa993f773ff997ac769191af97
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f07f4d5ec559c8fa993f773ff997ac769191af97
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Sat Jan 1 14:03:53 2022 +0100
docs: use http-redirect when possible
GitLab Pages has added a feature to do proper HTTP redirects, which
are genreally better than the HTML redirects we currently use.
Unfortunately, it doesn't support redirecting to other domains, all
paths must start with a slash. So there's sadly *one* redirect this
doesn't work for. So let's leave that one using a HTML redirect, and
use HTTP redirects when we can.
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14369>
---
docs/_extra/_redirects | 9 +++++++++
docs/conf.py | 9 ---------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/docs/_extra/_redirects b/docs/_extra/_redirects
new file mode 100644
index 00000000000..ceb66d90653
--- /dev/null
+++ b/docs/_extra/_redirects
@@ -0,0 +1,9 @@
+/drivers/vmware-guest.html /drivers/svga3d.html 301
+/gallium/drivers/freedreno.html /drivers/freedreno.html 301
+/gallium/drivers/freedreno/ir3-notes.html /drivers/freedreno/ir3-notes.html 301
+/gallium/drivers/llvmpipe.html /drivers/llvmpipe.html 301
+/gallium/drivers/zink.html /drivers/zink.html 301
+/llvmpipe.html /drivers/llvmpipe.html 301
+/postprocess.html /gallium/postprocess.html 301
+/versions.html /relnotes.html 301
+/vmware-guest.html /drivers/vmware-guest.html 301
diff --git a/docs/conf.py b/docs/conf.py
index 998f209e998..ab4c3380ef0 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -135,15 +135,6 @@ html_extra_path = [
]
html_redirects = [
- ('drivers/vmware-guest', 'drivers/svga3d.html'),
- ('gallium/drivers/freedreno', 'drivers/freedreno.html'),
- ('gallium/drivers/freedreno/ir3-notes', 'drivers/freedreno/ir3-notes.html'),
- ('gallium/drivers/llvmpipe', 'drivers/llvmpipe.html'),
- ('gallium/drivers/zink', 'drivers/zink.html'),
- ('llvmpipe', 'drivers/llvmpipe.html'),
- ('postprocess', 'gallium/postprocess.html'),
- ('versions', 'relnotes.html'),
- ('vmware-guest', 'drivers/vmware-guest.html'),
('webmaster', 'https://www.mesa3d.org/website/'),
]
More information about the mesa-commit
mailing list