Repository navigation
docs(site): add @memhtml/eval to the API tier - #166
Merged
Merged
Conversation
Third slice of the generated reference, after contracts (#158) and traces (#164): one more starlightTypeDoc instance writing api/eval/ from the package's single import path, a package README that opens the generated page and maps each exported symbol to its module, a row in the tier index, and a sidebar group. Measured on the branch: typedoc CLI exit 0 with one warning (AccessSpec referenced by CorpusSpec.access but not exported from index.ts, recorded in the config comment and left to the source), brace probe 0 hits over api/, astro build exit 0, a11y 33/33 and Lighthouse 5 URLs x 3 runs green with /api/eval/ temporarily in the gate lists and then restored, mise run check 64/64.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The changes are limited to documentation generation config and authored docs content, and the new @memhtml/eval API tier addition is consistent with the existing contracts/traces setup.
Pull request overview
Adds @memhtml/eval as the next package in the generated API documentation tier, publishing its TypeDoc output under /api/eval/ alongside the existing /api/contracts/ and /api/traces/ pages.
Changes:
- Configure a new
starlightTypeDocrun for@memhtml/evalthat generates docs intoapi/eval. - Add a
packages/eval/README.mdused as the merged overview content for the generated API page. - Extend the API tier authored index to include
@memhtml/evalin the coverage table.
File summaries
| File | Description |
|---|---|
| packages/eval/README.md | Adds the merged README content that becomes the overview for the generated /api/eval/ page, including a module summary table. |
| apps/docs/src/content/docs/api/index.md | Adds @memhtml/eval to the API coverage table with a link to /api/eval/. |
| apps/docs/astro.config.ts | Adds a starlightTypeDoc instance outputting to api/eval and includes @memhtml/eval in the sidebar API group. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Third slice of the generated API tier, per the plan in #158:
@memhtml/evaljoins@memhtml/contractsand@memhtml/tracesat/api/eval/.What changes
apps/docs/astro.config.ts: one morestarlightTypeDocinstance,output: "api/eval", one entry point (packages/eval/src/index.ts, the package's single import path), the same options as the two instances above it so the three packages' pages read alike, and one more sidebar group under API.packages/eval/README.md: new. It opens the generated page (mergeReadme), so it starts without anh1(Starlight renders the frontmatter title) and closes with a module table that says which of the six modules each exported symbol comes from.apps/docs/src/content/docs/api/index.md: one row in the coverage table.No test, runtime, script, or workflow file changes.
api/eval/is a build output and already gitignored by theapi/*/rule.Measured
typedocCLI over the entry point: exit 0, one warning:AccessSpec(packages/eval/src/corpus.ts) is referenced byCorpusSpec.accessbut not exported fromindex.ts, so the page names it without a link. Exporting it is a source change and is left for the maintainer; the config comment records the warning.mdxExpressionsover every generated page underapi/): 0 hits.astro build: exit 0 in 20s;api/eval/index.mdis one page of 1970 lines, and the built HTML has oneh1.test:a11yandtest:budgetwith/api/eval/TEMPORARILY added toAUDITED_PAGESandlighthouserc.json, then restored (the PR does not touch either): a11y 33/33 across five audited pages; Lighthouse 5 URLs x 3 runs, every assertion passed.mise run checkon the branch: exit 0, 64/64 tasks, 2m58s.docs:prefix, so no release is cut.