Repository navigation
docs(site): add @memhtml/head to the API tier - #298
Conversation
One starlightTypeDoc instance for packages/head with the settled options, its sidebar group, a row in the API index, and a README that serves as the page's overview. No source change: the package renders with no MDX brace outside code, and TypeDoc's five warnings (two unexported types in exported signatures, three links to module-private helpers) render as plain text, which the README's module section explains.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Copilot's review is the quota message, so it reviewed nothing. Merging under the maintainer's standing ruling for documentation-only PRs on green while Copilot is out of quota. In its place: a source-backed review of the new README found 4 wrong statements and proposed 10 simplifications, all applied, and a follow-up over the whole edited file fixed 3 ambiguous references. The change is docs-site configuration and prose with no source change. |
Adds
@memhtml/headto the generated API reference (https://memhtml.github.io/api/) as one page at/api/head/, with no source change. Documentation and docs-site configuration only.What changes:
apps/docs/astro.config.ts: one morestarlightTypeDocinstance (output: "api/head", the settled options every other instance uses) and its sidebar group.apps/docs/src/content/docs/api/index.md: one row in the coverage table.packages/head/README.md(new): the page's overview, merged above the generated reference. It describes each module's exports in the order a reader meets them (versions, records, indexes, the lexical index, overlays, search, vectors, the head gate) and ends with a module table.Why head next: it is the smallest package whose generated page passes the docs gates with no source change. A TypeDoc probe over each 0.16 package counted MDX brace hits outside code (the docs build reads generated pages as MDX): head 0,
@memhtml/snapshot4,@memhtml/session1,@memhtml/store1,@memhtml/curator25. The others need a source change to render, which is outside a docs PR.TypeDoc warns five times and the build carries on:
ScoredandIndexedViewappear in exported signatures without being exported, and three doc comments link to module-private helpers (addToLexical,removeFromLexical,armRanks). Each renders as plain text; the README's module section says so, and the config comment records it.Review: a reviewer checked every sentence of the README against
packages/head/srcand ran the claims a run settles on synthetic data (stop-word count, tokenizer splits, shared ranks 1, 1, 3, the gate floor, the fill's single embed call, a TypeDoc render). It found four wrong statements, all fixed here: howbyContentHashhands a shared hash between records, thatlinkandlabelof a value the file already carries succeed without changing it, thatskippedis a count, and that a record's blob sha is computed from the decoded text. It also split the longest sentences and cut details the generated reference already shows. A follow-up read the whole edited file and fixed three references the splits had left ambiguous.Verified:
mise run checkpassed 75/75 on this branch after the review (186 s) and again after the follow-up (179 s), including the docs build that generates/api/head/.