diff options
| author | Loris Cro <kappaloris@gmail.com> | 2022-08-15 20:44:30 +0200 |
|---|---|---|
| committer | Loris Cro <kappaloris@gmail.com> | 2022-08-15 20:44:30 +0200 |
| commit | 95573dbeebf7a9d3617c1944ab0a74691b7e9d51 (patch) | |
| tree | e2c4ea354a0cd1d52309cb5880a2c4557ebf272e /ci | |
| parent | a9c4dc84f487c4764c5787439ea87962f698d511 (diff) | |
| download | zig-95573dbeebf7a9d3617c1944ab0a74691b7e9d51.tar.gz zig-95573dbeebf7a9d3617c1944ab0a74691b7e9d51.zip | |
ci: add gzip compression to stdlib docs & langref
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/srht/update_download_page | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page index 5c007b6986..5277da7d2b 100755 --- a/ci/srht/update_download_page +++ b/ci/srht/update_download_page @@ -103,11 +103,19 @@ cd "$HOME" # Upload new stdlib autodocs mkdir -p docs_to_upload/documentation/master/std/ -cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html -cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js -cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js -cp "$LANGREF" docs_to_upload/documentation/master/index.html -$S3CMD put -P --no-mime-magic --recursive --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/ + +gzip -c -9 "$ZIGDIR/docs/std/index.html" > docs_to_upload/documentation/master/std/index.html +gzip -c -9 "$ZIGDIR/docs/std/data.js" > docs_to_upload/documentation/master/std/data.js +gzip -c -9 "$ZIGDIR/docs/std/main.js" > docs_to_upload/documentation/master/std/main.js +gzip -c -9 "$LANGREF" > docs_to_upload/documentation/master/index.html +$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/ + +## Copy without compression: +# cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html +# cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js +# cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js +# cp "$LANGREF" docs_to_upload/documentation/master/index.html +# $S3CMD put -P --no-mime-magic --recursive --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/ git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git cd www.ziglang.org |
