...
This commit is contained in:
parent
562dfcd8b3
commit
2816b0ebb9
3
.gitignore
vendored
3
.gitignore
vendored
@ -18,3 +18,6 @@
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
bun.lockb
|
||||||
|
|
||||||
|
yarn.lock
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
|
|
||||||
};
|
|
@ -9,14 +9,12 @@ export PATH=${BASE}/node_modules/.bin:$PATH
|
|||||||
|
|
||||||
echo "Docs directory: $script_dir"
|
echo "Docs directory: $script_dir"
|
||||||
|
|
||||||
# Change baseUrl to '/depindev/'
|
# Change baseUrl to '/tftechdev/'
|
||||||
sed -i "s|/tftech/|/tftechdev/|g" docusaurus.config.ts ./src/pages/index.tsx
|
sed -i "s|/tftech/|/tftechdev/|g" docusaurus.config.ts ./src/pages/index.tsx
|
||||||
|
|
||||||
#bun build
|
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/tftechdev
|
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftechdev
|
||||||
|
|
||||||
# Change baseUrl to '/depin/'
|
# Change baseUrl to '/tftech/'
|
||||||
sed -i "s|/tftechdev/|/tftech/|g" docusaurus.config.ts ./src/pages/index.tsx
|
sed -i "s|/tftechdev/|/tftech/|g" docusaurus.config.ts ./src/pages/index.tsx
|
5
build.sh
5
build.sh
@ -7,11 +7,8 @@ cd "${script_dir}"
|
|||||||
|
|
||||||
export PATH=${BASE}/node_modules/.bin:$PATH
|
export PATH=${BASE}/node_modules/.bin:$PATH
|
||||||
|
|
||||||
|
|
||||||
echo "Docs directory: $script_dir"
|
echo "Docs directory: $script_dir"
|
||||||
|
|
||||||
#bun build
|
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/tftech
|
rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftech
|
||||||
|
@ -7,6 +7,8 @@ cd "${script_dir}"
|
|||||||
|
|
||||||
echo "Docs directory: $script_dir"
|
echo "Docs directory: $script_dir"
|
||||||
|
|
||||||
export NODE_OPTIONS=--openssl-legacy-provider
|
#export NODE_OPTIONS=--openssl-legacy-provider
|
||||||
|
|
||||||
npm run start -- --host 0.0.0.0
|
#npm run start -- --host 0.0.0.0
|
||||||
|
|
||||||
|
bun run start -p 3100
|
||||||
|
@ -74,8 +74,7 @@ const config: Config = {
|
|||||||
title: '',
|
title: '',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'ThreeFold Logo',
|
alt: 'ThreeFold Logo',
|
||||||
src: 'img/logo.svg',
|
src: 'img/new_logo_tft.png',
|
||||||
srcDark: 'img/new_logo_tft.png',
|
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
@ -165,7 +164,7 @@ const config: Config = {
|
|||||||
theme: prismThemes.github,
|
theme: prismThemes.github,
|
||||||
darkTheme: prismThemes.dracula,
|
darkTheme: prismThemes.dracula,
|
||||||
},
|
},
|
||||||
} satisfies Preset.ThemeConfig,
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
20
install.sh
20
install.sh
@ -8,17 +8,13 @@ cd "${script_dir}"
|
|||||||
|
|
||||||
echo "Docs directory: $script_dir"
|
echo "Docs directory: $script_dir"
|
||||||
|
|
||||||
# Check if bun is installed
|
Check if bun is installed
|
||||||
# if ! command -v bun &> /dev/null; then
|
if ! command -v bun &> /dev/null; then
|
||||||
# echo "Bun is not installed. Installing..."
|
echo "Bun is not installed. Installing..."
|
||||||
# curl -fsSL https://bun.sh/install | bash
|
curl -fsSL https://bun.sh/install | bash
|
||||||
# else
|
else
|
||||||
# echo "Bun is already installed."
|
echo "Bun is already installed."
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
#bun install
|
bun install
|
||||||
|
|
||||||
export PATH=${BASE}/node_modules/.bin:$PATH
|
|
||||||
|
|
||||||
npm install @docusaurus/core@3.6.3 @docusaurus/preset-classic@3.6.3 @docusaurus/theme-mermaid@3.6.3
|
|
||||||
pnpm install
|
|
||||||
|
18210
package-lock.json
generated
18210
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -15,17 +15,17 @@
|
|||||||
"typecheck": "tsc"
|
"typecheck": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "^3.6.3",
|
"@docusaurus/core": "^3.7.0",
|
||||||
"@docusaurus/preset-classic": "^3.6.3",
|
"@docusaurus/preset-classic": "^3.7.0",
|
||||||
"@docusaurus/theme-mermaid": "^3.6.3",
|
"@docusaurus/theme-mermaid": "^3.7.0",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
"react": "^18.0.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.0.0"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "^3.6.3",
|
"@docusaurus/module-type-aliases": "^3.7.0",
|
||||||
"@docusaurus/tsconfig": "3.5.2",
|
"@docusaurus/tsconfig": "3.5.2",
|
||||||
"@docusaurus/types": "3.5.2",
|
"@docusaurus/types": "3.5.2",
|
||||||
"typescript": "~5.5.2"
|
"typescript": "~5.5.2"
|
||||||
@ -43,7 +43,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0"
|
"bun": ">=1.1.45"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
|
"packageManager": "bun@1.1.45"
|
||||||
}
|
}
|
||||||
|
12221
pnpm-lock.yaml
12221
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user