aboutsummaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-19 20:54:08 +0300
committerAhmed <git@gumx.cc>2026-06-19 20:54:08 +0300
commitba5a9613f6c5b7d9b5f7eb7add147a9bdb8b6a44 (patch)
treea96339edc0ce2ea659180a5edc78a54ae1f59220 /hooks
parent508053f4c2704412db3d8eaa4a2e126bdf20d83d (diff)
fix: style and site structure
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-receive9
1 files changed, 7 insertions, 2 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 8251ac0..d56f9aa 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,7 +1,8 @@
#!/bin/sh
set -e
cd /home/git/build/ugi
-python3 web/scripts/gen_tool.py spec/ugi_registry_v0.json /var/www/ugi.gumx.cc/index.html
+mkdir -p /var/www/ugi.gumx.cc/specs /var/www/ugi.gumx.cc/encoder /var/www/ugi.gumx.cc/decoder /var/www/ugi.gumx.cc/converter
+python3 web/scripts/gen_tool.py spec/ugi_registry_v0.json /var/www/ugi.gumx.cc/
rsync -rlptD fonts/ /var/www/ugi.gumx.cc/fonts/
cp web/favicon.svg /var/www/ugi.gumx.cc/favicon.svg
cat > /var/www/ugi.gumx.cc/404.html <<'HTMLEOF'
@@ -34,7 +35,7 @@ footer { margin-top: 3em; }
</head>
<body>
<header>
-<nav><strong><a href="https://gumx.cc">gumx</a></strong></nav>
+<nav><strong><a href="https://gumx.cc">gumx</a></strong> / <a href="https://ugi.gumx.cc">ugi</a></nav>
</header>
<main>
<h1>404</h1>
@@ -45,12 +46,16 @@ footer { margin-top: 3em; }
<a href="https://twt.gumx.cc">twt</a> /
<a href="https://git.gumx.cc">git</a> /
<a href="https://mail.gumx.cc">mail</a> /
+<a href="https://list.gumx.cc">list</a> /
<a href="https://irc.gumx.cc">irc</a> /
<a href="https://files.gumx.cc">files</a> /
<a href="https://vpn.gumx.cc">vpn</a> /
<a href="https://pgp.gumx.cc">pgp</a> /
<a href="https://demo.gumx.cc">demo</a> /
<a href="https://wk.fo">wk.fo</a>
+<br>
+<a href="https://git.gumx.cc/ugi">source</a> /
+<a href="https://gumx.cc/license">license</a>
</footer>
</body>
</html>