From 9e16aec7adeb3b980dd86fadb3ab006c1bd2b891 Mon Sep 17 00:00:00 2001 From: kristof de spiegeleer Date: Wed, 5 Feb 2025 08:25:52 +0300 Subject: [PATCH] ddd --- .gitignore | 11 +++++++++++ build.sh | 12 ++++++++---- cfg/footer.json | 40 ++++++++++++++++++++++++++++++++++++++++ cfg/main.json | 16 ++++++++++++++++ cfg/navbar.json | 15 +++++++++++++++ develop.sh | 6 +++--- 6 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 cfg/footer.json create mode 100644 cfg/main.json create mode 100644 cfg/navbar.json diff --git a/.gitignore b/.gitignore index 055a53f..77793ac 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,16 @@ npm-debug.log* yarn-debug.log* yarn-error.log* bun.lockb +bun.lock yarn.lock + +build.sh +build_dev.sh +develop.sh + +docusaurus.config.ts + +sidebars.ts + +tsconfig.json diff --git a/build.sh b/build.sh index 64d118d..3c4b383 100755 --- a/build.sh +++ b/build.sh @@ -1,14 +1,18 @@ #!/bin/bash -set -ex +set -e script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "${script_dir}" -export PATH=${BASE}/node_modules/.bin:$PATH - echo "Docs directory: $script_dir" +cd /Users/despiegk/hero/var/docusaurus + +export PATH=/tmp/docusaurus_build/node_modules/.bin:$PATH + +rm -rf /Users/despiegk/hero/var/docusaurus/build/ + bun docusaurus build -rsync -rv --delete ${script_dir}/build/ root@info.ourworld.tf:/root/hero/www/info/tftech +rsync -rv --delete /Users/despiegk/hero/var/docusaurus/build/ root@info.ourworld.tf:/root/hero/www/info/kristof/ diff --git a/cfg/footer.json b/cfg/footer.json new file mode 100644 index 0000000..cbef73a --- /dev/null +++ b/cfg/footer.json @@ -0,0 +1,40 @@ +{ + "style": "dark", + "links": [ + { + "title": "Docs", + "items": [ + { + "label": "Introduction", + "to": "/docs" + }, + { + "label": "TFGrid V4 Docs", + "href": "https://docs.threefold.io/" + } + ] + }, + { + "title": "Community", + "items": [ + { + "label": "Telegram", + "href": "https://t.me/threefold" + }, + { + "label": "X", + "href": "https://x.com/threefold_io" + } + ] + }, + { + "title": "Links", + "items": [ + { + "label": "ThreeFold.io", + "href": "https://threefold.io" + } + ] + } + ] +} diff --git a/cfg/main.json b/cfg/main.json new file mode 100644 index 0000000..8d823a4 --- /dev/null +++ b/cfg/main.json @@ -0,0 +1,16 @@ +{ + "title": "Internet Geek", + "tagline": "Internet Geek", + "favicon": "img/favicon.png", + "url": "https://friends.threefold.info", + "url_home": "docs/", + "baseUrl": "/kristof/", + "image": "img/tf_graph.png", + "metadata": { + "description": "ThreeFold is laying the foundation for a geo aware Web 4, the next generation of the Internet.", + "image": "https://threefold.info/kristof/img/tf_graph.png", + "title": "ThreeFold Technology Vision" + }, + "buildDest":"root@info.ourworld.tf:/root/hero/www/info", + "buildDestDev":"root@info.ourworld.tf:/root/hero/www/infodev" +} diff --git a/cfg/navbar.json b/cfg/navbar.json new file mode 100644 index 0000000..76a1354 --- /dev/null +++ b/cfg/navbar.json @@ -0,0 +1,15 @@ +{ + "title": "Kristof = Chief Executive Geek", + "items": [ + { + "href": "https://threefold.info/kristof/", + "label": "ThreeFold Technology", + "position": "right" + }, + { + "href": "https://threefold.io", + "label": "ThreeFold.io", + "position": "right" + } + ] +} diff --git a/develop.sh b/develop.sh index 1e717c6..1c42497 100755 --- a/develop.sh +++ b/develop.sh @@ -1,14 +1,14 @@ #!/bin/bash -set -ex +set -e script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "${script_dir}" echo "Docs directory: $script_dir" -#export NODE_OPTIONS=--openssl-legacy-provider +cd /Users/despiegk/hero/var/docusaurus -#npm run start -- --host 0.0.0.0 +export PATH=/tmp/docusaurus_build/node_modules/.bin:$PATH bun run start -p 3100