Skip to content

Commit

Permalink
docs: add robots.txt and error.html
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
cortesi committed Mar 4, 2018
1 parent a68c7ff commit ee6937f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/bucketassets/error.html
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions docs/bucketassets/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Disallow: /archive/
Disallow: /master/
7 changes: 7 additions & 0 deletions docs/setup
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion docs/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Ox
margin-bottom: 1em;
}


.sidebar {
background-color: #F1F1F1;
.version {
Expand Down

0 comments on commit ee6937f

Please sign in to comment.