Merge #2869
2869: change latest URL from netlify proxy to redirect r=davidhewitt a=davidhewitt Now that we serve all gh-pages content in netlify, it's nicer to have this as a proper redirect rather than a rewrite. Then the user can see what version of the docs they have landed on. Closes #2867 Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
This commit is contained in:
commit
34b9445faf
|
@ -20,8 +20,8 @@ mv pyo3-gh-pages netlify_build
|
||||||
# than check this in to the repo
|
# than check this in to the repo
|
||||||
cp .netlify/_redirects netlify_build/
|
cp .netlify/_redirects netlify_build/
|
||||||
|
|
||||||
# Add latest redirect (proxy)
|
# Add latest redirect
|
||||||
echo "/latest/* https://pyo3.github.io/pyo3/v${PYO3_VERSION}/:splat 200" >> netlify_build/_redirects
|
echo "/latest/* /v${PYO3_VERSION}/:splat" >> netlify_build/_redirects
|
||||||
|
|
||||||
## Add landing page redirect
|
## Add landing page redirect
|
||||||
if [ "${CONTEXT}" == "deploy-preview" ]; then
|
if [ "${CONTEXT}" == "deploy-preview" ]; then
|
||||||
|
|
Loading…
Reference in New Issue