Publishing on the open web should feel effortless at the desk and predictable in production. This site runs as a static Astro pipeline backed by Markdown collections in Git, deployed via Docker and Caddy on an ARM64 cloud instance.
Architecture Notes
- Typed Content Contracts: Every Letter, Note, and Lab entry is validated at build time with Zod schemas (
lang,kicker,pubDate,draft, optionaltldrandkeyTakeaways). - Deterministic Helpers: Reading-time estimation (supporting both English wpm and Chinese cpm), UTC-safe date formatting, TOC filtering, and Schema.org JSON-LD builders are covered by Vitest unit tests.
- Zero-Backend Search & GEO: Post-build indexing generates a static Pagefind bundle alongside
/llms.txt,/llms-full.txt,/feed.xml, and/sitemap-index.xml.
By keeping the runtime purely static, maintenance overhead stays near zero while page loads remain fast on any connection.