update dev script
This commit is contained in:
parent
15b4337c3c
commit
902fb496bd
20
build-dev.sh
20
build-dev.sh
@ -10,8 +10,26 @@ export PATH=${BASE}/node_modules/.bin:$PATH
|
||||
|
||||
echo "Docs directory: $script_dir"
|
||||
|
||||
# Change urls from production to staging
|
||||
|
||||
sed -i '
|
||||
s|url: '\''https://docs.threefold.io'\''|url: '\''https://threefold.info'\''|
|
||||
s|baseUrl: '\''/'\''|baseUrl: '\''/docs4dev'\''|
|
||||
' docusaurus.config.ts
|
||||
|
||||
sed -i "s|/docs/introduction|/docs4dev/docs/introduction|g" ./src/pages/index.tsx
|
||||
|
||||
#bun build
|
||||
#bun ${script_dir}/node_modules/.bin/docusaurus build
|
||||
pnpm build
|
||||
|
||||
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/docsdev
|
||||
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/docs4dev
|
||||
|
||||
# Change urls from staging to production
|
||||
|
||||
sed -i '
|
||||
s|url: '\''https://threefold.info'\''|url: '\''https://docs.threefold.io'\''|
|
||||
s|baseUrl: '\''/docs4dev'\''|baseUrl: '\''/'\''|
|
||||
' docusaurus.config.ts
|
||||
|
||||
sed -i "s|/docs4dev/docs/introduction|/docs/introduction|g" ./src/pages/index.tsx
|
Loading…
Reference in New Issue
Block a user