Skip to content

Commit 847deed

Browse files
committed
ci(docs-sync): also exclude reference/v2/* (duplicates of canonical reference/)
Follow-up to PR CopilotKit#4771 surgical sync. The upstream reference/v2/* files mirror shell-docs's canonical reference/ tree under a parallel docs/-prefixed path that doesn't exist in shell-docs's routing. Syncing them in creates duplicate parallel files. Block them from future sync runs. Per-file follow-up captured separately: mirror any legitimate content updates from upstream's reference/v2 into the canonical reference/ tree as needed (notably useCopilotKit.mdx, where the upstream version had 66 more lines than the current canonical).
1 parent 7701495 commit 847deed

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

showcase/scripts/sync-docs-from-main.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,19 @@ const PATH_EXCLUSIONS: RegExp[] = [
116116
// per-framework landing files.
117117
/^docs\/content\/docs\/integrations\/langgraph\/index\.mdx$/,
118118
/^docs\/content\/docs\/integrations\/microsoft-agent-framework\/index\.mdx$/,
119+
// reference/v2/* duplicates: shell-docs's canonical reference path is
120+
// `showcase/shell-docs/src/content/reference/**` (no `v2` segment, no
121+
// `docs/` prefix). The upstream `docs/content/docs/reference/v2/*`
122+
// files mirror that content under a parallel `docs/`-prefixed path
123+
// that doesn't exist in shell-docs's routing. Syncing them in creates
124+
// duplicate parallel files. Per-file follow-up: mirror legitimate
125+
// updates from upstream's reference/v2 into the canonical reference/
126+
// tree as needed (see e.g. `useCopilotKit.mdx` diff in PR #4771).
127+
/^docs\/content\/docs\/reference\/v2\/index\.mdx$/,
128+
/^docs\/content\/docs\/reference\/v2\/components\/CopilotChat\.mdx$/,
129+
/^docs\/content\/docs\/reference\/v2\/components\/CopilotKit\.mdx$/,
130+
/^docs\/content\/docs\/reference\/v2\/hooks\/useCopilotKit\.mdx$/,
131+
/^docs\/content\/docs\/reference\/v2\/hooks\/useThreads\.mdx$/,
119132
];
120133

121134
function isExcludedPath(relPath: string): boolean {

0 commit comments

Comments
 (0)