From dd198758d82dc5fe5e262f38486544c9916e0f55 Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Sat, 27 Jul 2024 17:33:03 +0200 Subject: [PATCH 1/2] Update legacy redirects --- netlify.toml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/netlify.toml b/netlify.toml index 9e98b395..6105ecea 100644 --- a/netlify.toml +++ b/netlify.toml @@ -39,7 +39,7 @@ # Components - Atoms [[redirects]] from = "/patterns/atoms/typographic*" - to = "/" + to = "/docs/fundamentals/typography#type-scale" [[redirects]] from = "/patterns/atoms/buttons*" @@ -98,10 +98,9 @@ from = "/patterns/molecules/feature-card*" to = "/components/detail/feature-card" -# not sure where this should go to? [[redirects]] from = "/patterns/molecules/forms*" - to = "/components/detail/input" + to = "/components/detail/example-form" [[redirects]] from = "/patterns/molecules/language-switcher*" @@ -119,7 +118,6 @@ from = "/patterns/molecules/notification-bar*" to = "components/detail/notification-bar" -# deprecated [[redirects]] from = "/patterns/molecules/picto-card*" to = "/components/detail/picto" @@ -154,13 +152,12 @@ to = "/components/detail/callout--compact" [[redirects]] - from = "/patterns/organisms/footer*" - to = "components/detail/footer" + from = "/patterns/organisms/hero*" + to = "/components/detail/callout" -# depreciated [[redirects]] - from = "/patterns/organisms/hero*" - to = "/components/detail/hero" + from = "/patterns/organisms/footer*" + to = "components/detail/footer" [[redirects]] from = "/patterns/organisms/modal*" @@ -195,14 +192,14 @@ from = "/patterns/templates/content-container*" to = "/components/detail/content-container" -[[redirects]] - from = "/patterns/templates/forms*" - to = "/components/detail/input" - [[redirects]] from = "/patterns/templates/main-with-sidebar*" to = "/components/detail/main-with-sidebar" +[[redirects]] + from = "/patterns/templates/forms*" + to = "/components/detail/example-form" + # Other stuff [[redirects]] from = "/demos/*" From 72549b2d3cf20c7f2f42f120d91884bc8784bc42 Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:01:14 +0200 Subject: [PATCH 2/2] Fix broken paths --- netlify.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/netlify.toml b/netlify.toml index 6105ecea..ec33df73 100644 --- a/netlify.toml +++ b/netlify.toml @@ -87,12 +87,12 @@ to = "/components/detail/details" [[redirects]] - from = "patterns/molecules/download-button*" + from = "/patterns/molecules/download-button*" to = "/components/detail/download-button" [[redirects]] from = "/patterns/molecules/emphasis-box*" - to = "components/detail/emphasis-box" + to = "/components/detail/emphasis-box" [[redirects]] from = "/patterns/molecules/feature-card*" @@ -112,11 +112,11 @@ [[redirects]] from = "/patterns/molecules/menu*" - to = "components/detail/menu" + to = "/components/detail/menu" [[redirects]] from = "/patterns/molecules/notification-bar*" - to = "components/detail/notification-bar" + to = "/components/detail/notification-bar" [[redirects]] from = "/patterns/molecules/picto-card*" @@ -145,7 +145,7 @@ [[redirects]] from = "/patterns/organisms/call-out*" - to = "components/detail/callout" + to = "/components/detail/callout" [[redirects]] from = "/components/detail/compact-call-out*" @@ -157,7 +157,7 @@ [[redirects]] from = "/patterns/organisms/footer*" - to = "components/detail/footer" + to = "/components/detail/footer" [[redirects]] from = "/patterns/organisms/modal*"