Skip to content

Keep API reference examples specific to the selected port - #61

Merged
tony merged 1 commit into
mainfrom
fix-port-api-examples
Sep 30, 2026
Merged

tony merged 1 commit into
mainfrom
fix-port-api-examples

Conversation

@tony

@tony tony commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

TypeScript API pages included Python examples underneath the selected API. Reference pages now show only examples from their own port. Equivalent API links and the toolbar port switcher remain available.

The unused cross-language example tabs and their styles are removed. A browser check renders the real TypeScript capture page from current source and rejects foreign code blocks; it fails against the old page with four Python blocks. The full outer loop passes in 58.13 seconds, within its 60-second budget.

why: A TypeScript reference page included Python examples below its own
snippet, despite already offering a port switcher in the toolbar.

what:
- Render only the selected symbol's own examples
- Remove the unused cross-language example tab component and styles
- Check a freshly rendered TypeScript capture reference for foreign code
  while retaining the port switcher

verification: The browser check fails against the old page with four
Python blocks. The outer loop passes in 58.13 seconds, below its
60-second budget.
@tony
tony deployed to docs-preview September 30, 2026 23:40 — with GitHub Actions Active
@tony
tony merged commit f9d02dc into main Sep 30, 2026
3 checks passed
@tony
tony deployed to docs-preview-cleanup September 30, 2026 23:54 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
docs-preview-cleanup — 8ffa0087 Deployed Sep 30, 2026 by tony via cleanup #54
docs-preview — 8ffa0087 Deployed Sep 30, 2026 by tony via publish-preview / publish #363
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