Skip to content

Commit

Permalink
Remove redirect creation in mk-docs.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Mar 1, 2024
1 parent 32c8199 commit 6b0760b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions scripts/mk-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b0760b

Please sign in to comment.