diff --git a/netlify.toml b/netlify.toml index 1d25770..e7cc956 100644 --- a/netlify.toml +++ b/netlify.toml @@ -21,6 +21,7 @@ NODE_VERSION = "18" # NOTE the following redirects get appended to the redirects defined in the _redirects file +# ========Beta redirects========== [[redirects]] from = "/docs/beta/*" to = "/beta" @@ -31,6 +32,7 @@ from = "/beta/*" to = "/current/:splat" status = 307 +# ===========Docusaurus to Antora migration redirects============ [[redirects]] from = "/home" to = "/current/home" @@ -61,11 +63,6 @@ from = "/docs/22.3/*" to = "/current/:splat" status = 301 -[[redirects]] -from = "/22.3/*" -to = "/current/:splat" -status = 301 - [[redirects]] from = "/docs/22.2/platform/*" to = "/current/:splat" @@ -76,11 +73,6 @@ from = "/docs/22.2/*" to = "/current/:splat" status = 301 -[[redirects]] -from = "/22.2/*" -to = "/current/:splat" -status = 301 - [[redirects]] from = "/docs/22.1/platform/*" to = "/current/:splat" @@ -91,11 +83,6 @@ from = "/docs/22.1/*" to = "/current/:splat" status = 301 -[[redirects]] -from = "/22.1/*" -to = "/current/:splat" -status = 301 - [[redirects]] from = "/docs/21.11/platform/*" to = "/current/:splat" @@ -106,11 +93,6 @@ from = "/docs/21.11/*" to = "/current/:splat" status = 301 -[[redirects]] -from = "/21.11/*" -to = "/current/:splat" -status = 301 - [[redirects]] from = "/docs/21.1/*" to = "/current/:splat" @@ -146,6 +128,33 @@ from = "/docs/*" to = "/current/:splat" status = 301 +# ================End of life versions=================== +[[redirects]] +from = "/23.1/*" +to = "/current/:splat" +status = 301 + +[[redirects]] +from = "/22.2/*" +to = "/current/:splat" +status = 301 + +[[redirects]] +from = "/22.3/*" +to = "/current/:splat" +status = 301 + +[[redirects]] +from = "/22.1/*" +to = "/current/:splat" +status = 301 + +[[redirects]] +from = "/21.11/*" +to = "/current/:splat" +status = 301 + +# =========Bulk redirects from different components======== [[redirects]] from = "/current/reference/docker-compose/" to = "/redpanda-labs/" @@ -230,8 +239,3 @@ status = 301 from = "/current/develop/guide-nodejs/" to = "/redpanda-labs/" status = 301 - -[[redirects]] -from = "/23.1/*" -to = "/current/:splat" -status = 301 \ No newline at end of file