Skip to content

docs(site): add @memhtml/head to the API tier - #298

Merged
laithalsaadoon merged 1 commit into
mainfrom
docs/api-head
Oct 19, 2026
Merged

laithalsaadoon merged 1 commit into
mainfrom
docs/api-head

Conversation

@laithalsaadoon

Copy link
Copy Markdown
Contributor

Adds @memhtml/head to 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 more starlightTypeDoc instance (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/snapshot 4, @memhtml/session 1, @memhtml/store 1, @memhtml/curator 25. The others need a source change to render, which is outside a docs PR.

TypeDoc warns five times and the build carries on: Scored and IndexedView appear 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/src and 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: how byContentHash hands a shared hash between records, that link and label of a value the file already carries succeed without changing it, that skipped is 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 check passed 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/.

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.
Copilot AI balanced review requested due to automatic review settings October 19, 2026 08:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@laithalsaadoon

Copy link
Copy Markdown
Contributor Author

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. mise run check passed 75/75 after each round, and all 11 checks are green on 8ffbb48.

@laithalsaadoon
laithalsaadoon merged commit 6708d25 into main Oct 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants