From b0e0937284cf5fde2a7375f2c341d86a9b0af036 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Fri, 8 Nov 2024 10:04:59 -0500 Subject: [PATCH] docs: configure netlify toml and versions data for dropdown --- docs/_data/versions.json | 8 +++++++- netlify.toml | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/_data/versions.json b/docs/_data/versions.json index 04942189ea..5a82922a6d 100644 --- a/docs/_data/versions.json +++ b/docs/_data/versions.json @@ -1,9 +1,15 @@ [ + { + "version": "v4.0.0", + "slug": "v4", + "label": "v4", + "current": true + }, { "version": "v3.0.0", "slug": "v3", "label": "v3", - "current": true + "current": false }, { "version": "v2.0.0", diff --git a/netlify.toml b/netlify.toml index 2ea55ae988..7126c89997 100644 --- a/netlify.toml +++ b/netlify.toml @@ -12,3 +12,9 @@ to = 'https://release-v2--patternfly-elements.netlify.app/:splat' status = 200 force = true + +[[redirects]] + from = '/v3/*' + to = 'https://release-v3--patternfly-elements.netlify.app/:splat' + status = 200 + force = true