Skip to content

Replace <TSDoc> component with typedoc-generated API reference pages#1611

Draft
TooTallNate wants to merge 1 commit intomainfrom
nate/typedoc-api-reference
Draft

Replace <TSDoc> component with typedoc-generated API reference pages#1611
TooTallNate wants to merge 1 commit intomainfrom
nate/typedoc-api-reference

Conversation

@TooTallNate
Copy link
Copy Markdown
Member

Summary

  • Replaces the custom <TSDoc> component (which used ts-morph at build time and was invisible to AI agents reading raw MDX) with typedoc + typedoc-plugin-markdown generated pages
  • Each exported function, class, interface, and type alias now gets its own dedicated .mdx page with its own URL
  • Follows the pattern from the nx.js reference implementation

What changed

New infrastructure

  • Root typedoc.json shared config + typedoc-formatter.mjs custom plugin (frontmatter injection, MDX escaping, link cleanup)
  • Per-package typedoc.json configs for all 7 documented packages (workflow, workflow/api, workflow/errors, @workflow/serde, workflow/next, @workflow/ai, @workflow/vitest)
  • docs/copy-api-docs.sh script to copy generated output into the Fumadocs content tree
  • typedoc turbo task + build pipeline integration via docs/prebuild

Content changes

  • Updated 31 hand-written MDX files to replace 64 <TSDoc> blocks with links to the generated API reference pages
  • Added meta.json files for sidebar navigation with "Generated API Reference" sections
  • Generates 112 new API reference pages across all packages

Removed

  • docs/lib/tsdoc/ directory (4 files: custom ts-morph-based TSDoc component)
  • ts-morph and fumadocs-typescript dependencies from docs

Pipeline

Source .ts → pnpm typedoc (turbo, per-package)
  → .mdx in packages/*/typedoc-out/
  → copy-api-docs.sh → docs/content/docs/api-reference/*/api/
  → Fumadocs auto-discovers → sidebar + pages

Verification

  • pnpm typedoc generates all 112 pages across 7 packages
  • pnpm --filter docs build succeeds with 651 pages, no errors
  • No <TSDoc> references remain in any MDX files

Replace the custom <TSDoc> component (using ts-morph at build time) with
typedoc + typedoc-plugin-markdown to generate dedicated .mdx pages for each
exported function, class, interface, and type alias. This gives every API
symbol its own URL, making the docs more useful for AI agents reading raw
markdown and enabling better cross-linking.

- Add typedoc, typedoc-plugin-markdown, and typedoc-plugin-frontmatter
- Create per-package typedoc configs for all 7 documented packages
- Add typedoc-formatter.mjs plugin for frontmatter injection and MDX escaping
- Add copy-api-docs.sh to copy generated output into Fumadocs content tree
- Update 31 hand-written MDX files to replace <TSDoc> with links to generated pages
- Remove docs/lib/tsdoc/ (ts-morph based component) and its dependencies
- Add turbo task and build pipeline integration
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 4, 2026

⚠️ No Changeset found

Latest commit: 6c6ea65

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 4, 2026

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Apr 4, 2026 1:18am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Apr 4, 2026 1:18am
example-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-astro-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-express-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-fastify-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-hono-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-nitro-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-nuxt-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-sveltekit-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workbench-vite-workflow Ready Ready Preview, Comment Apr 4, 2026 1:18am
workflow-docs Ready Ready Preview, Comment, Open in v0 Apr 4, 2026 1:18am
workflow-swc-playground Error Error Apr 4, 2026 1:18am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

No benchmark result files found in benchmark-results

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 867 1 67 935
✅ 🪟 Windows 77 0 8 85
Total 944 1 75 1020

❌ Failed Tests

▲ Vercel Production (1 failed)

hono (1 failed):

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 78 0 7
✅ example 78 0 7
✅ express 78 0 7
✅ fastify 78 0 7
❌ hono 77 1 7
✅ nextjs-turbopack 83 0 2
✅ nextjs-webpack 83 0 2
✅ nitro 78 0 7
✅ nuxt 78 0 7
✅ sveltekit 78 0 7
✅ vite 78 0 7
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 77 0 8

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​typedoc-plugin-frontmatter@​1.3.1991007382100
Addednpm/​typedoc-plugin-markdown@​4.11.01001008092100
Addednpm/​typedoc@​0.28.181001009895100

View full report

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