25 lines
527 B
Bash
25 lines
527 B
Bash
|
|
||
|
#!/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
|
||
|
|
||
|
#bun install
|
||
|
|
||
|
export PATH=${BASE}/node_modules/.bin:$PATH
|
||
|
|
||
|
npm install @docusaurus/core@3.6.3 @docusaurus/preset-classic@3.6.3 @docusaurus/theme-mermaid@3.6.3
|
||
|
pnpm install
|