From fa0bcfe31fc9f162ce416a6da6ce80e06a4f1dc4 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Mon, 17 Dec 2018 21:23:50 +0100 Subject: [PATCH] Use homepage to fix static site deploy preview --- generateStaticSite.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/generateStaticSite.sh b/generateStaticSite.sh index fa6427985..03366fbe6 100755 --- a/generateStaticSite.sh +++ b/generateStaticSite.sh @@ -10,9 +10,11 @@ echo 'Running Gitbook installation' cd .. # Build and copy the StandaloneViewer into the static directory -# echo $DEPLOY_PRIME_URL -# export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/ +echo $DEPLOY_PRIME_URL cd OHIFViewer-react +export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/ +sed -i 's,https://docs.ohif.org/viewer,${ROOT_URL},g' package.json +cat package.json npm install npm run build mkdir ../docs/_book/viewer/