netlify: fix main doc redirect

This commit is contained in:
David Hewitt 2022-09-07 07:46:24 +01:00
parent 7827393f26
commit 5c070ae473
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ mv target/guide netlify_build/main/
cargo xtask doc
mv target/doc netlify_build/main/doc/
echo "<meta http-equiv=refresh content=0;url=pyo3/>" > netlify_build/main/doc/index.html
## Build internal docs
echo "<div class='internal-banner' style='position:fixed; z-index: 99999; color:red;border:3px solid red;margin-left: auto; margin-right: auto; width: 430px;left:0;right: 0;'><div style='display: flex; align-items: center; justify-content: center;'> ⚠️ Internal Docs ⚠️ Not Public API 👉 <a href='https://pyo3.rs/main/doc/pyo3/index.html' style='color:red;text-decoration:underline;'>Official Docs Here</a></div></div>" > netlify_build/banner.html