info_docs_tfgrid4_tech/build-dev.sh

20 lines
516 B
Bash
Raw Normal View History

2025-01-16 06:42:17 +00:00
#!/bin/bash
set -ex
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${script_dir}"
export PATH=${BASE}/node_modules/.bin:$PATH
echo "Docs directory: $script_dir"
2025-01-18 15:28:49 +00:00
# Change baseUrl to '/tftechdev/'
2025-01-16 15:35:26 +00:00
sed -i "s|/tftech/|/tftechdev/|g" docusaurus.config.ts ./src/pages/index.tsx
2025-01-16 06:42:17 +00:00
2025-01-19 19:18:53 +00:00
bun docusaurus build
2025-01-16 06:42:17 +00:00
2025-01-16 15:35:26 +00:00
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftechdev
2025-01-16 06:42:17 +00:00
2025-01-18 15:28:49 +00:00
# Change baseUrl to '/tftech/'
2025-01-16 15:35:26 +00:00
sed -i "s|/tftechdev/|/tftech/|g" docusaurus.config.ts ./src/pages/index.tsx