From 6b0760b83d8d3bfe9621ee8bf020e0db752c6f26 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 29 Feb 2024 23:43:47 -0800 Subject: [PATCH] Remove redirect creation in mk-docs.sh. --- scripts/mk-docs.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/mk-docs.sh b/scripts/mk-docs.sh index 3df48fe69c..1f3d6149b8 100755 --- a/scripts/mk-docs.sh +++ b/scripts/mk-docs.sh @@ -32,17 +32,3 @@ pushd "${PROJECT_ROOT}" > /dev/null 2>&1 -p rocket_dyn_templates \ -p rocket_ws popd > /dev/null 2>&1 - -REDIRECTS=" -/ /v0.5/rocket/ 302! -/rocket/ /v0.5/rocket/ 302! -/:v /:v/rocket/ -/:v/* https://:v--rocket-docs.netlify.app/:splat 200 -" -# Generating redirection list: from to. -if [ "${GIT_BRANCH}" = "master" ]; then - echo ":::: Generating redirects..." - echo "${REDIRECTS}" | tee "${DOC_DIR}/_redirects" -else - echo ":: Skipping redirects for branch '${GIT_BRANCH}'" -fi