fix link for tech
This commit is contained in:
parent
a070bc7df5
commit
6043564128
10
build-dev.sh
10
build-dev.sh
@ -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
|
2
build.sh
2
build.sh
@ -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
|
||||||
|
@ -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',
|
||||||
|
@ -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" />;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user