lint-docs.sh 806 B

123456789101112131415161718192021222324
  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. # lint.sh — checks for broken links and other HTML errors.
  12. set -euo pipefail
  13. . misc/shlib/shlib.bash
  14. git clean -ffdX ci/www/public
  15. try hugo --gc --baseURL https://ci.materialize.com/docs --source doc/user --destination ../../ci/www/public/docs
  16. echo "<!doctype html>" > ci/www/public/index.html
  17. try htmltest -s ci/www/public -c doc/user/.htmltest.yml
  18. try ci/test/lint-docs-catalog.sh
  19. try_status_report