2025-01-06 21:43:09 +00:00
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
cd "${script_dir}"
|
|
|
|
|
|
|
|
echo "Docs directory: $script_dir"
|
|
|
|
|
|
|
|
# Check if bun is installed
|
|
|
|
# if ! command -v bun &> /dev/null; then
|
|
|
|
# echo "Bun is not installed. Installing..."
|
|
|
|
# curl -fsSL https://bun.sh/install | bash
|
|
|
|
# else
|
|
|
|
# echo "Bun is already installed."
|
|
|
|
# fi
|
|
|
|
|
2025-01-13 14:50:53 +00:00
|
|
|
#bun install
|
2025-01-06 21:43:09 +00:00
|
|
|
|
|
|
|
export PATH=${BASE}/node_modules/.bin:$PATH
|
|
|
|
|
2025-01-13 14:50:53 +00:00
|
|
|
npm install @docusaurus/core@3.6.3 @docusaurus/preset-classic@3.6.3 @docusaurus/theme-mermaid@3.6.3
|
|
|
|
pnpm install
|