info_docs_decloud/build-dev.sh

20 lines
523 B
Bash
Raw Permalink Normal View History

2025-01-20 01:21:08 +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"
# Change baseUrl to '/declouddev/'
sed -i "s|/decloud/|/declouddev/|g" docusaurus.config.ts ./src/pages/index.tsx
bun docusaurus build
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/declouddev
# Change baseUrl to '/decloud/'
sed -i "s|/declouddev/|/decloud/|g" docusaurus.config.ts ./src/pages/index.tsx