Skip to content

fix: update TypeScript api docs to use MDX by escaping the markdown#588

Merged
zastrowm merged 1 commit intostrands-agents:workstream/cms-migrationfrom
zastrowm:api_updates
Mar 4, 2026
Merged

fix: update TypeScript api docs to use MDX by escaping the markdown#588
zastrowm merged 1 commit intostrands-agents:workstream/cms-migrationfrom
zastrowm:api_updates

Conversation

@zastrowm
Copy link
Copy Markdown
Member

@zastrowm zastrowm commented Mar 4, 2026

Description

Update TypeScript api docs to use MDX by escaping the markdown

Previously the links being generated from TS were incorrect as they weren't getting our mdx enhancements which allow for linking to files instead of using slugs. So now instead of writing markdown files, we do a safe conversion from md -> mdx which picks up all of our fixes.

Follow-ups:

  • We should also port the python api docs to use this instead of our regex fixes that we're currently do; I will catch that in a follow-up.
  • The index page for TS is currently mis-generated because of the "telemetry" namespace that the TS SDK now generates; that's a known issue that I'll grab in a follow-up

As part of this PR I've also added link verification that runs as part of the build; previous to this we got a bunch of warnings about TS; now it's only showing a couple that are due to the recent telemetry changes.

16:43:31 [astro-broken-links-checker] Broken link: /api/interfaces/TracerConfig/
  Found in:
    - /api/typescript/
Broken link: /api/functions/setupTracer/
  Found in:
    - /api/typescript/
16:43:31 [astro-broken-links-checker] Time to check links: 2040 ms

Once I fix these, I'll change to this be errors

Related Issues

#441

Type of Change

  • Bug fix

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using mkdocs serve
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

And add link validation to ensure all links are now valid.

Previously the links being generated from TS were incorrect as they weren't getting our mdx enhancements which allow for linking to files instead of using slugs.  So now instead of writing markdown files, we do a safe conversion from md -> mdx which picks up all of our fixes.

 - We should also port the python api docs to use this instead of our regex fixes that we're currently do; I will catch that in a follow-up.
 - The index page for TS is currently mis-generated because of the "telemetry" namespace that the TS SDK now generates; that's a known issue that I'll grab in a follow-up
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

Documentation Preview Ready

Your documentation preview has been successfully deployed!

Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-588/user-guide/quickstart/overview/

Updated at: 2026-03-04T16:43:30.354Z

@zastrowm zastrowm merged commit fd67481 into strands-agents:workstream/cms-migration Mar 4, 2026
4 of 6 checks passed
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.

2 participants