Merge pull request #2573 from davidhewitt/netlify-badge
netlify: add badge, use github-pages domain rather than pyo3.rs
This commit is contained in:
commit
34ed67aa72
|
@ -14,7 +14,7 @@ mkdir netlify_build
|
|||
cp .netlify/_redirects netlify_build/
|
||||
|
||||
# Add latest redirect (proxy)
|
||||
echo "/latest/* https://pyo3.rs/v${PYO3_VERSION}/:splat 200" >> netlify_build/_redirects
|
||||
echo "/latest/* https://pyo3.github.io/pyo3/v${PYO3_VERSION}/:splat 200" >> netlify_build/_redirects
|
||||
|
||||
## Add landing page redirect
|
||||
echo "<meta http-equiv=refresh content=0;url=v${PYO3_VERSION}/>" > netlify_build/index.html
|
||||
|
|
|
@ -13,7 +13,7 @@ def main() -> None:
|
|||
for version in versions:
|
||||
version_without_v = version.lstrip("v")
|
||||
print(f"/{version}/doc/* https://docs.rs/pyo3/{version_without_v}/:splat")
|
||||
print(f"/{version}/* https://pyo3.rs/{version}/:splat 200")
|
||||
print(f"/{version}/* https://pyo3.github.io/pyo3/{version}/:splat 200")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
@ -233,3 +233,5 @@ If you don't have time to contribute yourself but still wish to support the proj
|
|||
|
||||
PyO3 is licensed under the [Apache-2.0 license](https://opensource.org/licenses/APACHE-2.0).
|
||||
Python is licensed under the [Python License](https://docs.python.org/3/license.html).
|
||||
|
||||
<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg" alt="Deploys by Netlify" /> </a>
|
||||
|
|
Loading…
Reference in a new issue