Simple 404 in _static (#1495)

* Simple 404 in _static

* Docs 404 error

* s3_error.html
This commit is contained in:
Ted Patrick
2023-05-31 16:42:30 -05:00
committed by GitHub
parent 8f2c150d1e
commit 856720da49
2 changed files with 5 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ jobs:
# Sync will only copy changed files
- name: Sync Error
run: aws s3 cp --quiet ./docs/_build/html/error.html s3://docs.pyscript.net/error.html
run: aws s3 cp --quiet ./docs/_static/s3_error.html s3://docs.pyscript.net/error.html
# Sync will only copy changed files
- name: Sync to S3

4
docs/_static/s3_error.html vendored Normal file
View File

@@ -0,0 +1,4 @@
<html><head><meta http-equiv="refresh" content="5; URL='/latest/'" /></head><body>
<h1>404 - File not found</h1>
<p>You will be redirected to the latest documentation in 5 seconds.</p>
</body></html>