Skip to content

Commit 583175d

Browse files
committed
ci: upload rendered source listings in stdlib docs
1 parent 102a6e9 commit 583175d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/srht/update_download_page

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,18 @@ cd "$HOME"
103103

104104
# Upload new stdlib autodocs
105105
mkdir -p docs_to_upload/documentation/master/std/
106-
107106
gzip -c -9 "$ZIGDIR/docs/std/index.html" > docs_to_upload/documentation/master/std/index.html
108107
gzip -c -9 "$ZIGDIR/docs/std/data.js" > docs_to_upload/documentation/master/std/data.js
109108
gzip -c -9 "$ZIGDIR/docs/std/main.js" > docs_to_upload/documentation/master/std/main.js
110109
gzip -c -9 "$LANGREF" > docs_to_upload/documentation/master/index.html
111110
$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

112+
mkdir -p docs_src_to_upload/documentation/master/std/
113+
cp -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+
113116
## Copy without compression:
117+
# mkdir -p docs_to_upload/documentation/master/std/
114118
# cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html
115119
# cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js
116120
# cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js

0 commit comments

Comments
 (0)