Files
copilotkit__copilotkit/showcase/scripts/sync-docs-from-main.ts
Sam Julien 2bd355745a chore(shell-docs): drop dormant per-framework threads + self-hosting stubs
24 files in two byte-identical families across 12 integration trees:

- 12 `integrations/<fw>/threads.mdx` — 7 lines each, all md5 0371508d…,
  body is just `<Threads />`.
- 12 `integrations/<fw>/premium/self-hosting.mdx` — 8 lines each, all
  md5 06d17f98…, body is just `<SelfHosting />`.

Both render shared snippets the root-level pages already render. The
`buildFrameworkOverridesNav` filter dropped them from the merged
sidebar (root wins), and the framework-scoped router falls back to
root MDX when no per-framework override exists, so deletion is
invisible to users — `/built-in-agent/threads`,
`/langgraph-python/premium/self-hosting`, etc. continue to render
identically. Verified: each URL still returns 200 with full body
(340–465 KB) by curling the dev server before commit.

Add path-exclusion patterns to sync-docs-from-main.ts so future
upstream syncs don't resurrect them. Same shape as the BIA branch's
`(other)/` exclusion. Sample-tested the regexes against expected-
exclude and expected-keep paths — all classify correctly.

Audit covered every `integrations/<fw>/*.mdx` with body ≤ 2 non-blank
lines; no false-negative stubs of other shapes.
2026-04-27 10:03:46 -07:00

26 KiB