Compare commits

...

10 Commits

Author SHA1 Message Date
f6beff78ab ... 2025-07-30 12:20:19 +02:00
29a965f824 ... 2025-07-30 12:11:27 +02:00
479f73e813 ... 2025-07-30 10:27:00 +02:00
29b4ef8ef5 Merge branch 'development' of git.ourworld.tf:ourworld_web/www_mycelium into development 2025-07-21 13:44:08 +02:00
6d932a8c56 ... 2025-07-21 13:44:07 +02:00
aa0914b765 remove github actions 2025-06-22 12:33:54 +03:00
4b4ccd7847 test content
Some checks failed
www2.mycelium.threefold.io/ / Deploy (push) Has been cancelled
www2.mycelium.threefold.io/ / Wait for Website Update (push) Has been cancelled
www2.mycelium.threefold.io/ / Check for Broken Links (push) Has been cancelled
2025-06-22 12:31:10 +03:00
abb1996c42 update
Some checks are pending
www2.mycelium.threefold.io/ / Deploy (push) Waiting to run
www2.mycelium.threefold.io/ / Wait for Website Update (push) Blocked by required conditions
www2.mycelium.threefold.io/ / Check for Broken Links (push) Blocked by required conditions
2025-06-18 13:19:50 +03:00
cadfb59772 add open graph
Some checks failed
www2.threefold_io / Deploy (push) Has been cancelled
www2.threefold_io / Wait for Website Update (push) Has been cancelled
www2.threefold_io / Check for Broken Links (push) Has been cancelled
2025-05-25 17:48:16 +03:00
bccf58f8a9 add open graph
Some checks are pending
www2.threefold_io / Deploy (push) Waiting to run
www2.threefold_io / Wait for Website Update (push) Blocked by required conditions
www2.threefold_io / Check for Broken Links (push) Blocked by required conditions
2025-05-25 17:47:06 +03:00
18 changed files with 147 additions and 223 deletions

View File

