authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-23 15:59:09+02:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-23 15:59:35+02:00
log583175dc1d8d14bc92838476eb226f0e91077abc
treea005f338a92a92fc3b98600e5ad4fc86405409b9
parent102a6e9e9c8dd3fd69ad454c4d1b9eecabab7415

ci: upload rendered source listings in stdlib docs


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

ci/srht/update_download_page+5-1
...@@ -103,14 +103,18 @@ cd "$HOME"...@@ -103,14 +103,18 @@ cd "$HOME"
103103
104# Upload new stdlib autodocs 104# Upload new stdlib autodocs
105mkdir -p docs_to_upload/documentation/master/std/105mkdir -p docs_to_upload/documentation/master/std/
106
107gzip -c -9 "$ZIGDIR/docs/std/index.html" > docs_to_upload/documentation/master/std/index.html106gzip -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.js107gzip -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.js108gzip -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.html109gzip -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/
112111
112mkdir -p docs_src_to_upload/documentation/master/std/
113cp -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.html118# 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.js119# 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.js120# cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js