From 77f31ebbbe9aa3c07a7f15a652e4b3baf816d235 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 31 Aug 2022 15:25:06 -0700 Subject: [PATCH] CI: fix content type of autodocs source listings --- ci/srht/update_download_page | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page index a3f02971b21c2cc68663a4a6d910e0228ed11894..928c9977dbd843109349fe7633a3147aea819a0c 100755 --- a/ci/srht/update_download_page +++ b/ci/srht/update_download_page @@ -118,9 +118,22 @@ $S3CMD put -P --no-mime-magic \ --add-header="Cache-Control: max-age=0, must-revalidate" \ "$LANGREF" s3://ziglang.org/documentation/master/index.html +$S3CMD put -P --no-mime-magic \ + --add-header="Cache-Control: max-age=0, must-revalidate" \ + "$ZIGDIR/docs/std/index.html" s3://ziglang.org/documentation/master/std/index.html + +$S3CMD put -P --no-mime-magic \ + --add-header="Cache-Control: max-age=0, must-revalidate" \ + "$ZIGDIR/docs/std/main.js" s3://ziglang.org/documentation/master/std/main.js + +$S3CMD put -P --no-mime-magic \ + --add-header="Cache-Control: max-age=0, must-revalidate" \ + "$ZIGDIR/docs/std/data.js" s3://ziglang.org/documentation/master/std/data.js + $S3CMD put -P --no-mime-magic --recursive \ --add-header="Cache-Control: max-age=0, must-revalidate" \ - "$ZIGDIR/docs/std/" s3://ziglang.org/documentation/master/std/ + --add-header="Content-Type: text/html" \ + "$ZIGDIR/docs/std/src/" s3://ziglang.org/documentation/master/std/src/ $S3CMD put -P --no-mime-magic \ --add-header="cache-control: public, max-age=31536000, immutable" \ -- 2.54.0