Merge pull request 'update dev script' (!54) from development into main
Reviewed-on: tfgrid/info_docs_tfgrid4#54
This commit is contained in:
commit
f74512b0da
20
build-dev.sh
20
build-dev.sh
@ -10,8 +10,26 @@ export PATH=${BASE}/node_modules/.bin:$PATH
|
|||||||
|
|
||||||
echo "Docs directory: $script_dir"
|
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 build
|
||||||
#bun ${script_dir}/node_modules/.bin/docusaurus build
|
#bun ${script_dir}/node_modules/.bin/docusaurus build
|
||||||
pnpm 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