Skip to content

Commit fa3cdca

Browse files
committed
versioning, card view, alt html site
1 parent 00c3d89 commit fa3cdca

27 files changed

Lines changed: 1307 additions & 456 deletions

.github/workflows/mirror.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build mirror
2+
3+
# Regenerate the no-JS plain mirror (html/index.html) from index.html's MITH object
4+
# on every push that changes the source. The bot commit only touches html/, which is
5+
# excluded from the trigger paths below — so it never retriggers itself.
6+
7+
on:
8+
push:
9+
branches: [main]
10+
paths:
11+
- index.html
12+
- tools/build-mirror.mjs
13+
- .github/workflows/mirror.yml
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: write
18+
19+
concurrency:
20+
group: build-mirror
21+
cancel-in-progress: true
22+
23+
jobs:
24+
mirror:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
- name: Generate mirror
32+
run: node tools/build-mirror.mjs
33+
- name: Commit if changed
34+
run: |
35+
git config user.name "mithraeum-bot"
36+
git config user.email "github-actions[bot]@users.noreply.github.com"
37+
git add html/index.html
38+
if git diff --cached --quiet; then
39+
echo "mirror already up to date"
40+
else
41+
git commit -m "chore: regenerate /html mirror [skip ci]"
42+
git push
43+
fi

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
<td width="40" align="center"><sub><b>I</b></sub></td>
2727
<td width="200"><b><a href="https://github.com/mithraeums/hako-edit">hako-edit</a></b><br/><sub>箱 · the box · <code>hake</code></sub></td>
2828
<td>Modal text editor in a single C file. Vim-bound, language-aware, 17 themes. <code>:rei</code> answers from inside.</td>
29-
<td align="right"><sub>v0.1.4</sub></td>
29+
<td align="right"><sub>v0.1.5</sub></td>
3030
</tr>
3131
<tr>
3232
<td align="center"><sub><b>II</b></sub></td>
33-
<td><b><a href="https://github.com/mithraeums/hako-code">hako-code</a></b><br/><sub> · the agent · <code>hako</code></sub></td>
33+
<td><b><a href="https://github.com/mithraeums/hako-code">hako-code</a></b><br/><sub> · the agent · <code>hako</code></sub></td>
3434
<td>Standalone terminal AI agent. Same C99 stack. 13+ providers, persistent sessions, sha-verified self-update.</td>
35-
<td align="right"><sub>v0.1.8</sub></td>
35+
<td align="right"><sub>v0.2.0</sub></td>
3636
</tr>
3737
<tr>
3838
<td align="center"><sub><b>III</b></sub></td>
@@ -42,7 +42,7 @@
4242
</tr>
4343
<tr>
4444
<td align="center"><sub><b>·</b></sub></td>
45-
<td><b><a href="https://github.com/mithraeums/skills">skills</a></b><br/><sub> · behaviors</sub></td>
45+
<td><b><a href="https://github.com/mithraeums/skills">skills</a></b><br/><sub> · behaviors</sub></td>
4646
<td>Markdown skills for hako-code and hako-edit. PR-driven catalog. corp is the inaugural entry.</td>
4747
<td align="right"><sub>pre-1.0</sub></td>
4848
</tr>
@@ -82,15 +82,27 @@ git clone https://github.com/mithraeums/hako && cd hako && make
8282
<tr>
8383
<td width="33%" valign="top"><b>I · Local first.</b><br/><sub>Your text, your keys, your weights. No telemetry. No silent network. The cursor is a private place.</sub></td>
8484
<td width="33%" valign="top"><b>II · Single binary.</b><br/><sub>One file. One C source. No JavaScript runtime to swallow your editor. The tool fits in a head.</sub></td>
85-
<td width="33%" valign="top"><b>III · Bring your own deity.</b><br/><sub>Any model. Any provider. Any prompt. The agent is a peer at your terminal, not a stranger in the cloud.</sub></td>
85+
<td width="33%" valign="top"><b>III · Bring your own model.</b><br/><sub>Any model. Any provider. Any prompt. The agent is a peer at your terminal, not a stranger in the cloud.</sub></td>
8686
</tr>
8787
</table>
8888

8989
<p align="center"><sub><b>—— IV ——</b></sub></p>
9090

9191
## Site
9292

93-
`index.html` is the source for [mithraeums.github.io](https://mithraeums.github.io). `install.sh` is a thin proxy to the canonical hako-code installer in [`mithraeums/hako-code`](https://github.com/mithraeums/hako-code). `hake.sh` / `hako.sh` / `hakm.sh` are per-product proxies. Banner SVGs in `assets/` are referenced by every project README.
93+
`index.html` is the whole interactive site — one hand-written static file: inline CSS, inline vanilla JS, **no build step, no framework, no third-party script, no web font, no tracker**. It's a pane-switcher (terminal home view; nav tabs slide between Suite / Install / Skills / Releases).
94+
95+
**One source of truth.** A single `MITH` object at the top of `index.html` holds every version, repo URL, the product copy, releases, and skills. Everything dynamic renders from it — bump a version *there*, once. No version string is hardcoded anywhere else.
96+
97+
**Plain mirror.** `html/index.html` is a **generated**, JavaScript-free mirror for emacs `eww`, lynx/w3m, screen readers, and offline reading — live at [`/html`](https://mithraeums.github.io/html). Do **not** hand-edit it:
98+
99+
```sh
100+
node tools/build-mirror.mjs # reads MITH out of index.html, rewrites html/index.html
101+
```
102+
103+
`.github/workflows/mirror.yml` runs this on every push that touches `index.html`, so the mirror can't go stale. Custom domain `mithraeum.studio` points at this same Pages site, so `/html` is served on both.
104+
105+
`install.sh` is a thin proxy to the canonical hako-code installer in [`mithraeums/hako-code`](https://github.com/mithraeums/hako-code). `hake.sh` / `hako.sh` / `hakm.sh` are per-product proxies. Banner SVGs in `assets/` are referenced by every project README.
94106

95107
<p align="center"><sub><a href="LICENSE">— SEE LICENSE —</a> &nbsp;·&nbsp; GPL-3.0 &nbsp;·&nbsp; copyleft</sub></p>
96108

assets/banner-hako-code-dark.svg

Lines changed: 1 addition & 1 deletion
Loading

assets/banner-hako-dark.svg

Lines changed: 1 addition & 1 deletion
Loading

assets/banner-skills-dark.svg

Lines changed: 1 addition & 1 deletion
Loading
-1.1 MB
Loading
-11.2 MB
Binary file not shown.
-652 KB
Loading
-164 KB
Loading
214 KB
Loading

0 commit comments

Comments
 (0)