Skip to content

docs: migrate js v2 to new reference pipeline, drop legacy typespec - #46502

Merged
mandarini merged 6 commits into
jeremias/docs-733-consume-new-tsdoc-output-in-docs-project-round-2from
katerina/drop-legacy-typespec
Jun 1, 2026
Merged

mandarini merged 6 commits into
jeremias/docs-733-consume-new-tsdoc-output-in-docs-project-round-2from
katerina/drop-legacy-typespec

Conversation

@mandarini

@mandarini mandarini commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Builds on top of #46163.

What changed

  • Drop the legacy global typeSpec.json extraction (parseTypeSpec + combined.json); JS v2 now reads typespec from the new per-lib pipeline.
  • Wire getTypeSpec through SUPPORTS_NEW_REFERENCE_PROCESS so all four reference getters use one routing flag.
  • Extend build-reference-content.ts to emit rich typeSpec.json (comments, examples, altSignatures, params with descriptions).
  • Skip libs in SUPPORTS_NEW_REFERENCE_PROCESS from the legacy Reference.generated.script.ts → no supabase_js_v2.yml read in the render path.
  • Drop the dead specFile: 'supabase_js_v2' field from JS v2's nav entry.
  • Migrate search/embeddings ingest for JS v2 onto the new pipeline (loadClientLibReferenceFromNewPipeline). Fixes a silent search-quality bug where JS reference pages were indexed with near-empty content.
  • Gitignore downloaded TypeDoc dumps under spec/reference/<lib>/<ver>/*.json; codegen:references:ensure auto-fetches on first build via make download.tsdoc.v2. Single refresh command for devs and CI.
  • Fix /api/crawlers to render TSDoc-extracted @example blocks (matches what the visual renderer already does).
  • Delete now-orphaned scripts: validate-typespec-refs.ts, find-undocumented.ts, validate-references.ts.
  • Drop unused dereference/combine.tsdoc.v2 Makefile targets.
  • Add snapshot test for the new pipeline as regression coverage.
  • Update spec/reference/README.md with the full pipeline diagram, gitignore policy, and migration checklist.

@vercel

vercel Bot commented May 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 May 29, 2026 1:51pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 29, 2026 1:51pm
design-system Skipped Skipped May 29, 2026 1:51pm
studio-self-hosted Skipped Skipped May 29, 2026 1:51pm
studio-staging Skipped Skipped May 29, 2026 1:51pm
ui-library Skipped Skipped May 29, 2026 1:51pm
zone-www-dot-com Skipped Skipped May 29, 2026 1:51pm

Request Review

@coderabbitai

coderabbitai Bot commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: a1d95c28-2df6-40ad-a01d-c1580bb71c81

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch katerina/drop-legacy-typespec

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@supabase

supabase Bot commented May 29, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 29, 2026
@mandarini mandarini added the do-not-merge Not ready to be merged yet; pending other dependencies label May 29, 2026
@mandarini
mandarini force-pushed the katerina/drop-legacy-typespec branch from 65ef7c4 to 6a9dcf0 Compare May 29, 2026 12:54
@mandarini mandarini self-assigned this May 29, 2026
@mandarini
mandarini force-pushed the katerina/drop-legacy-typespec branch from 6a9dcf0 to 994e2d1 Compare May 29, 2026 13:04
@mandarini
mandarini marked this pull request as ready for review May 29, 2026 13:54
@mandarini
mandarini requested a review from jeremenichelli May 29, 2026 13:54
@mandarini mandarini changed the title docs: drop legacy typespec docs: migrate js v2 to new reference pipeline, drop legacy typespec May 29, 2026
@mandarini mandarini removed the do-not-merge Not ready to be merged yet; pending other dependencies label May 29, 2026
@mandarini
mandarini merged commit f78dfc3 into jeremias/docs-733-consume-new-tsdoc-output-in-docs-project-round-2 Jun 1, 2026
24 of 27 checks passed
@mandarini
mandarini deleted the katerina/drop-legacy-typespec branch June 1, 2026 10:05
mandarini added a commit that referenced this pull request Jun 2, 2026
…46502)

Builds on top of #46163.

- Drop the legacy global `typeSpec.json` extraction (`parseTypeSpec` +
`combined.json`); JS v2 now reads typespec from the new per-lib
pipeline.
- Wire `getTypeSpec` through `SUPPORTS_NEW_REFERENCE_PROCESS` so all
four reference getters use one routing flag.
- Extend `build-reference-content.ts` to emit rich `typeSpec.json`
(comments, examples, altSignatures, params with descriptions).
- Skip libs in `SUPPORTS_NEW_REFERENCE_PROCESS` from the legacy
`Reference.generated.script.ts` → no `supabase_js_v2.yml` read in the
render path.
- Drop the dead `specFile: 'supabase_js_v2'` field from JS v2's nav
entry.
- Migrate search/embeddings ingest for JS v2 onto the new pipeline
(`loadClientLibReferenceFromNewPipeline`). Fixes a silent search-quality
bug where JS reference pages were indexed with near-empty content.
- Gitignore downloaded TypeDoc dumps under
`spec/reference/<lib>/<ver>/*.json`; `codegen:references:ensure`
auto-fetches on first build via `make download.tsdoc.v2`. Single refresh
command for devs and CI.
- Fix `/api/crawlers` to render TSDoc-extracted `@example` blocks
(matches what the visual renderer already does).
- Delete now-orphaned scripts: `validate-typespec-refs.ts`,
`find-undocumented.ts`, `validate-references.ts`.
- Drop unused `dereference/combine.tsdoc.v2` Makefile targets.
- Add snapshot test for the new pipeline as regression coverage.
- Update `spec/reference/README.md` with the full pipeline diagram,
gitignore policy, and migration checklist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants