Skip to content

docs(api): TRA-809 — BB1 hygiene (Try-it wording, versioning enum gap, codegen version unmangle)#188

Merged
mikestankavich merged 2 commits into
mainfrom
docs/tra-809-bb1-hygiene
May 23, 2026
Merged

docs(api): TRA-809 — BB1 hygiene (Try-it wording, versioning enum gap, codegen version unmangle)#188
mikestankavich merged 2 commits into
mainfrom
docs/tra-809-bb1-hygiene

Conversation

@mikestankavich
Copy link
Copy Markdown
Contributor

Summary

Three pre-launch docs hygiene items from the BB1 black-box cycle (post asset-location-removal). All presentation-layer; no service behavior change. None blocks launch — grouped as one cleanup pass.

  • F2 — drop the "Try it" / "try-it-now widget" wording from authentication.md and quickstart.mdx. /api renders with Redoc, a read-only reference with no request console; the auth page now leads with the curl recipe directly. Swapping the renderer for a console-bearing one (Swagger UI / Scalar) is a separate product decision out of scope here.
  • F3 — add invalid_context to the versioning page's open-extensible-enums field-code list. The page enumerated 10 of the 11 current FieldErrorCode values; an integrator building an exhaustive matcher from this list would silently omit a real production code.
  • F5 — render the pinned datamodel-codegen version with a space instead of a bare @ (datamodel-codegen 0.57.0). The docs origin's Cloudflare email-obfuscation pass was rewriting the digit-bearing @ pattern to a [email protected] placeholder for raw-HTML / no-JS / view-source / reader-mode / scraper consumers — exactly the automated-integrator audience the API targets. Disabling the Cloudflare rule on the docs path is a config change tracked separately and not required for this fix.

The spec-generator x-originalParamName artifact called out in the same finding ships in trakrf/platform PR #392 (out of scope for this repo).

Files

  • docs/api/authentication.md — F2
  • docs/api/quickstart.mdx — F2 + F5
  • docs/api/versioning.md — F3
  • docs/api/design-notes.md — F5
  • docs/api/changelog.md — BB1 hygiene entry

Test plan

  • pnpm build — clean (anchors resolve, broken-link check enforced via onBrokenLinks: throw)
  • pnpm typecheck — clean
  • pnpm dlx prettier --check on touched files — clean
  • Preview deploy renders the changelog entry and the updated prose without visual regression
  • Confirm F5: pinned version reads as datamodel-codegen 0.57.0 (not a [email protected] placeholder) on the deployed preview when viewed with view-source / no-JS / curl

🤖 Generated with Claude Code

Mike Stankavich and others added 2 commits May 23, 2026 04:46
- F2: drop "Try it" / "try-it-now widget" wording from authentication
  and quickstart; Redoc is a read-only renderer with no request console
- F3: add `invalid_context` to versioning's open-extensible-enums
  field-code list to match the errors catalog and the FieldErrorCode
  enum (was 10 of 11 codes)
- F5: render the `datamodel-codegen` pinned version with a space
  instead of a bare `@` so Cloudflare's email-obfuscation pass on the
  docs origin stops rewriting it to a `[email protected]` placeholder
  for raw-HTML / no-JS / view-source / scraper consumers

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment Update

✅ This PR has been successfully merged into the preview branch.

The preview environment will update shortly at: https://docs.preview.trakrf.id

github-actions Bot added a commit that referenced this pull request May 23, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8ed9e08
Status: ✅  Deploy successful!
Preview URL: https://e39e5126.docs-4n7.pages.dev
Branch Preview URL: https://docs-tra-809-bb1-hygiene.docs-4n7.pages.dev

View logs

@mikestankavich mikestankavich merged commit 7b4b6a2 into main May 23, 2026
2 checks passed
@mikestankavich mikestankavich deleted the docs/tra-809-bb1-hygiene branch May 23, 2026 10:00
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