Skip to content

docs(sdk): add spec format components and migrate check-ins#16461

Merged
stephanie-anderson merged 14 commits intomasterfrom
sanderson/sdk-spec-format
Feb 19, 2026
Merged

docs(sdk): add spec format components and migrate check-ins#16461
stephanie-anderson merged 14 commits intomasterfrom
sanderson/sdk-spec-format

Conversation

@stephanie-anderson
Copy link
Contributor

@stephanie-anderson stephanie-anderson commented Feb 19, 2026

Add reusable MDX components for SDK spec pages and migrate the check-ins spec as the first example.

New components:

  • SpecMeta — displays spec status and version with changelog link
  • SpecSection — wraps spec content with status badge, colored left border, and "since" version
  • SpecChangelog — renders version history table from frontmatter data
  • SpecRfcAlert — reusable RFC 2119 keyword notice

Check-ins migration:

  • Structured frontmatter with spec_id, spec_version, spec_status, spec_platforms, spec_depends_on, spec_changelog
  • RFC 2119 requirement keywords (MUST/SHOULD/MAY)
  • Organized into Overview → Concepts → Behavior → Wire Format → Public API → Examples → Changelog
  • Components read from frontmatter automatically — zero-prop usage in MDX (<SpecMeta />, <SpecChangelog />)

page.tsx changes:

  • MDXLayoutRenderer now creates frontmatter-bound component overrides for spec pages
  • Handles YAML Date→string normalization for changelog dates

Co-Authored-By: Claude noreply@anthropic.com

Introduce reusable MDX components for SDK spec pages:
- SpecMeta: displays spec status and version with changelog link
- SpecSection: wraps spec content with status badge and colored border
- SpecChangelog: renders version history table from frontmatter
- SpecRfcAlert: reusable RFC 2119 keyword notice

Migrate check-ins spec to the new format with structured frontmatter
(spec_id, spec_version, spec_status, spec_platforms, spec_depends_on,
spec_changelog), RFC 2119 requirement keywords, and organized sections
(Overview, Concepts, Behavior, Wire Format, Public API, Examples,
Changelog).

Update page.tsx to bind spec frontmatter data to components so MDX
files use zero-prop tags like <SpecMeta /> and <SpecChangelog />.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Feb 19, 2026 5:49pm
sentry-docs Ready Ready Preview, Comment Feb 19, 2026 5:49pm

Request Review

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

stephanie-anderson and others added 4 commits February 19, 2026 18:26
Deduplicate the SpecStatus type and badge color mapping that was
identical in specMeta.tsx and specSection.tsx into specConstants.ts.

Co-Authored-By: Claude <noreply@anthropic.com>
Use a type guard to validate spec_status from frontmatter before
passing it to SpecMeta. Invalid values now skip rendering the
component instead of passing undefined badge classes.

Co-Authored-By: Claude <noreply@anthropic.com>
Add dark: Tailwind variants to badge backgrounds/text and section
border colors so they render with proper contrast in dark mode.

Co-Authored-By: Claude <noreply@anthropic.com>
stephanie-anderson and others added 4 commits February 19, 2026 18:38
Skip entries missing version, date, or summary instead of rendering
literal 'undefined' strings. Also skip rendering an empty changelog.

