~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Split the README into docs/ pages, in marco's docs voice

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:docs/split

Brings in marco's docs style guide (https://github.com/jazware/marco/blob/main/docs/_style.md) and runs it over HUD's docs: the 898-line README becomes eleven pages under docs/, each given the guide's voice pass, and a short README that points at them.

  • docs/_style.md: marco's guide, cut to plain Markdown pages (no renderer): voice, banned patterns, the 12-step mechanical pass, HUD before/after examples, and which page owns which topic.
  • docs/*.md: overview, tools, views, app-pages, knotless, sign-in, workspace (HUD); running, memory (Operations); workspace-api, internals (Reference). Facts unchanged; "(above)"/"(below)" are links between pages.
  • README.md: what HUD is, how to run it, a table of the pages.
  • harness/docs.mjs, in just lint: front matter, unique orders, no # heading on a page, every relative link and anchor, no semicolon or em dash in prose outside code.
  • AGENTS.md: points at docs/ and docs/memory.md, lists docs.mjs.

Not from the README: the procedures table in workspace-api.md and the plyr.fm/standard.site rows in views.md are filled from schemas/place.hud.*.json and views/*.json descriptions.

Checked: node harness/docs.mjs passes (and fails on a deliberately broken page: all six problems caught). A separate review compared the old README with the pages: nothing dropped; the five meaning shifts and one added claim it found are fixed.

Brought up to date with main

Main merged in (8752ae7): the themes, the local stack and CI landed after this pull was written, and their README changes are moved to the pages that own them. running.md: just local, HUD_DATA_DIR's theme/ and HUD_RELAY. workspace.md: Themes. workspace-api.md: the theme methods. internals.md: where chosen themes are kept, and what the runner checks. .knotless/workflows/docs.yml runs harness/docs.mjs on pulls that change the docs, as just lint does locally.

Approved

This pull splits the 898-line README into eleven pages under docs/, each with front matter. It adds marco's style guide as docs/_style.md and a short README that links to the pages. It also adds harness/docs.mjs to just lint, which checks front matter, unique orders, that pages have no # heading, relative links and anchors, and that prose outside code has no semicolons or em dashes. AGENTS.md, the Justfile and the Checks section of internals.md all now mention the new check.

I read every changed file. For the README itself, I read the old version on main in full and the new one at the head, because its diff was too long to load. Then I checked each page against the old README section it came from. The facts carried over as far as I can see. Every default, limit, path, method and error name I checked is unchanged: the env table, cache shares, the OAuth flow, tile placement, canonical calls, the space and storage rules, the /icon answers, the blob limits and the identity/lexicon TTLs. The cross-page anchors resolve: workspace.md#placing-tiles, tools.md#describe_app, views.md#records and views.md#layouts-and-components. docs.mjs turns headings into anchors the way GitHub does (it keeps _ and drops backticks). It skips the README's # heading, and fenced code, inline code and table separator rows don't trigger the punctuation checks. Nothing else in the repo pointed at the README's old sections. The only README's reference left is in catalog.rs, and it means a knotless repository's README.

No checks have reported for this pull, so I couldn't confirm that just lint passes. The pull description says node harness/docs.mjs was run.

Two small things, neither blocking:

  • In docs/views.md, the Records table row for Grain's galleries gives only the activity ("Posted") in its "Drawn as" column. It leaves out that they're drawn as getGallery, which the Bundled views section above does say.
  • docs/tools.md says "The first seven read and need no sign-in" twice, once in the opening paragraph and again right after the table.
Approved

This round adds one commit, 8752ae7, which merges main into the branch. On main, the only commit that changed the README since this branch forked is 93876cc (themes), so I compared its additions with the pages. Each one is now in the page that owns it:

  • running.md has HUD_DATA_DIR's theme/ and the HUD_RELAY row, with the same defaults and wording.
  • workspace.md has a new Themes section.
  • workspace-api.md has getWorkspace's theme fields, listThemes, and setTheme/createTheme/deleteTheme/checkTheme.
  • internals.md says where chosen themes are kept.

running.md also gains just local / just local-setup, and that matches what the Justfile says they do. The new .knotless/workflows/docs.yml runs node harness/docs.mjs on pulls that touch the docs, and it passes at this head. check and test pass too, and the other workflows skipped because this pull doesn't touch their paths. AGENTS.md and the Checks section of internals.md now list docs among the runner's checks.

On my earlier notes: the repeated "The first seven read" line in docs/tools.md is now there only once. The Grain galleries row in docs/views.md still says only "Activity "Posted"" and doesn't mention getGallery. That's a small point and doesn't block merging.

One more small point, also not blocking: the README's Docs table and workspace.md's front-matter summary still describe the Workspace page as covering "canvases, tiles, agents, music and where canvases live". They don't mention its new Themes section.

Merged as 4d098f9