ohif-viewer/generateStaticSite.sh

22 lines
531 B
Bash
Raw Normal View History

cd docs
npm -v
2018-12-02 08:23:43 +01:00
node -v
echo 'Installing Gitbook CLI'
npm install
echo 'Running Gitbook installation'
./node_modules/gitbook-cli/bin/gitbook.js install
./node_modules/gitbook-cli/bin/gitbook.js build
cd ..
# Build and copy the StandaloneViewer into the static directory
echo $DEPLOY_PRIME_URL
2018-12-17 20:45:30 +01:00
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
2018-12-17 20:45:30 +01:00
mkdir ../docs/_book/viewer/
cp -R build/* ../docs/_book/viewer/