From b03539c7ff565f41d712a6cfa892d3c126583fae Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Mon, 21 Oct 2024 17:46:51 +0530 Subject: [PATCH 1/3] Added support for example short urls Signed-off-by: Aakanksha --- public/_redirects | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/_redirects b/public/_redirects index 1af1518b86e..04c10c0d61b 100644 --- a/public/_redirects +++ b/public/_redirects @@ -70,3 +70,8 @@ https://www.asyncapi.io/* https://www.asyncapi.com/:splat 301! # Additional redirection /community/meetings /community/events 301! /cheatsheet https://github.com/asyncapi/website/tree/master/cheatsheet 302! + +# SHORT-URL-REDIRECTION:START +/s/example https://github.com/asyncapi/spec/blob/master/examples/streetlights-mqtt-asyncapi.yml 301! +/s/* https://github.com/asyncapi/spec/blob/master/examples/:splat 301! +# SHORT-URL-REDIRECTION:END \ No newline at end of file From e095b4460253b288b8f861c5ed5495859dbe765a Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Mon, 21 Oct 2024 17:51:24 +0530 Subject: [PATCH 2/3] Fixed pipeline --- public/_redirects | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/_redirects b/public/_redirects index 04c10c0d61b..d4d353e71ae 100644 --- a/public/_redirects +++ b/public/_redirects @@ -71,7 +71,7 @@ https://www.asyncapi.io/* https://www.asyncapi.com/:splat 301! /community/meetings /community/events 301! /cheatsheet https://github.com/asyncapi/website/tree/master/cheatsheet 302! -# SHORT-URL-REDIRECTION:START +# SHORT-DOC-URL-REDIRECTION:START /s/example https://github.com/asyncapi/spec/blob/master/examples/streetlights-mqtt-asyncapi.yml 301! /s/* https://github.com/asyncapi/spec/blob/master/examples/:splat 301! -# SHORT-URL-REDIRECTION:END \ No newline at end of file +# SHORT-DOC-URL-REDIRECTION:END \ No newline at end of file From 637f42ff7cfeb007c64d7395e2ce560474010d4e Mon Sep 17 00:00:00 2001 From: Aakanksha Date: Mon, 21 Oct 2024 18:50:39 +0530 Subject: [PATCH 3/3] Made suggested changes --- public/_redirects | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/_redirects b/public/_redirects index d4d353e71ae..90f81a6a364 100644 --- a/public/_redirects +++ b/public/_redirects @@ -72,6 +72,6 @@ https://www.asyncapi.io/* https://www.asyncapi.com/:splat 301! /cheatsheet https://github.com/asyncapi/website/tree/master/cheatsheet 302! # SHORT-DOC-URL-REDIRECTION:START -/s/example https://github.com/asyncapi/spec/blob/master/examples/streetlights-mqtt-asyncapi.yml 301! /s/* https://github.com/asyncapi/spec/blob/master/examples/:splat 301! +/s/example https://github.com/asyncapi/spec/blob/master/examples/streetlights-mqtt-asyncapi.yml 301! # SHORT-DOC-URL-REDIRECTION:END \ No newline at end of file