fix link for tech #10

Open
mik-tf wants to merge 1 commits from main_fix_links into main
4 changed files with 8 additions and 8 deletions

View File

@ -9,12 +9,12 @@ export PATH=${BASE}/node_modules/.bin:$PATH
echo "Docs directory: $script_dir" echo "Docs directory: $script_dir"
# Change baseUrl to '/tftechdev/' # Change baseUrl to '/techdev/'
sed -i "s|/tftech/|/tftechdev/|g" docusaurus.config.ts ./src/pages/index.tsx sed -i "s|/tech/|/techdev/|g" docusaurus.config.ts ./src/pages/index.tsx
bun docusaurus build bun docusaurus build
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftechdev rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/techdev
# Change baseUrl to '/tftech/' # Change baseUrl to '/tech/'
sed -i "s|/tftechdev/|/tftech/|g" docusaurus.config.ts ./src/pages/index.tsx sed -i "s|/techdev/|/tech/|g" docusaurus.config.ts ./src/pages/index.tsx

View File

@ -11,4 +11,4 @@ echo "Docs directory: $script_dir"
bun docusaurus build bun docusaurus build
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftech rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tech

View File

@ -8,7 +8,7 @@ const config: Config = {
favicon: 'img/favicon.png', favicon: 'img/favicon.png',
url: 'https://threefold.info', url: 'https://threefold.info',
baseUrl: '/tftech/', baseUrl: '/tech/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',

View File

@ -2,5 +2,5 @@ import React from 'react';
import { Redirect } from '@docusaurus/router'; import { Redirect } from '@docusaurus/router';
export default function Home() { export default function Home() {
return <Redirect to="/tftech/docs" />; return <Redirect to="/tech/docs" />;
} }