...
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -18,3 +18,6 @@ | ||||
| npm-debug.log* | ||||
| yarn-debug.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" | ||||
|  | ||||
| # Change baseUrl to '/depindev/' | ||||
| # Change baseUrl to '/tftechdev/' | ||||
| 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 | ||||
| bun build | ||||
|  | ||||
| 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 | ||||
							
								
								
									
										5
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								build.sh
									
									
									
									
									
								
							| @@ -7,11 +7,8 @@ cd "${script_dir}" | ||||
|  | ||||
| export PATH=${BASE}/node_modules/.bin:$PATH | ||||
|  | ||||
|  | ||||
| echo "Docs directory: $script_dir" | ||||
|  | ||||
| #bun build | ||||
| #bun ${script_dir}/node_modules/.bin/docusaurus build | ||||
| pnpm build | ||||
| bun build | ||||
|  | ||||
| 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" | ||||
|  | ||||
| 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: '', | ||||
|       logo: { | ||||
|         alt: 'ThreeFold Logo', | ||||
|         src: 'img/logo.svg', | ||||
|         srcDark: 'img/new_logo_tft.png', | ||||
|         src: 'img/new_logo_tft.png', | ||||
|       }, | ||||
|       items: [ | ||||
|         { | ||||
| @@ -165,7 +164,7 @@ const config: Config = { | ||||
|       theme: prismThemes.github, | ||||
|       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" | ||||
|  | ||||
| # Check if bun is installed | ||||
| # if ! command -v bun &> /dev/null; then | ||||
| #     echo "Bun is not installed. Installing..." | ||||
| #     curl -fsSL https://bun.sh/install | bash | ||||
| # else | ||||
| #     echo "Bun is already installed." | ||||
| # fi | ||||
| Check if bun is installed | ||||
| if ! command -v bun &> /dev/null; then | ||||
|     echo "Bun is not installed. Installing..." | ||||
|     curl -fsSL https://bun.sh/install | bash | ||||
| else | ||||
|     echo "Bun is already installed." | ||||
| 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" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@docusaurus/core": "^3.6.3", | ||||
|     "@docusaurus/preset-classic": "^3.6.3", | ||||
|     "@docusaurus/theme-mermaid": "^3.6.3", | ||||
|     "@docusaurus/core": "^3.7.0", | ||||
|     "@docusaurus/preset-classic": "^3.7.0", | ||||
|     "@docusaurus/theme-mermaid": "^3.7.0", | ||||
|     "@mdx-js/react": "^3.0.0", | ||||
|     "clsx": "^2.0.0", | ||||
|     "prism-react-renderer": "^2.3.0", | ||||
|     "react": "^18.0.0", | ||||
|     "react-dom": "^18.0.0" | ||||
|     "react": "^18.2.0", | ||||
|     "react-dom": "^18.2.0" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@docusaurus/module-type-aliases": "^3.6.3", | ||||
|     "@docusaurus/module-type-aliases": "^3.7.0", | ||||
|     "@docusaurus/tsconfig": "3.5.2", | ||||
|     "@docusaurus/types": "3.5.2", | ||||
|     "typescript": "~5.5.2" | ||||
| @@ -43,7 +43,7 @@ | ||||
|     ] | ||||
|   }, | ||||
|   "engines": { | ||||
|     "node": ">=18.0" | ||||
|     "bun": ">=1.1.45" | ||||
|   }, | ||||
|   "packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631" | ||||
|   "packageManager": "bun@1.1.45" | ||||
| } | ||||
|   | ||||
							
								
								
									
										12221
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										12221
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user