updated website with tech content

This commit is contained in:
mik-tf
2025-01-16 10:35:26 -05:00
parent f7d55dc687
commit 94b853dab2
62 changed files with 566 additions and 2579 deletions

View File

@@ -7,29 +7,16 @@ cd "${script_dir}"
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
# Change baseUrl to '/depindev/'
sed -i "s|/tftech/|/tftechdev/|g" docusaurus.config.ts ./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/docs4dev
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftechdev
# 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
# Change baseUrl to '/depin/'
sed -i "s|/tftechdev/|/tftech/|g" docusaurus.config.ts ./src/pages/index.tsx