pyrtan / sourcev0.14.0 · main

Show the pyrtan version in the pyrtan.com footer, stamped at build time

Claude · 2026-10-27 · 6384f6b1b5837754b08ad518c693f6bacf7c5add · parents 9f226c2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013rD7jg3PznHuEYvaxmCdv1

Changes

 site/build.sh   | 5 ++++-
 site/index.html | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/site/build.sh b/site/build.sh
index e2f584f..fcc60bb 100755
--- a/site/build.sh
+++ b/site/build.sh
@@ -8,7 +8,10 @@ out="${1:-out}"
rm -rf "$out" mkdir -p "$out/console" "$out/catalog" "$out/rendezvous" out="$(cd "$out" && pwd)"
-cp site/index.html site/CNAME "$out/"
+cp site/CNAME "$out/"
+# The landing page carries the version of the pyrtan it was built with.
+version="$(pyrtan --version | cut -d' ' -f2)"
+sed "s/__VERSION__/$version/g" site/index.html > "$out/index.html"
cp site/rendezvous/seeds.json "$out/rendezvous/" # The directory as the seeds know it now, keeping the last published # snapshot's entries when a seed is down (SNAPSHOT_PREVIOUS may add more). diff --git a/site/index.html b/site/index.html index e9b542b..f86f25d 100644 --- a/site/index.html +++ b/site/index.html
@@ -82,7 +82,7 @@ pyrtan directory # who th
<h2>Hosting</h2> <p>Self-hosting is the product. A hosted option, running the same open-source hub per customer with secrets, retention, scheduled re-runs and alerts around it, is planned; it will speak the same API, so a swarm can move either way without changing a caller.</p>
- <footer>Pyrtan is free software under the AGPL-3.0-or-later. Trees you write are your own.</footer>
+ <footer>Pyrtan v__VERSION__ is free software under the AGPL-3.0-or-later. Trees you write are your own.</footer>
</main> <script> const esc = (s) => String(s).replace(/[&<>"]/g, c => ({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"}[c]));