- drop raw <div align=center> and <details> blocks that args.io renders as literal text; convert to plain markdown headings - add args.io/cat/nzip link to the README and the landing page - replace the em-dash in the JSR description with a period
- commit
- 6824b66e55fffb4351ffd128309f67a0e33b59e8
- parent
- bb395f860b32fc4beaec085a9d933926ea9946e2
- author
- Dami <dami.etoile@gmail.com>
| M | README.md | 16 | +++------------- |
| M | cli/ | 2 | +- |
| M | worker/ | 4 | ++-- |
@@ -1,5 +1,3 @@
1-<div align="center">2-31 # `nzip`42 53 **Push a directory of HTML from the terminal. Get a four-character URL back.**@@ -7,9 +5,7 @@
75 _A personal share tool. Deno CLI → Cloudflare Worker → R2 + D1. No daemon, no build step, no86 redeploys._97 10-[](https://jsr.io/@nzip/cli)11-12-</div>8+[](https://jsr.io/@nzip/cli) · [args.io/cat/nzip](https://args.io/cat/nzip)139 1410 ```console1511 $ nzip push ./demo work:demo --ttl 30d@@ -153,8 +149,7 @@ sites pushed from this machine.)
153149 service. Use the same URL you set as `vars.PUBLIC_BASE` in your Wrangler config. Standing up that154150 server is the one-time setup below.155151 156-<details>157-<summary><b>Self-hosting: one-time Cloudflare setup</b></summary>152+## Self-hosting: one-time Cloudflare setup158153 159154 See [`worker/setup.md`](worker/setup.md) for the full checklist. In short:160155 @@ -187,10 +182,7 @@ Two gotchas learned the hard way:
187182 "custom_domain": true }]`) needs the zone on your188183 account; it provisions DNS and the cert automatically on deploy.189184 190-</details>191-192-<details>193-<summary><b>Development</b></summary>185+## Development194186 195187 ```sh196188 deno task check # typecheck CLI + shared@@ -203,5 +195,3 @@ nzip auth --server http://localhost:8787 --token dev-token-local-only
203195 204196 Test the GC cron: `npx wrangler dev --test-scheduled`, then205197 `curl "http://localhost:8787/__scheduled?cron=0+4+*+*+*"`.206-207-</details>@@ -2,7 +2,7 @@
22 "name": "@nzip/cli",33 "version": "0.1.1",44 "license": "MIT",5- "description": "Push a directory of HTML from the terminal and get a four-character URL back — the Deno CLI for nzip, a self-hosted Cloudflare-backed share tool.",5+ "description": "Push a directory of HTML from the terminal and get a four-character URL back. The Deno CLI for nzip, a self-hosted Cloudflare-backed share tool.",66 "exports": "./main.ts",77 "imports": {88 "@std/cli": "jsr:@std/cli@^1.0.0",@@ -23,8 +23,8 @@ function landingPage(env: Env): string {
2323 const head = escapeHtml(dot === -1 ? host : host.slice(0, dot));2424 const tail = dot === -1 ? "" : escapeHtml(host.slice(dot));2525 return `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${escapeHtml(host)}</title>26-<style>body{background:#1e1810;color:#e7dbc5;font-family:ui-monospace,monospace;display:grid;place-items:center;min-height:100dvh;margin:0}b{color:#d99a5b}</style>27-<div>${head}${tail ? `<b>${tail}</b>` : ""}</div>`;26+<style>body{background:#1e1810;color:#e7dbc5;font-family:ui-monospace,monospace;display:grid;place-items:center;min-height:100dvh;margin:0}main{text-align:center;display:grid;gap:18px}b{color:#d99a5b}a{color:#8a8172;text-decoration:none;font-size:13px}a:hover{color:#d99a5b}</style>27+<main><div>${head}${tail ? `<b>${tail}</b>` : ""}</div><a href="https://args.io/cat/nzip">args ↗</a></main>`;2828 }2929 3030 function htmlResponse(body: string, status: number, headers: HeadersInit = {}): Response {