mirror of https://github.com/rwf2/Rocket.git
Remove redirect creation in mk-docs.sh.
This commit is contained in:
parent
ab028a7894
commit
3fefbb24f8
|
@ -32,18 +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
|
||||
|
|
Loading…
Reference in New Issue