mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
ci: add gzip compression to stdlib docs & langref
This commit is contained in:
parent
a9c4dc84f4
commit
95573dbeeb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user