From c111b501b7090651489dc3cc9f0075c8eddc614f Mon Sep 17 00:00:00 2001 From: mik-tf Date: Tue, 11 Feb 2025 22:25:54 -0500 Subject: [PATCH 1/2] updafe cfg --- README.md | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a7731da..ff51dc4 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,47 @@ -

ThreeFold DePIN Board

+

ThreeFold DePIN Cloud Website

+

Table of Contents

-to run in development mode +- [Introductiona](#introductiona) +- [Install Hero](#install-hero) +- [Deploy Locally](#deploy-locally) +- [Push Changes](#push-changes) +- [URL](#url) + +--- + +## Introductiona + +This repository contains the code to deploy the ThreeFold DePIN Cloud website. + +## Install Hero ```bash -#first time to get hero curl https://raw.githubusercontent.com/freeflowuniverse/herolib/refs/heads/development/install_hero.sh > /tmp/install_hero.sh bash /tmp/install_hero.sh -#DONT FORGET TO START A NEW SHELL (otherwise the paths will not be set) +``` +## Deploy Locally + +You can run the website in your development environment on a local browser. Make sure to start a new shell if you've just installed Hero. + +``` hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -d ``` -to push +## Push Changes -```bash -hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bp -update +- Development + ``` + hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bpd + ``` +- Production -#push for development: -hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bpd -update -``` + ```bash + hero docusaurus -u https://git.ourworld.tf/tfgrid/docs_depin -bp + ``` ## URL -- The production website is available at `https://threefold.info/depin` +- The website in staging mode is at https://dev.threefold.info/depin +- The website in production mode is at https://threefold.info/depin \ No newline at end of file -- 2.40.1 From 926edb530e2fc06409db08b2d760f2ca77e27366 Mon Sep 17 00:00:00 2001 From: mik-tf Date: Fri, 7 Mar 2025 08:09:06 -0500 Subject: [PATCH 2/2] update docs_depin --- build.sh | 22 ---------------------- cfg/footer.json | 3 +-- cfg/main.json | 9 +++++++-- develop.sh | 16 ---------------- 4 files changed, 8 insertions(+), 42 deletions(-) delete mode 100755 build.sh delete mode 100755 develop.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index 4f35876..0000000 --- a/build.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -set -ex - -script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd "$(script_dir}" - -echo "Docs directory: $script_dir" - -cd /Users/despiegk/hero/var/docusaurus - -export PATH=/tmp/docusaurus_build/node_modules/.bin:${HOME}/.bun/bin/:$PATH - -rm -rf /Users/despiegk/hero/var/docusaurus/build/ - -. /Users/despiegk/.zprofile - -bun docusaurus build - -mkdir -p -echo SYNC TO -rsync -rv --delete /Users/despiegk/hero/var/docusaurus/build/ / diff --git a/cfg/footer.json b/cfg/footer.json index cdd1666..0310063 100644 --- a/cfg/footer.json +++ b/cfg/footer.json @@ -40,6 +40,5 @@ } ] } - ], - "copyright": "Copyright © 2025 ThreeFold" + ] } diff --git a/cfg/main.json b/cfg/main.json index 94b3184..f40128d 100644 --- a/cfg/main.json +++ b/cfg/main.json @@ -11,6 +11,11 @@ "image": "https://info.ourworld.tf/img/ourworld_depin.png", "title": "Introduction | DePIN Projects" }, - "buildDest": ["root@info.ourworld.tf:/root/hero/www/info/depin"], - "buildDestDev": ["root@info.ourworld.tf:/root/hero/www/infodev/depin"] + "buildDest": [ + "root@info.ourworld.tf:/root/hero/www/info/depin" + ], + "buildDestDev": [ + "root@info.ourworld.tf:/root/hero/www/infodev/depin" + ], + "copyright": "ThreeFold" } diff --git a/develop.sh b/develop.sh deleted file mode 100755 index d5327fc..0000000 --- a/develop.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -e - -script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd "${script_dir}" - -echo "Docs directory: $script_dir" - -cd ~/hero/var/docusaurus - -export PATH=/tmp/docusaurus_build/node_modules/.bin:${HOME}/.bun/bin/:$PATH - -. /Users/despiegk/.zprofile - -bun run start -p 3100 -- 2.40.1