diff --git a/README.md b/README.md index 955efda..0e350a8 100644 --- a/README.md +++ b/README.md @@ -29,5 +29,7 @@ This repository contains the code to deploy the ThreeFold V4 Docs. ## URL -- The website in staging mode is at `threefold.info/docs4` +- The website in staging mode is at `docsdev.threefold.pro` + - Username: docsdev + - Password: TFV42025 - The website in production mode is at `docs.threefold.io` \ No newline at end of file diff --git a/build-dev.sh b/build-dev.sh new file mode 100755 index 0000000..c93aa77 --- /dev/null +++ b/build-dev.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -ex + +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +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 + +rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/docsdev diff --git a/build.sh b/build.sh index 9ba3c1e..416c841 100755 --- a/build.sh +++ b/build.sh @@ -14,4 +14,4 @@ echo "Docs directory: $script_dir" #bun ${script_dir}/node_modules/.bin/docusaurus build pnpm build -rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/docs4 +rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/docs diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ce32b60..66f1f6c 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -7,8 +7,8 @@ const config: Config = { tagline: 'Self-Healing Data & Cloud Network', favicon: 'img/favicon.png', - url: 'https://threefold.info', - baseUrl: '/docs4/', + url: 'https://docs.threefold.io', + baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -58,6 +58,12 @@ const config: Config = { themeConfig: { + algolia: { + appId: 'ARAM4VJG2D', + apiKey: '674fd2945f4e534903ff074723bd20be', + indexName: 'threefold', + }, + colorMode: { defaultMode: 'dark', disableSwitch: true, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d4386c4..c92cc9a 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -2,5 +2,5 @@ import React from 'react'; import { Redirect } from '@docusaurus/router'; export default function Home() { - return ; + return ; } \ No newline at end of file