From 2a285094635fd6e4d57d7c61b61f02cb5c1be7ac Mon Sep 17 00:00:00 2001 From: Topher Lubaway Date: Thu, 23 Jun 2022 09:02:01 -0500 Subject: [PATCH] Fixes broken links so we can deploy again (#14075) also adds better error message for when this happens to others --- tools/bin/deploy_docusaurus | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/bin/deploy_docusaurus b/tools/bin/deploy_docusaurus index 657fc235429f..0d250229dcf3 100755 --- a/tools/bin/deploy_docusaurus +++ b/tools/bin/deploy_docusaurus @@ -73,7 +73,10 @@ pwd yarn install # generate static content -yarn build +if ! yarn build; then + echo -e "$red_text""yarn build has failed. Documentation probably has broken links""$default_text" + echo -e "$red_text""please fix the links, commit, and try again""$default_text" +fi # Check tty for local/remote deploys (we expect cloud to be non-interactive) # results like /dev/ttys000 || not a tty