2023-08-25 00:12:14 +05:30
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-08-25 08:22:24 +05:30
|
|
|
set -euxo pipefail
|
2023-08-25 09:43:53 +05:30
|
|
|
pnpm build
|
2023-08-25 00:12:14 +05:30
|
|
|
|
2023-08-25 10:04:53 +05:30
|
|
|
# Clone the Mermaid Live Editor repository
|
|
|
|
rm -rf mermaid-live-editor
|
|
|
|
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
|
2023-08-25 00:12:14 +05:30
|
|
|
|
2023-08-25 10:04:53 +05:30
|
|
|
cd mermaid-live-editor
|
2023-08-25 00:12:14 +05:30
|
|
|
|
2023-08-25 10:04:53 +05:30
|
|
|
# We have to use npm instead of yarn because it causes trouble in netlify
|
2023-08-25 00:12:14 +05:30
|
|
|
# Install dependencies
|
2023-08-25 10:04:53 +05:30
|
|
|
npm install
|
|
|
|
|
|
|
|
# Link local mermaid to live editor
|
|
|
|
npm link ../packages/mermaid
|
2023-08-25 09:37:22 +05:30
|
|
|
|
|
|
|
# Force Build the site
|
|
|
|
npm run build -- --force
|
2023-08-25 00:12:14 +05:30
|
|
|
|