Skip to content

Commit efa2f8e

Browse files
authored
Merge pull request #33710 from MaterializeInc/revert-33706-pr-dev-docs-index
dev docs: Fix s3 metadata properly
2 parents 4134f52 + 83f07da commit efa2f8e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ci/deploy/devsite.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@
1313

1414
set -euo pipefail
1515

16-
aws_s3_noindex_nofollow() {
17-
aws s3 --metadata-directive REPLACE --metadata "X-Robots-Tag=noindex,nofollow" "$@"
18-
}
19-
2016
cargo about generate ci/deploy/licenses.hbs > misc/www/licenses.html
2117

22-
aws_s3_noindex_nofollow cp --recursive misc/www/ s3://materialize-dev-website/
18+
aws s3 cp --metadata-directive REPLACE --metadata "X-Robots-Tag=noindex,nofollow" --recursive misc/www/ s3://materialize-dev-website/
2319

2420
# We exclude all of these pages from search engines for SEO purposes. We don't
2521
# want to spend our crawl budget on these pages, nor have these pages appear
2622
# ahead of our marketing content.
2723
RUSTDOCFLAGS="--html-in-header $PWD/ci/deploy/noindex.html" bin/doc
2824
RUSTDOCFLAGS="--html-in-header $PWD/ci/deploy/noindex.html" bin/doc --document-private-items
29-
aws_s3_noindex_nofollow sync --size-only target-xcompile/doc/ s3://materialize-dev-website/api/rust
30-
aws_s3_noindex_nofollow sync --size-only target-xcompile/doc/ s3://materialize-dev-website/api/rust-private
25+
aws s3 sync --metadata-directive REPLACE --metadata "X-Robots-Tag=noindex,nofollow" --size-only target-xcompile/doc/ s3://materialize-dev-website/api/rust
26+
aws s3 sync --metadata-directive REPLACE --metadata "X-Robots-Tag=noindex,nofollow" --size-only target-xcompile/doc/ s3://materialize-dev-website/api/rust-private
3127

3228
bin/pydoc
33-
aws_s3_noindex_nofollow sync --size-only --delete target/pydoc/ s3://materialize-dev-website/api/python
29+
aws s3 sync --metadata-directive REPLACE --metadata "X-Robots-Tag=noindex,nofollow" --size-only --delete target/pydoc/ s3://materialize-dev-website/api/python

0 commit comments

Comments
 (0)