| ... | @@ -103,14 +103,18 @@ cd "$HOME" | ... | @@ -103,14 +103,18 @@ cd "$HOME" |
| 103 | | 103 | |
| 104 | # Upload new stdlib autodocs | 104 | # Upload new stdlib autodocs |
| 105 | mkdir -p docs_to_upload/documentation/master/std/ | 105 | mkdir -p docs_to_upload/documentation/master/std/ |
| 106 | | | |
| 107 | gzip -c -9 "$ZIGDIR/docs/std/index.html" > docs_to_upload/documentation/master/std/index.html | 106 | gzip -c -9 "$ZIGDIR/docs/std/index.html" > docs_to_upload/documentation/master/std/index.html |
| 108 | gzip -c -9 "$ZIGDIR/docs/std/data.js" > docs_to_upload/documentation/master/std/data.js | 107 | gzip -c -9 "$ZIGDIR/docs/std/data.js" > docs_to_upload/documentation/master/std/data.js |
| 109 | gzip -c -9 "$ZIGDIR/docs/std/main.js" > docs_to_upload/documentation/master/std/main.js | 108 | gzip -c -9 "$ZIGDIR/docs/std/main.js" > docs_to_upload/documentation/master/std/main.js |
| 110 | gzip -c -9 "$LANGREF" > docs_to_upload/documentation/master/index.html | 109 | gzip -c -9 "$LANGREF" > docs_to_upload/documentation/master/index.html |
| 111 | $S3CMD put -P --no-mime-magic --recursive --add-header="Content-Encoding:gzip" --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/ | 110 | $S3CMD put -P --no-mime-magic --recursive --add-header="Content-Encoding:gzip" --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/ |
| 112 | | 111 | |
| | 112 | mkdir -p docs_src_to_upload/documentation/master/std/ |
| | 113 | cp -r "$ZIGDIR/docs/src" docs_src_to_upload/documentation/master/std/ |
| | 114 | $S3CMD put -P --no-mime-magic --recursive --add-header:"Content-Type:text/html" --add-header="Cache-Control: max-age=0, must-revalidate" "docs_src_to_upload/" s3://ziglang.org/ |
| | 115 | |
| 113 | ## Copy without compression: | 116 | ## Copy without compression: |
| | 117 | # mkdir -p docs_to_upload/documentation/master/std/ |
| 114 | # cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html | 118 | # cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html |
| 115 | # cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js | 119 | # cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js |
| 116 | # cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js | 120 | # cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js |