From 620b1633ced6ccd1b6c7c40626a56afaa578d9c5 Mon Sep 17 00:00:00 2001 From: Topher Lubaway Date: Thu, 23 Jun 2022 08:33:54 -0500 Subject: [PATCH] Fixes broken links so we can deploy again 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