From 4a943740db238887c3063e75fd34a498754a560d Mon Sep 17 00:00:00 2001 From: Sebastian Alfers Date: Thu, 21 Nov 2024 08:45:14 +0100 Subject: [PATCH 1/2] docs: missing patch version redirect for insights docs Fix urls without the patch version (.x) in the url. E.g. from https://doc.akka.io/libraries/akka-insights/2.20/home.html to https://doc.akka.io/libraries/akka-insights/2.20.x/home.html --- docs/src-static/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src-static/.htaccess b/docs/src-static/.htaccess index b927be13f..400f70c5d 100644 --- a/docs/src-static/.htaccess +++ b/docs/src-static/.htaccess @@ -416,3 +416,7 @@ RedirectMatch 301 ^/docs/([^/]+)/(.*)$ https://doc.akka.io/libraries/$1/$2 # TODO remove once the real docs are published RedirectMatch 301 ^/akka-cli(/?|/.*)$ https://doc.akka.io/snapshots/akka-documentation/akka-cli$1 + +# Fix links from https://doc.akka.io/libraries/akka-dependencies/current/#akka-insights +# e.g. From https://doc.akka.io/libraries/akka-insights/2.20/home.html to https://doc.akka.io/libraries/akka-insights/2.20.x/home.html +RedirectMatch 301 ^/libraries/akka-insights/(\d+\.\d+)?(/?|/.*)$ https://doc.akka.io/libraries/akka-insights/$1.x$2 From 3767d0011c9e2c7e6e47246723d6f7a3cf5c68c6 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 21 Nov 2024 09:21:54 +0100 Subject: [PATCH 2/2] move to its own akka insights section --- docs/src-static/.htaccess | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/src-static/.htaccess b/docs/src-static/.htaccess index 400f70c5d..92a7e522d 100644 --- a/docs/src-static/.htaccess +++ b/docs/src-static/.htaccess @@ -228,6 +228,14 @@ RedirectMatch 301 ^/(api|japi)/akka-http/10.2.\d+(/?|/.*)$ ht RedirectMatch 301 ^/docs/akka-http/10.4(\.\d+)(/?|/.*)$ https://doc.akka.io/libraries/akka-http/10.4$1$2 RedirectMatch 301 ^/(api|japi)/akka-http/10.4.\d+(/?|/.*)$ https://doc.akka.io/$1/akka-http/10.4$2 +# =================================== +# Akka Insights +# =================================== + +# Fix links from https://doc.akka.io/libraries/akka-dependencies/current/#akka-insights +# e.g. From https://doc.akka.io/libraries/akka-insights/2.20/home.html to https://doc.akka.io/libraries/akka-insights/2.20.x/home.html +RedirectMatch 301 ^/libraries/akka-insights/(\d+\.\d+)?(/?|/.*)$ https://doc.akka.io/libraries/akka-insights/$1.x$2 + # =================================== # Akka Management # =================================== @@ -415,8 +423,4 @@ RedirectMatch 301 ^/libraries/(a[^/]+)/?$ https://doc.akka.io/libraries/$1/curr RedirectMatch 301 ^/docs/([^/]+)/(.*)$ https://doc.akka.io/libraries/$1/$2 # TODO remove once the real docs are published -RedirectMatch 301 ^/akka-cli(/?|/.*)$ https://doc.akka.io/snapshots/akka-documentation/akka-cli$1 - -# Fix links from https://doc.akka.io/libraries/akka-dependencies/current/#akka-insights -# e.g. From https://doc.akka.io/libraries/akka-insights/2.20/home.html to https://doc.akka.io/libraries/akka-insights/2.20.x/home.html -RedirectMatch 301 ^/libraries/akka-insights/(\d+\.\d+)?(/?|/.*)$ https://doc.akka.io/libraries/akka-insights/$1.x$2 +RedirectMatch 301 ^/akka-cli(/?|/.*)$ https://doc.akka.io/snapshots/akka-documentation/akka-cli$1 \ No newline at end of file