diff options
| author | Loris Cro <kappaloris@gmail.com> | 2022-08-23 15:59:09 +0200 |
|---|---|---|
| committer | Loris Cro <kappaloris@gmail.com> | 2022-08-23 15:59:35 +0200 |
| commit | 583175dc1d8d14bc92838476eb226f0e91077abc (patch) | |
| tree | a005f338a92a92fc3b98600e5ad4fc86405409b9 /ci | |
| parent | 102a6e9e9c8dd3fd69ad454c4d1b9eecabab7415 (diff) | |
| download | zig-583175dc1d8d14bc92838476eb226f0e91077abc.tar.gz zig-583175dc1d8d14bc92838476eb226f0e91077abc.zip | |
ci: upload rendered source listings in stdlib docs
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/srht/update_download_page | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page index 5277da7d2b..e84fcd910a 100755 --- a/ci/srht/update_download_page +++ b/ci/srht/update_download_page @@ -103,14 +103,18 @@ cd "$HOME" # Upload new stdlib autodocs mkdir -p docs_to_upload/documentation/master/std/ - 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/ +mkdir -p docs_src_to_upload/documentation/master/std/ +cp -r "$ZIGDIR/docs/src" docs_src_to_upload/documentation/master/std/ +$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/ + ## Copy without compression: +# 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 |
