aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-03-05 10:57:50 +1300
committerAldo Cortesi <aldo@corte.si>2018-03-05 10:57:50 +1300
commitee6937f948f96d74d413a24f89c2317ab582d0c8 (patch)
tree4454b57a641a7508b73d440bf2c41d6fbc5f04f0 /docs
parenta68c7ffb27278c4e2aea4d2d8a87ee15a86bcd88 (diff)
downloadmitmproxy-ee6937f948f96d74d413a24f89c2317ab582d0c8.tar.gz
mitmproxy-ee6937f948f96d74d413a24f89c2317ab582d0c8.tar.bz2
mitmproxy-ee6937f948f96d74d413a24f89c2317ab582d0c8.zip
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/bucketassets/error.html9
-rw-r--r--docs/bucketassets/robots.txt3
-rwxr-xr-xdocs/setup7
-rw-r--r--docs/style/style.scss1
4 files changed, 19 insertions, 1 deletions
diff --git a/docs/bucketassets/error.html b/docs/bucketassets/error.html
new file mode 100644
index 00000000..a855e72b
--- /dev/null
+++ b/docs/bucketassets/error.html
@@ -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>
diff --git a/docs/bucketassets/robots.txt b/docs/bucketassets/robots.txt
new file mode 100644
index 00000000..da4c47d6
--- /dev/null
+++ b/docs/bucketassets/robots.txt
@@ -0,0 +1,3 @@
+User-agent: *
+Disallow: /archive/
+Disallow: /master/ \ No newline at end of file
diff --git a/docs/setup b/docs/setup
new file mode 100755
index 00000000..8a9c31fd
--- /dev/null
+++ b/docs/setup
@@ -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
diff --git a/docs/style/style.scss b/docs/style/style.scss
index 29fb96d2..bc146fd5 100644
--- a/docs/style/style.scss
+++ b/docs/style/style.scss
@@ -27,7 +27,6 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Ox
margin-bottom: 1em;
}
-
.sidebar {
background-color: #F1F1F1;
.version {