mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
docs: add robots.txt and error.html
- robots.txt prevents crawling of everything but /stable - error.html has a simple meta refresh to the latest stable docs. This will also help crawlers find the right path.
This commit is contained in:
parent
a68c7ffb27
commit
ee6937f948
9
docs/bucketassets/error.html
Normal file
9
docs/bucketassets/error.html
Normal file
@ -0,0 +1,9 @@
|
||||
Not found
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL='/stable'" />
|
||||
</head>
|
||||
<body>
|
||||
Not found - redirecting you to <a href="/stable">latest stable docs</a>.
|
||||
</body>
|
||||
</html>
|
3
docs/bucketassets/robots.txt
Normal file
3
docs/bucketassets/robots.txt
Normal file
@ -0,0 +1,3 @@
|
||||
User-agent: *
|
||||
Disallow: /archive/
|
||||
Disallow: /master/
|
7
docs/setup
Executable file
7
docs/setup
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
aws configure set preview.cloudfront true
|
||||
aws --profile mitmproxy \
|
||||
s3 cp --acl public-read ./bucketassets/error.html s3://docs.mitmproxy.org/error.html
|
||||
aws --profile mitmproxy \
|
||||
s3 cp --acl public-read ./bucketassets/robots.txt s3://docs.mitmproxy.org/robots.txt
|
@ -27,7 +27,6 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Ox
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
background-color: #F1F1F1;
|
||||
.version {
|
||||
|
Loading…
Reference in New Issue
Block a user