Skip to content

docs: fix dead links, stale versioning, and API-reference extraction - #34

Merged
leonacostaok merged 1 commit into
mainfrom
docs/repo-polish
Jul 26, 2026
Merged

leonacostaok merged 1 commit into
mainfrom
docs/repo-polish

Conversation

@leonacostaok

Copy link
Copy Markdown
Member

Repo-polish pass from an audit for anything that reads as unfinished or broken to an outside reviewer. Docs and one generator fix only — no changes to package code or the public API surface.

Changes

  • SUPPLY-CHAIN.md — repair the broken COMPLIANCE.md §5 link (it contained a literal space) and finish a garbled sentence ("operationalises and the supply-chain section").
  • ADR 0003 / ADR 0005 — the OBJECTIVES.md links resolved to docs/adr/OBJECTIVES.md (nonexistent); point them at ../OBJECTIVES.md.
  • VERSIONING.md — drop the specific stale version numbers (0.5.0 tagged; 0.4.4 published) that no longer matched the packages; state the pre-1.0 0.x reality version-agnostically.
  • gen-api-reference.mjs — two real defects in the summary extraction:
    1. docFor matched a doc-comment … export NAME pair left-to-right, so a file's module header was mis-attributed as the summary of the first documented symbol. Now it anchors to the declaration and only uses a JSDoc block sitting directly above it.
    2. export { … } from re-exports were given an empty summary. Now their kind and summary are resolved from the source module, the same way export * from already did.

Verification

  • api:check passes; api-surface.json is byte-identical (the frozen contract is untouched — names/order unchanged).
  • Regenerated API.md: correct summaries went from mostly module-header-leakage to 276/331; the remaining 55 are honestly blank (genuinely undocumented symbols) rather than mis-labeled.
  • node --check and prettier --check clean on all touched files.

Follow-up (not in scope): the 55 blank summaries want real JSDoc on their source declarations.

…traction

- SUPPLY-CHAIN.md: repair the broken COMPLIANCE.md §5 link and an unfinished sentence
- ADRs 0003/0005: point OBJECTIVES.md links at ../OBJECTIVES.md so they resolve
- VERSIONING.md: drop the specific stale version numbers (pre-1.0, 0.x range)
- gen-api-reference.mjs: anchor doc summaries to each declaration so module headers
  are no longer mis-attributed, and resolve re-exported symbols' kind/summary from
  their source module. Regenerated API.md (276/331 summaries now correct; surface
  snapshot unchanged).
@leonacostaok
leonacostaok enabled auto-merge (squash) July 26, 2026 15:37
@leonacostaok
leonacostaok merged commit 27ad3e3 into main Jul 26, 2026
13 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.

1 participant