From 70c3260262fa8d46e0f7253cbd2fba5c665cc0db Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Sun, 8 Jan 2023 19:45:19 +0000 Subject: [PATCH] remove fallback redirect for netlify -> gh-pages --- .netlify/_redirects | 1 - .netlify/build.sh | 2 +- .netlify/create_redirects.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.netlify/_redirects b/.netlify/_redirects index 27416ce7..228bdc03 100644 --- a/.netlify/_redirects +++ b/.netlify/_redirects @@ -69,4 +69,3 @@ /v0.9.0-alpha.1/doc/* https://docs.rs/pyo3/0.9.0-alpha.1/:splat /v0.9.1/doc/* https://docs.rs/pyo3/0.9.1/:splat /v0.9.2/doc/* https://docs.rs/pyo3/0.9.2/:splat -/* https://pyo3.github.io/pyo3/:splat 200 diff --git a/.netlify/build.sh b/.netlify/build.sh index 1b50c2b0..5d1dc4c3 100755 --- a/.netlify/build.sh +++ b/.netlify/build.sh @@ -7,7 +7,7 @@ rustup default nightly PYO3_VERSION=$(cargo search pyo3 --limit 1 | head -1 | tr -s ' ' | cut -d ' ' -f 3 | tr -d '"') ## Start from the existing gh-pages content. -## By servicng it over netlify, we can have better UX for users because +## By serving it over netlify, we can have better UX for users because ## netlify can then redirect e.g. /v0.17.0 to /v0.17.0/ ## which leads to better loading of CSS assets. diff --git a/.netlify/create_redirects.py b/.netlify/create_redirects.py index 77b597d3..c4f5834c 100755 --- a/.netlify/create_redirects.py +++ b/.netlify/create_redirects.py @@ -14,8 +14,6 @@ def main() -> None: version_without_v = version.lstrip("v") # redirect doc requests to docs.rs print(f"/{version}/doc/* https://docs.rs/pyo3/{version_without_v}/:splat") - # fallback to github-pages for content not yet copied to netlify - print(f"/* https://pyo3.github.io/pyo3/:splat 200") if __name__ == "__main__":