add build for dev at docsdev.threefold.pro to stage test
This commit is contained in:
parent
4bba8c3b72
commit
cdb89748b8
@ -29,5 +29,7 @@ This repository contains the code to deploy the ThreeFold V4 Docs.
|
|||||||
|
|
||||||
## URL
|
## 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`
|
- The website in production mode is at `docs.threefold.io`
|
17
build-dev.sh
Executable file
17
build-dev.sh
Executable file
@ -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
|
2
build.sh
2
build.sh
@ -14,4 +14,4 @@ echo "Docs directory: $script_dir"
|
|||||||
#bun ${script_dir}/node_modules/.bin/docusaurus build
|
#bun ${script_dir}/node_modules/.bin/docusaurus build
|
||||||
pnpm 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
|
||||||
|
@ -7,8 +7,8 @@ const config: Config = {
|
|||||||
tagline: 'Self-Healing Data & Cloud Network',
|
tagline: 'Self-Healing Data & Cloud Network',
|
||||||
favicon: 'img/favicon.png',
|
favicon: 'img/favicon.png',
|
||||||
|
|
||||||
url: 'https://threefold.info',
|
url: 'https://docs.threefold.io',
|
||||||
baseUrl: '/docs4/',
|
baseUrl: '/',
|
||||||
|
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
onBrokenMarkdownLinks: 'warn',
|
onBrokenMarkdownLinks: 'warn',
|
||||||
@ -58,6 +58,12 @@ const config: Config = {
|
|||||||
|
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
|
||||||
|
algolia: {
|
||||||
|
appId: 'ARAM4VJG2D',
|
||||||
|
apiKey: '674fd2945f4e534903ff074723bd20be',
|
||||||
|
indexName: 'threefold',
|
||||||
|
},
|
||||||
|
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: 'dark',
|
defaultMode: 'dark',
|
||||||
disableSwitch: true,
|
disableSwitch: true,
|
||||||
|
@ -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="/docs4/docs/introduction" />;
|
return <Redirect to="/docs/introduction" />;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user