@ -1,46 +0,0 @@
name: www2.threefold_io
on:
push:
branches: [ development ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.threefold.io
uses: appleboy/ssh-action@master
with:
host: dev.threefold.io
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www2/www_threefold_io/
git log -1
git fetch
git reset --hard origin/development
sed -i "s/https:\/\/www.threefold.io/https:\/\/dev.threefold.io/g" config.toml
./build.sh
wait:
needs: deploy
name: Wait for Website Update
runs-on: ubuntu-latest
steps:
- name: Wait Period
id: wait-deploy
run: |
echo "Sleeping for 30"
sleep 30
checklinks:
needs: wait
name: Check for Broken Links
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www2.threefold.io -w 404'

View File

@ -1,46 +0,0 @@
name: www.threefold_io
on:
push:
branches: [ master ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www.threefold.io
uses: appleboy/ssh-action@master
with:
host: www.threefold.io
username: root
key: ${{ secrets.TF_SECRET }}
port: 22
script: |
cd /opt/www_threefold_io/
git log -1
git fetch
git reset --hard origin/master
sed -i "s/https:\/\/dev.threefold.io/https:\/\/www.threefold.io/g" config.toml
./build.sh
wait:
needs: deploy
name: Wait for Website Update
runs-on: ubuntu-latest
steps:
- name: Wait Period
id: wait-deploy
run: |
echo "Sleeping for 30"
sleep 30
checklinks:
needs: wait
name: Check for Broken Links
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www.threefold.io -w 404'

View File

@ -1,46 +0,0 @@
name: www3.threefold_io
on:
push:
branches: [ development_sasha ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www3.threefold.io
uses: appleboy/ssh-action@master
with:
host: www3.threefold.io
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/tmp/www_threefold_io/
git log -1
git restore .
git pull
sed -i "s/https:\/\/dev.threefold.io/https:\/\/dev2.threefold.io/g" config.toml
bash build.sh
wait:
needs: deploy
name: Wait for Website Update
runs-on: ubuntu-latest
steps:
- name: Wait Period
id: wait-deploy
run: |
echo "Sleeping for 30"
sleep 30
checklinks:
needs: wait
name: Check for Broken Links
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www3.threefold.io -w 404'

View File

@ -1,46 +0,0 @@
name: www3.threefold_io
on:
push:
branches: [ 3.10.0 ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www3.threefold.io
uses: appleboy/ssh-action@master
with:
host: www3.threefold.io
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www3/www_threefold_io/
git log -1
git restore .
git pull
sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml
bash build.sh
wait:
needs: deploy
name: Wait for Website Update
runs-on: ubuntu-latest
steps:
- name: Wait Period
id: wait-deploy
run: |
echo "Sleeping for 30"
sleep 30
checklinks:
needs: wait
name: Check for Broken Links
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www3.threefold.io -w 404'

View File

@ -17,7 +17,7 @@ Mycelium is a decentralized networking and storage solution designed to integrat
### **Clone the Repository**
```sh
git clone https://git.ourworld.tf/ourworld_web/www_mycelium.git
git clone https://git.threefold.info/ourworld_web/www_mycelium.git
cd www_mycelium
```
@ -36,7 +36,7 @@ This will generate and serve the website for preview.
## 📌 **Issues & Contributions**
Report bugs or suggest improvements in the issue tracker:
🔗 [Issue Tracker](https://git.ourworld.tf/tfgrid/circle_web_presence/issues)
🔗 [Issue Tracker](https://git.threefold.info/tfgrid/circle_web_presence/issues)
## 📜 **License**
This project is open-source and licensed under [insert applicable license].

View File

@ -1,34 +1,33 @@
PREFIX="mycelium"
echo "Starting build..."
SOURCE=${BASH_SOURCE[0]}
DIR_OF_THIS_SCRIPT="$( dirname "$SOURCE" )"
ABS_DIR_OF_SCRIPT="$( realpath $DIR_OF_THIS_SCRIPT )"
# TODO: Check if current version is latest to avoid redundant installation
if [[ -f "tailwindcss" ]]
then
rm tailwindcss
fi
# Check if tailwindcss executable exists, if not, download and install it
if [[ ! -f "tailwindcss" ]]; then
echo "Installing & building tailwind..."
ASSET="tailwindcss"
# checks os and architecture for correct release
# https://stackoverflow.com/a/8597411
echo "Installing & building tailwind..."
ASSET="tailwindcss"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
ASSET="$ASSET-linux"
elif [[ "$OSTYPE" == "darwin"* ]]; then
ASSET="$ASSET-macos"
fi
if [[ "$(uname -m)" == "x86_64"* ]]; then
ASSET="$ASSET-x64"
elif [[ "$(uname -m)" == "arm64"* ]]; then
ASSET="$ASSET-arm64"
fi
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
ASSET="$ASSET-linux"
elif [[ "$OSTYPE" == "darwin"* ]]; then
ASSET="$ASSET-macos"
curl -sLO "https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/${ASSET}"
chmod +x $ASSET
mv $ASSET tailwindcss
else
echo "tailwindcss already exists, skipping installation."
fi
if [[ "$(uname -m)" == "x86_64"* ]]; then
ASSET="$ASSET-x64"
elif [[ "$(uname -m)" == "arm64"* ]]; then
ASSET="$ASSET-arm64"
fi
curl -sLO "https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/${ASSET}"
chmod +x $ASSET
mv $ASSET tailwindcss
# initialized and configures tailwind if not configured
@ -43,4 +42,15 @@ fi
echo "Compiling tailwindcss and building zola project..."
rm -rf public static/css
./tailwindcss -i css/index.css -o ./static/css/index.css --minify
zola --root $ABS_DIR_OF_SCRIPT build
# echo "Building without prefix..."
# sed 's|base_url = "BASEURL"|base_url = "https://www.mycelium.threefold.io/"|' config.templ.toml > config.toml
# zola --root $ABS_DIR_OF_SCRIPT build
# rsync -avz --delete public/ "root@threefold.info:/root/hero/www/info/$PREFIX/"
echo "Building with prefix: /$PREFIX/"
sed 's|base_url = "BASEURL"|base_url = "/mycelium/"|' config.templ.toml > config.toml
zola --root $ABS_DIR_OF_SCRIPT build
rsync -rav --delete public/ "${HOME}/hero/var/www/$PREFIX/"
rsync -avz --delete public/ "root@threefold.info:/root/hero/www/info/$PREFIX/"

99
config.templ.toml Normal file
View File

@ -0,0 +1,99 @@
# The URL the site will be built for
base_url = "BASEURL"
title = "Mycelium"
description = "Our global digital backbone"
# When set to "true", a feed is automatically generated.
# generate_feed = true
# The filename to use for the feed. Used as the template filename, too.
# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
# feed_filename = "atom.xml"
# The number of articles to include in the feed. All items are included if
# this limit is not set (the default).
# feed_limit = 10
# Whether to automatically compile all Sass files in the sass directory
compile_sass = false
# When set to "true", the generated HTML files are minified.
# minify_html = true
# I'm keeping off for now -- buggy -- 2021-02-05 (@keats says it'll be fixed 0.14.0)
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
highlight_theme = "visual-studio-dark"
# When set to "true", emoji aliases translated to their corresponding
# Unicode emoji equivalent in the rendered Markdown files. (e.g.: :smile: => 😄)
render_emoji = false
# Whether external links are to be opened in a new tab
# If this is true, a `rel="noopener"` will always automatically be added for security reasons
# external_links_target_blank = false
# Whether to set rel="nofollow" for all external links
external_links_no_follow = true
# Whether to set rel="noreferrer" for all external links
external_links_no_referrer = true
# Whether smart punctuation is enabled (changing quotes, dashes, dots in their typographic form)
# For example, `...` into `…`, `"quote"` into `“curly”` etc
smart_punctuation = true
#[build]
#not_found = "404.md"
[[taxonomies]]
name = "categories"
feed = true
paginate_by = 6
paginate_path = "blog-posts"
[[taxonomies]]
name = "partners-category"
feed = true
paginate_by = 6
paginate_path = "partner-card"
[[taxonomies]]
name = "news-category"
feed = true
paginate_by = 6
paginate_path = "news-card"
[[taxonomies]]
name = "roles"
feed = true
paginate_by = 2
paginate_path = "join-us"
[[taxonomies]]
name = "tags"
feed = true
paginate_by = 9
paginate_path = "tags"
[[taxonomies]]
name = "people"
feed = false
paginate_by = 9
paginate_path = "people"
[[taxonomies]]
name = "memberships"
feed = false
paginate_by = 8
paginate_path = "people/memberships"
[extra]
# Put all your custom variables here

View File

@ -1,6 +1,5 @@
# The URL the site will be built for
base_url = "https://www3.mycelium.threefold.io/"
# Change this to your own URL! Please note this variable **must** be uncommented .
base_url = "/mycelium/"
title = "Mycelium"
description = "Our global digital backbone"

View File

@ -5,8 +5,8 @@ description: "Mycelium is a decentralized networking and storage solution design
#updated: 2021-02-20T14:40:00-06:00
draft: false
extra:
author: ThreeFold
imgPath: home/tf.png
author: Mycelium
imgPath: home/mycel2.png
---

View File

@ -3,7 +3,7 @@ title: "Mycelium"
description: "Mycelium is a decentralized networking and storage solution designed to integrate seamlessly with AI workloads, content delivery, and messaging."
insert_anchor_links: "left"
extra:
author: ThreeFold
author: Mycelium
imgPath: home/mycel2.png
---

View File

@ -12,8 +12,8 @@
{# <img class="w-36 h-auto" src="images/mycelium_white.png" alt="MYCELIUM Logo" /> #}
<a href="/" class="flex">
<img id="lightLogo" src="/images/mycelium_white.png" alt="Light Logo" class="logo light w-36 h-auto" style="max-width: none;">
<img id="darkLogo" src="/images/mycelium_dark.png" alt="Dark Logo" class="logo dark w-36 h-auto" style="max-width: none;">
<img id="lightLogo" src="{{ get_url(path='/images/mycelium_white.png') }}" alt="Light Logo" class="logo light w-36 h-auto" style="max-width: none;">
<img id="darkLogo" src="{{ get_url(path='/images/mycelium_dark.png') }}" alt="Dark Logo" class="logo dark w-36 h-auto" style="max-width: none;">
</a>

View File

@ -259,7 +259,7 @@
}
.active{
color: rgb(100, 100, 100) !important;
color: rgb(144 143 143) !important
}
.nav_btn:hover {
color: #c7c7c7 !important;

View File

@ -20,7 +20,7 @@
</div>
</div>
<div class="relative mt-16 h-80 lg:mt-8">
<img class="absolute top-0 left-0 w-[25rem] lg:w-[45rem] max-w-none rounded-2xl ring-1 ring-white/10" src="{{ image_src }}" alt="{{ image_alt }}" width="1824" height="1080">
<img class="absolute top-0 left-0 w-[25rem] lg:w-[45rem] max-w-none rounded-2xl ring-1 ring-white/10" src="{{ get_url(path=image_src) }}" alt="{{ image_alt }}" width="1824" height="1080">
</div>
</div>
</div>

View File

@ -9,7 +9,7 @@
<div class="card relative shadow rounded-lg p-4 transition-all duration-300">
{% if icon %}
<div class="flex items-center justify-center h-12 w-12 rounded-md mb-4">
<img src="{{ icon | safe }}" class="">
<img src="{{ get_url(path=icon) }}" class="">
</div>
{% endif %}
<h3 class="text-lg font-medium">{{ title }}</h3>

View File

@ -28,7 +28,7 @@
</div>
</div>
<div class="relative lg:col-span-5 lg:-mr-8 xl:absolute xl:inset-0 xl:left-1/2 xl:mr-0 ">
<img class="lg:mt-10 aspect-1/1 mx-auto w-full sm:w-2/3 md:w-1/2 lg:w-full object-cover lg:absolute lg:inset-0 lg:aspect-auto" src="{{ image_src }}" alt="{{ image_alt }}">
<img class="lg:mt-10 aspect-1/1 mx-auto w-full sm:w-2/3 md:w-1/2 lg:w-full object-cover lg:absolute lg:inset-0 lg:aspect-auto" src="{{ get_url(path=image_src) }}" alt="{{ image_alt }}">
</div>
</div>
</div>

View File

@ -8,7 +8,7 @@
</div>
<div class="relative overflow-hidden pt-2">
<div class="mx-auto max-w-7xl px-4 lg:px-8 flex items-center justify-center">
<img src="{{ image_src }}" alt="{{ image_alt }}" width="900">
<img src="{{ get_url(path=image_src) }}" alt="{{ image_alt }}" width="900">
</div>
</div>

View File

@ -9,7 +9,7 @@
</div>
<div class="mx-auto max-w-7xl lg:flex lg:items-center lg:gap-x-15 lg:px-8">
<div class="my-6 lg:my-0 lg:flex lg:justify-center lg:w-1/2">
<img class="w-full max-w-lg h-auto object-cover rounded-xl" src="{{ image_src }}"
<img class="w-full max-w-lg h-auto object-cover rounded-xl" src="{{ get_url(path=image_src) }}"
alt="{{ image_alt }}">
</div>
<div class="mx-auto max-w-lg lg:mx-0 lg:flex-auto pt-4">

View File

@ -13,7 +13,7 @@
<div class="mx-auto mt-10 lg:mt-0 lg:flex lg:items-center lg:gap-x-15 ">
<div class="mt-6 lg:mt-0 lg:flex lg:justify-center lg:w-1/2">
<img class="w-full max-w-md h-auto object-cover rounded-xl" src="{{ image_src }}"
<img class="w-full max-w-md h-auto object-cover rounded-xl" src="{{ get_url(path=image_src) }}"
alt="{{ image_alt }}">
</div>
<div class="mx-auto max-w-xl lg:mx-6 lg:flex-auto">