Commit 096ab1d

Eric Bower  ·  2026-04-14 09:23:17 -0400 EDT
parent 911f789
refactor: doc site
5 files changed,  +37, -80
+1, -1
......@@ -1,6 +1,6 @@
11 <h1>
22 <p align="center">
3- <img src="./docs/logo.png" alt="Logo" width="128">
3+ <img src="./logo.png" alt="Logo" width="128">
44 <br>zmx
55 </h1>
66 <p align="center">
+6, -1
......@@ -159,9 +159,14 @@ pub fn build(b: *std.Build) void {
159159 // Upload artifacts to pgs
160160 {
161161 const upload_step = b.step("upload", "Upload docs and dist to pgs.sh:/zmx");
162- const rsync_docs = b.addSystemCommand(&.{ "rsync", "-rv", "docs/", "pgs.sh:/zmx" });
162+ const gen_doc = b.addSystemCommand(&.{
163+ "sh", "-c",
164+ "cat README.md | pdocs -tmpl index.tmpl -toc | ssh pgs.sh /zmx/index.html"
165+ });
166+ const rsync_docs = b.addSystemCommand(&.{ "rsync", "-v", "logo.png", "pgs.sh:/zmx/logo.png" });
163167 const rsync_dist = b.addSystemCommand(&.{ "rsync", "-rv", "zig-out/dist/", "pgs.sh:/zmx/a" });
164168
169+ upload_step.dependOn(&gen_doc.step);
165170 upload_step.dependOn(&rsync_docs.step);
166171 upload_step.dependOn(&rsync_dist.step);
167172 }
+0, -78
......@@ -1,78 +0,0 @@
1-<!DOCTYPE html>
2-<html>
3- <head>
4- <title>zmx - session persistence for terminal processes</title>
5- <meta charset="utf-8">
6- <meta name="viewport" content="width=device-width, initial-scale=1">
7- <meta name="keywords" content="pico, pico.sh, hacker, labs, services">
8- <meta name="description" content="session persistence for terminal processes">
9- <link rel="stylesheet" href="https://pico.sh/smol.css">
10- </head>
11- <body class="container" style="max-width: 35rem;">
12- <nav style="padding: 1.3rem;">
13- <div class="flex flex-wrap items-center justify-center gap-2" style="margin-right: 20px;">
14- <a href="/" class="link-alt">
15- zmx
16- </a>
17- <a href="https://github.com/neurosnap/zmx" class="link-alt">
18- src
19- </a>
20- <a href="https://bower.sh/?tag=zmx" class="link-alt">
21- blog
22- </a>
23- <a href="https://web.libera.chat/gamja?autojoin=#pico.sh" class="link-alt">
24- irc
25- </a>
26- </div>
27- </nav>
28-
29- <div class="text-center my-4">
30- <img src="/logo.png" alt="zmx logo" style="height: 100px" class="mb-2" />
31- <h1 class="text-2xl">zmx</h1>
32- <div>session persistence for terminal processes</div>
33- </div>
34-
35- <h2 class="text-lg">features</h2>
36- <ul>
37- <li>Persist terminal shell sessions</li>
38- <li>Ability to attach and detach from a shell session without killing it</li>
39- <li>Native terminal scrollback</li>
40- <li>Multiple clients can connect to the same session</li>
41- <li>Re-attaching to a session restores previous terminal state and output</li>
42- <li>Send commands to a session without attaching to it</li>
43- <li>Print scrollback history of a terminal session in plain text</li>
44- <li>Works on mac and linux</li>
45- <li>This project does <strong>NOT</strong> provide windows, tabs, or splits</li>
46- </ul>
47-
48- <h2 class="text-lg">install</h2>
49-
50- <h3 class="text-md">binaries</h3>
51- <ul>
52- <li><a href="/a/zmx-0.4.2-linux-aarch64.tar.gz" download>zmx-0.4.2-linux-aarch64.tar.gz</a></li>
53- <li><a href="/a/zmx-0.4.2-linux-x86_64.tar.gz" download>zmx-0.4.2-linux-x86_64.tar.gz</a></li>
54- <li><a href="/a/zmx-0.4.2-macos-aarch64.tar.gz" download>zmx-0.4.2-macos-aarch64.tar.gz</a></li>
55- <li><a href="/a/zmx-0.4.2-macos-x86_64.tar.gz" download>zmx-0.4.2-macos-x86_64.tar.gz</a></li>
56- </ul>
57-
58- <h3 class="text-md">homebrew</h3>
59- <pre>brew tap neurosnap/tap
60-brew install zmx</pre>
61-
62- <h3 class="text-md">packages (unofficial)</h3>
63- <ul>
64- <li><a href="https://pkgs.alpinelinux.org/package/edge/testing/x86_64/zmx">Alpine Linux</a></li>
65- <li><a href="https://aur.archlinux.org/packages/zmx">Arch AUR tracking releases</a></li>
66- <li><a href="https://aur.archlinux.org/packages/zmx-git">Arch AUR tracking git</a></li>
67- <li><a href="https://software.opensuse.org/package/zmx">openSUSE Tumbleweed</a></li>
68- <li><a href="https://codeberg.org/samuelhautamaki/samuelhautamaki-gentoo">Gentoo (overlay)</a></li>
69- <li><a href="https://github.com/engie/zmx-rpm/">zmx-rpm packaging</a></li>
70- </ul>
71-
72- <h2 class="text-lg">posts</h2>
73- <ul>
74- <li><a href="https://bower.sh/zmx-session-persistence">zmx - session persistence for terminal processes</a></li>
75- <li><a href="https://bower.sh/you-might-not-need-tmux">You might not need tmux</a></li>
76- </ul>
77- </body>
78-</html>
+0, -0
Binaries are not rendered as diffs.
+30, -0
......@@ -0,0 +1,30 @@
1+{{define "base"}}
2+<!doctype html>
3+<html lang="en">
4+ <head>
5+ <title>zmx - session persistence for terminal sessions</title>
6+ <meta charset='utf-8'>
7+ <meta name="viewport" content="width=device-width, initial-scale=1">
8+ <meta name="keywords" content="zmx, session persistence, terminal, tool, linux">
9+
10+ <link rel="stylesheet" href="https://pico.sh/syntax.css">
11+ <link rel="stylesheet" href="https://pico.sh/smol.css">
12+ <link rel="stylesheet" href="https://pico.sh/main.css">
13+ </head>
14+
15+ <body>
16+ <div class="debug-grid"></div>
17+ <div class="post-group" style="flex-direction: row;">
18+ <article class="md toc" style="height: 98vh; padding-top: 40px;">
19+ {{.Data.TocHtml}}
20+ </article>
21+
22+ <main class="post" style="height: 98vh;">
23+ <article class="md">
24+ {{.Data.Html}}
25+ </article>
26+ </main>
27+ </div>
28+ </body>
29+</html>
30+{{end}}