Repository navigation
docs: migrate js v2 to new reference pipeline, drop legacy typespec - #46502
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
65ef7c4 to
6a9dcf0
Compare
6a9dcf0 to
994e2d1
Compare
f78dfc3
into
jeremias/docs-733-consume-new-tsdoc-output-in-docs-project-round-2
…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.
Builds on top of #46163.
What changed
typeSpec.jsonextraction (parseTypeSpec+combined.json); JS v2 now reads typespec from the new per-lib pipeline.getTypeSpecthroughSUPPORTS_NEW_REFERENCE_PROCESSso all four reference getters use one routing flag.build-reference-content.tsto emit richtypeSpec.json(comments, examples, altSignatures, params with descriptions).SUPPORTS_NEW_REFERENCE_PROCESSfrom the legacyReference.generated.script.ts→ nosupabase_js_v2.ymlread in the render path.specFile: 'supabase_js_v2'field from JS v2's nav entry.loadClientLibReferenceFromNewPipeline). Fixes a silent search-quality bug where JS reference pages were indexed with near-empty content.spec/reference/<lib>/<ver>/*.json;codegen:references:ensureauto-fetches on first build viamake download.tsdoc.v2. Single refresh command for devs and CI./api/crawlersto render TSDoc-extracted@exampleblocks (matches what the visual renderer already does).validate-typespec-refs.ts,find-undocumented.ts,validate-references.ts.dereference/combine.tsdoc.v2Makefile targets.spec/reference/README.mdwith the full pipeline diagram, gitignore policy, and migration checklist.