From 04d4f32ece5a7e6c58b8884c567bec3d30bd8546 Mon Sep 17 00:00:00 2001 From: koH Date: Thu, 13 Aug 2026 12:10:44 -0500 Subject: [PATCH] docs(clients): record the two Cafe Nena'i build targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documents the subpath preview build alongside the root build, where it's live, and why the preview is noindex'd — a robots.txt inside the subdirectory does nothing, only the root one is honoured. Also notes the trap: the preview must be rebuilt after content changes or handprotocol.org/cafenenai drifts from clients/cafe-nenai. Co-Authored-By: Claude Opus 5 (1M context) --- clients/cafe-nenai/README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/clients/cafe-nenai/README.md b/clients/cafe-nenai/README.md index 475f420..4d6204e 100644 --- a/clients/cafe-nenai/README.md +++ b/clients/cafe-nenai/README.md @@ -67,10 +67,34 @@ build.mjs generator — writes all 56 pages ## Build +Two targets from one source. + +**The real site** — root-relative, for cafenenai.com when the domain moves: + ```bash -node build.mjs # regenerates every page + sitemap.xml + robots.txt +node build.mjs # regenerates every page + sitemap.xml + robots.txt, in place ``` +**The preview** — same site rooted at a subpath of handprotocol.org, so the +owner can review it before any DNS changes: + +```bash +BASE=/cafenenai OUT=../../web/cafenenai \ +SITE_URL=https://handprotocol.org/cafenenai NOINDEX=1 node build.mjs +``` + +Live at . Every internal URL is absolute, +so the subpath build just rewrites the leading slash at write time — no prefix +threading through the templates. + +The preview is `noindex, nofollow` and `/cafenenai/` is disallowed in +`web/robots.txt` (a robots.txt *inside* the subdirectory would do nothing — +only the root one is honoured). That matters because the same content will +later live on cafenenai.com and must not compete with itself in search. + +Rerun the preview build after any content change, or handprotocol.org will +drift from `clients/cafe-nenai/`. + 56 pages: home, full menu, 4 category pages, **41 individual item pages**, about, contact, news index, 5 press pages, 404.