devsite.sh 1.2 KB

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. #
  11. # devsite.sh — deploys docs to dev.materialize.com in CI.
  12. set -euo pipefail
  13. cargo about generate ci/deploy/licenses.hbs > misc/www/licenses.html
  14. aws s3 cp --recursive misc/www/ s3://materialize-dev-website/
  15. # We exclude all of these pages from search engines for SEO purposes. We don't
  16. # want to spend our crawl budget on these pages, nor have these pages appear
  17. # ahead of our marketing content.
  18. RUSTDOCFLAGS="--html-in-header $PWD/ci/deploy/noindex.html" bin/doc
  19. RUSTDOCFLAGS="--html-in-header $PWD/ci/deploy/noindex.html" bin/doc --document-private-items
  20. aws s3 sync --size-only target-xcompile/doc/ s3://materialize-dev-website/api/rust
  21. aws s3 sync --size-only target-xcompile/doc/ s3://materialize-dev-website/api/rust-private
  22. bin/pydoc
  23. aws s3 sync --size-only --delete target/pydoc/ s3://materialize-dev-website/api/python