Merge pull request #2955 from cortesi/ndocs
docs: start move to docs.mitmproxy.org
This commit is contained in:
commit
53a9be498c
|
@ -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>
|
|
@ -0,0 +1,3 @@
|
|||
User-agent: *
|
||||
Disallow: /archive/
|
||||
Disallow: /master/
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd src; hugo
|
|
@ -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
|
|
@ -6731,20 +6731,16 @@ label.panel-block {
|
|||
text-align: right; }
|
||||
|
||||
.sidebar {
|
||||
background-color: #F1F1F1;
|
||||
}
|
||||
|
||||
.sidebar .version {
|
||||
padding: 1em; }
|
||||
|
||||
.sidebar .brand {
|
||||
background-color: #303030;
|
||||
color: #c0c0c0;
|
||||
padding: 1em;
|
||||
top: 0; }
|
||||
|
||||
.sidebar .menu {
|
||||
padding: 1em; }
|
||||
background-color: #F1F1F1; }
|
||||
.sidebar .version {
|
||||
padding: 1em; }
|
||||
.sidebar .brand {
|
||||
background-color: #303030;
|
||||
color: #c0c0c0;
|
||||
padding: 1em;
|
||||
top: 0; }
|
||||
.sidebar .menu {
|
||||
padding: 1em; }
|
||||
|
||||
.mainbody {
|
||||
padding: 3em; }
|
||||
|
|
|
@ -11,7 +11,6 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Ox
|
|||
@import "../node_modules/bulma/sass/layout/_all";
|
||||
|
||||
.sidebody {
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
@ -28,8 +27,8 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Ox
|
|||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
background-color: #F1F1F1;
|
||||
.version {
|
||||
padding: 1em;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please supply a version, e.g. 'v3'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# This script uploads docs to a specified archive version.
|
||||
|
||||
SPATH="/archive/$1"
|
||||
|
||||
aws configure set preview.cloudfront true
|
||||
aws --profile mitmproxy \
|
||||
s3 sync --acl public-read ./public s3://docs.mitmproxy.org$SPATH
|
||||
# aws --profile mitmproxy \
|
||||
# cloudfront create-invalidation --distribution-id E3UCZ4MLN4TO7U \
|
||||
# --paths "$SPATH"
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
aws configure set preview.cloudfront true
|
||||
aws --profile mitmproxy \
|
||||
s3 sync --acl public-read ./public s3://docs.mitmproxy.org/master
|
||||
# aws --profile mitmproxy \
|
||||
# cloudfront create-invalidation --distribution-id E3UCZ4MLN4TO7U \
|
||||
# --paths "/master"
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
aws configure set preview.cloudfront true
|
||||
aws --profile mitmproxy \
|
||||
s3 sync --acl public-read ./public s3://docs.mitmproxy.org/stable
|
||||
# aws --profile mitmproxy \
|
||||
# cloudfront create-invalidation --distribution-id E3UCZ4MLN4TO7U \
|
||||
# --paths "/master"
|
Loading…
Reference in New Issue