Co-Authored-By: Claude <noreply@anthropic.com>
@stephanie-anderson stephanie-anderson merged commit 00ecd9a into master Feb 19, 2026
17 checks passed
@stephanie-anderson stephanie-anderson deleted the sanderson/sdk-spec-format branch February 19, 2026 18:38
codyde added a commit that referenced this pull request Feb 19, 2026
* origin/master:
  docs(sdk): coordination and maintenance standards (#16463)
  docs(sdk): add spec format components and migrate check-ins (#16461)
  docs(sdk): repository and documentation standards (#16462)
  docs(sdk): Add issue saved replies and simplify CopyableCard (#16459)
  docs(sdk): add review & ci standard (#16458)
  fix(unity): correct lifecycle breadcrumbs docs (#16456)
  docs(sdk): add code quality standard (#16455)
  docs(sdk): migrate releases process to playbook and standard (#16447)
  docs(sdk): merge basics.mdx into overview.mdx (#16446)
  docs(sdk): remove old triaging process page (#16448)
  docs(dart): Update stacktrace info for the logging integration (#16401)
  docs(dart): Fix user attributes gated behind `sendDefaultPii` (#16407)
  feat(playstation): Add symbols documentation for dumps (#16454)
  feat(develop-docs): Restore Sentry Voice guidelines page (#16453)

# Conflicts:
#	app/[[...path]]/page.tsx
stephanie-anderson added a commit that referenced this pull request Feb 20, 2026
Migrate `develop-docs/sdk/telemetry/logs.mdx` to the standardized spec
format established in #16461.

- Add spec frontmatter with `spec_version: 1.15.0`, `spec_status:
stable`, dependencies, and 16 changelog entries derived from git history
- Restructure content into Overview > Concepts > Behavior > Wire Format
> Public API > Examples > Changelog
- Wrap features in 20 SpecSections with precise `since` values (e.g.,
`replay-association` since 1.8.0, `client-reports` since 1.13.0)
- Add `Since` columns to wire format tables and inline `(since X.Y.Z)`
annotations for mid-section additions
- Move language-specific code examples to Examples section as "SDK API
Usage"
- Upgrade requirements language to RFC 2119 uppercase bold keywords

Co-Authored-By: Claude <noreply@anthropic.com>
stephanie-anderson added a commit that referenced this pull request Feb 20, 2026
)

Backfill 4 patch versions in the check-ins spec changelog derived from
git history, and swap sidebar ordering so Telemetry appears before
Features.

- **check-ins.mdx**: Added patch versions 1.0.1, 1.2.1, 1.3.1, 1.4.1 for
typo fixes, example updates, and wording clarifications
- **telemetry/index.mdx**: sidebar_order 5 → 4
- **expected-features/index.mdx**: sidebar_order 4 → 5

Part of the ongoing SDK spec format migration ([design
plan](https://github.com/getsentry/sentry-docs/blob/master/docs/plans/2026-02-19-sdk-spec-format-design.md),
initial PR #16461).

Co-Authored-By: Claude <noreply@anthropic.com>
stephanie-anderson added a commit that referenced this pull request Feb 20, 2026
Migrate `develop-docs/sdk/telemetry/metrics.mdx` to the standardized
spec format established in #16461.

- Add spec frontmatter with `spec_version: 2.5.0`, `spec_status:
stable`, dependencies, and 9 changelog entries derived from git history
- Restructure content into Overview > Concepts > Behavior > Wire Format
> Public API > Examples > Changelog
- Wrap features in SpecSections with precise `since` values (e.g.,
`replay-association` since 2.3.0, `buffering` since 2.0.0)
- Add `Since` columns to wire format tables and inline `(since X.Y.Z)`
annotations for mid-section additions
- Move language-specific code examples to Examples section as "SDK API
Usage"
- Upgrade requirements language to RFC 2119 uppercase bold keywords

Co-Authored-By: Claude <noreply@anthropic.com>
stephanie-anderson added a commit that referenced this pull request Feb 23, 2026
Migrate `sdk/telemetry/client-reports.mdx` to the new spec format
established in #16461.

- Add versioned frontmatter with 22-entry changelog derived from full
git history
- Restructure into standard spec sections with `SpecRfcAlert`,
`SpecMeta`, `SpecSection`, `SpecChangelog` components
- Consolidate network failure recording rules from
`expected-features/index.mdx` into the client-reports spec as the single
source of truth
- Remove client report section from `envelope-items.mdx` (content now
lives in client-reports wire format section)
- Split network failure recording into per-status-code SpecSections with
precise `since` versions
- Add wire format section with payload tables including `Since` columns
- Replace inline rules in expected-features with references to the
client-reports spec

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

sdk-develop-docs PRs touching develop-docs/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants