authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-15 20:44:30+02:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-15 20:44:30+02:00
log95573dbeebf7a9d3617c1944ab0a74691b7e9d51
treee2c4ea354a0cd1d52309cb5880a2c4557ebf272e
parenta9c4dc84f487c4764c5787439ea87962f698d511

ci: add gzip compression to stdlib docs & langref


1 files changed, 13 insertions(+), 5 deletions(-)

ci/srht/update_download_page+13-5
......@@ -103,11 +103,19 @@ cd "$HOME"
103103
104104# Upload new stdlib autodocs
105105mkdir -p docs_to_upload/documentation/master/std/
106cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html
107cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js
108cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js
109cp "$LANGREF" docs_to_upload/documentation/master/index.html
110$S3CMD put -P --no-mime-magic --recursive --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/
106
107gzip -c -9 "$ZIGDIR/docs/std/index.html" > docs_to_upload/documentation/master/std/index.html
108gzip -c -9 "$ZIGDIR/docs/std/data.js" > docs_to_upload/documentation/master/std/data.js
109gzip -c -9 "$ZIGDIR/docs/std/main.js" > docs_to_upload/documentation/master/std/main.js
110gzip -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/
112
113## Copy without compression:
114# 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
116# cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js
117# cp "$LANGREF" docs_to_upload/documentation/master/index.html
118# $S3CMD put -P --no-mime-magic --recursive --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/
111119
112120git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git
113121cd www.ziglang.org