Skip to content

docs(CLAUDE.md): typedoc is regenerated by CI, don't commit it#129

Merged
WiktorStarczewski merged 1 commit into
mainfrom
wiktor/doc-process-typedoc-policy-main
May 5, 2026
Merged

docs(CLAUDE.md): typedoc is regenerated by CI, don't commit it#129
WiktorStarczewski merged 1 commit into
mainfrom
wiktor/doc-process-typedoc-policy-main

Conversation

@WiktorStarczewski
Copy link
Copy Markdown
Collaborator

Summary

Reverses a wrong prescription introduced in #126/#127. That earlier doc-process section told contributors to "regenerate typedoc and commit the diff" for any change reaching the curated public surface — but the in-repo verification step (Check that web client documentation is up-to-date in test.yml) has been a no-op since the web/WASM split: it runs git diff --exit-code over docs/typedoc/web-client/, which is untracked, so the diff is empty and the step is warning-only.

typedoc output is build artifact, not source. The companion fix on web-sdk#31 (commit c743d0f) gitignores the directory; this PR aligns the doc-process rule with that reality.

Changes

  • "Typedoc — keep in sync with the public API surface" → "Typedoc — regenerated by CI, don't commit"
  • MidenClient surface table row for docs/typedoc/web-client/ now says don't commit
  • Conventions bullet "Regenerate typedoc" → "Don't commit typedoc"
  • Contributing checklist item 3 mirrors

Companion PR

Same change against the other long-lived branch.

Test plan

  • No code changes — pure docs
  • Pre-commit hook (lefthook + lint-staged + prettier) clean

The first pass of the doc-process section (#126/#127) prescribed
'regenerate typedoc and commit the diff' for any change to the curated
public surface. That guidance was wrong: the in-repo
'Check that web client documentation is up-to-date' CI step runs
typedoc and then a git diff --exit-code over the regenerated tree, but
the directory hasn't been tracked since the web/WASM split — so the
diff is empty and the step is a warning-only smoke test, not a gate.
typedoc output is build artifact, not source.

Updates four spots in the doc-process section:
- 'Typedoc — keep in sync with the public API surface' →
  'Typedoc — regenerated by CI, don't commit'
- The MidenClient surface table row for docs/typedoc/web-client/ now
  reads 'Don't commit. Regenerated by CI...'
- The Conventions bullet 'Regenerate typedoc' became 'Don't commit
  typedoc'
- Contributing checklist item 3 mirrors that

Triggered by web-sdk#31 audit feedback: noticed the autogen tree
shouldn't have been committed there either. Companion .gitignore
addition lands separately on web-sdk#31.
@WiktorStarczewski WiktorStarczewski added the no changelog PR doesn't need a CHANGELOG entry (trivial / non-user-visible) label May 4, 2026
@WiktorStarczewski WiktorStarczewski merged commit 065fcee into main May 5, 2026
34 of 35 checks passed
@WiktorStarczewski WiktorStarczewski deleted the wiktor/doc-process-typedoc-policy-main branch May 5, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR doesn't need a CHANGELOG entry (trivial / non-user-visible)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant