Skip to content

docgen: compact field metadata line and deprecation callout#923

Merged
zeevdr merged 1 commit into
mainfrom
fix-docgen-compact-output
Jun 11, 2026
Merged

docgen: compact field metadata line and deprecation callout#923
zeevdr merged 1 commit into
mainfrom
fix-docgen-compact-output

Conversation

@zeevdr

@zeevdr zeevdr commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

  • The generated field docs rendered a heavy per-field | Property | Value | table, which made schema pages hard to scan; this replaces it with a one-line italic metadata summary (type, format, nullable, default, read-only, write-once, sensitive, tags).
  • Deprecation moves from a table row to a blockquote callout naming the redirect target, so it stands out instead of blending in.
  • Constraints, examples, and external-docs sections keep their detailed multi-line form.

Test plan

  • make test — all modules pass
  • ./scripts/check-coverage.sh — sdk/tools 96.4% against a 96.0% ratchet
  • gofumpt -l, go build ./..., go vet ./... clean on sdk/tools
  • Tests updated to assert the new metadata line for every flag and the deprecation callout with and without a redirect target
  • Regenerated the full-coverage example schema doc and reviewed the output

Closes #922

Replace the per-field property table with a single italic metadata
line (type, format, nullable, default, read-only, write-once,
sensitive, tags) and render deprecation as a blockquote callout
naming the redirect target. Constraints and examples sections are
unchanged. Shrinks generated docs and makes field headers scannable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@zeevdr zeevdr added this to the Docs Toolkit milestone Jun 11, 2026
@zeevdr zeevdr added enhancement New feature or request sdk SDK changes cli CLI changes size: S Quick win — a few hours or less priority: P2 Nice-to-have labels Jun 11, 2026
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zeevdr zeevdr merged commit 138c092 into main Jun 11, 2026
21 checks passed
@zeevdr zeevdr deleted the fix-docgen-compact-output branch June 11, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI changes enhancement New feature or request priority: P2 Nice-to-have sdk SDK changes size: S Quick win — a few hours or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docgen: compact, more informative markdown field rendering

1 participant