Skip to content

Builds an API reference with typedoc - #207

Merged
johnnyt merged 2 commits into
mainfrom
pts-uhhm-typedoc-reference
Oct 5, 2026
Merged

johnnyt merged 2 commits into
mainfrom
pts-uhhm-typedoc-reference

Conversation

@johnnyt

@johnnyt johnnyt commented Oct 5, 2026

Copy link
Copy Markdown
Member

Summary

Builds an API reference for the package with typedoc, from the TSDoc comments the source already carries, with the README as its index page. The reference is built locally and checked by the gate; nothing is committed or published.

  • typedoc 0.28.20 is an exact-pinned dev dependency (the lockfile is updated).
  • typedoc.json names the two public entry points (src/index.ts and src/tagged.ts, the same entries tsup.config.ts builds and the exports map names), reads tsconfig.src.json, uses README.md as the index, writes to docs/api/ and treats warnings as errors.
  • docs/api/ is git-ignored.
  • package.json gains a docs script, and the gate script runs it as its last stage, a build check only. Every existing gate stage is unchanged and in its original order.
  • The README's Documentation section gains one line naming mise exec -- pnpm run docs.
  • .claude/diataxis.md is the docs manifest the documentation tools read, as generated for this repository; its two prose lines are kept as generated, and the example world is the library loan.
  • .claude/firewall-allow.txt allows one exact string: the lockfile integrity value of brace-expansion 5.0.12, a transitive dependency of typedoc. It is allowlisted by a ruling of the operator, 2026-10-05, because the planning-id scan reads base64 as prose (no planning id is involved).

No file under src/ changes, and there is no changelog fragment (changelog.d/README.md excludes documentation and tooling changes).

Provenance

  • HostContext is referenced by ExecuteResult but is not exported, which is the one warning typedoc raises at the base. The config lists it under intentionallyNotExported instead of changing the source: decided by the conductor under a standing consent, 2026-10-05.

Verification

  • Full gate (mise exec -- pnpm run gate) green on the branch, including the new docs stage.
  • Removing the intentionallyNotExported entry makes pnpm run docs fail on that warning (exit 4), so the warnings-as-errors setting is live; the file was restored byte-identical.
  • Planning-id and terminology scans clean over the diff and this body.

Adds typedoc as an exact-pinned dev dependency and a typedoc.json
naming the two public entry points (the main entry and ./tagged),
with the README as the index page and warnings treated as errors.
The output goes to docs/api/, which is git-ignored: the reference is
built locally by `pnpm run docs`, and the full gate runs that script
as its last stage, a build check only. The existing gate stages are
unchanged.

HostContext is referenced by ExecuteResult but not exported, so the
config lists it as intentionally not exported rather than changing
any source file.

Adds the docs manifest the documentation tools read, at
.claude/diataxis.md, and one README line naming the docs command.

Refs: pts-uhhm
The planning-reference scan reads the lockfile's base64 integrity
value for brace-expansion 5.0.12 as prose, and a run inside it takes
an id's shape. The allowlist covers that one exact string; no planning
reference is involved. Allowed by a ruling of the operator,
2026-10-05.

Refs: pts-uhhm
@johnnyt
johnnyt merged commit 6723a57 into main Oct 5, 2026
1 check passed
@johnnyt
johnnyt deleted the pts-uhhm-typedoc-reference branch October 5, 2026 10:48
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